Function at 0x52f3ca
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x633e3d
mov eax, dword fs:[0]
push eax
sub esp, 0x3b8
mov eax, dword [0x652018]
xor eax, esp
mov dword [esp + 0x3b0], eax
push ebx
push esi
push edi
mov eax, dword [0x652018]
xor eax, esp
push eax
lea eax, [esp + 0x3c8]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
cmp byte [esi + 0x4c], 0
jne 0x52f45b
cmp byte [esi + 0x4d], 0
jne 0x52f45b
lea ecx, [esp + 0x24]
call dword [0x660330]
mov dword [esp + 0x3d0], 0
mov dword [esp + 0x24], 0x40cc48
mov dword [esp + 0x30], 0x40bbf0
mov dword [esp + 0x3d0], 0xffffffff
lea eax, [esp + 0x24]
push 0x651bb0
push eax
call 0x5a4c90
cmp byte [ebp + 8], 0
je 0x52f586
mov eax, dword [esi + 0x8c]
mov ecx, dword [eax + 0x50]
call 0x3dc92a
mov edx, dword [esi + 0x1c]
mov dword [esp + 0x14], eax
mov ecx, dword [edx]
push dword [ecx + 0x10]
lea ecx, [edx + 0x298]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00402cea
cmp dword [esp + 0x24], 1
jne 0x52f4bd
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x52f4bf
cmp byte [ebx], 0x29
jne 0x52f4bf
mov ecx, dword [ebx + 0x50]
call 0x3dc92a
mov ecx, eax
call 0x3c4d7a
mov ecx, eax
call 0x3c4cda
mov ebx, eax
jmp 0x52f4bf
xor ebx, ebx
mov eax, dword [esi + 0x14]
mov edx, 0x423530
push 7
mov ecx, dword [eax + 0xc]
call fcn.00414e8a
push eax
push ecx
mov ecx, ebx
call 0x3da45a
mov ecx, dword [esi + 0x14]
mov edx, 0x423530
push 7
mov dword [esp + 0x24], eax
mov ecx, dword [ecx + 0xc]
call fcn.00414e8a
mov ecx, dword [esp + 0x10]
mov edi, eax
mov esi, dword [esi + 0x54]
push 0x18
mov ecx, dword [ecx + 0x20]
mov ecx, dword [ecx + 4]
call 0x3bcd9a
push 4
mov edx, 3
mov dword [esp + 0x1c], eax
and byte [eax + 1], 0xfe
mov dword [eax + 8], edi
mov edi, dword [esp + 0x14]
mov byte [eax], 0x19
mov dword [eax + 0xc], esi
mov dword [eax + 4], 0
mov ecx, dword [edi + 0x20]
mov esi, dword [ecx + 4]
lea ecx, [esp + 0x28]
call 0x3bd1da
mov ecx, dword [eax]
mov eax, dword [esi + 4]
and ecx, 0xfffffffc
sub eax, dword [esi]
mov dword [esp + 0x1c], ecx
cmp eax, ecx
jae 0x52f553
push 4
mov ecx, esi
call 0x3bcf0a
mov ecx, dword [esi]
mov eax, dword [esp + 0x1c]
push 0
push 0
push 1
add eax, ecx
mov dword [esi], eax
mov eax, dword [esp + 0x20]
push ecx
mov dword [ecx], 0
push ebx
mov dword [ecx], eax
mov ecx, dword [edi + 0x20]
push 0
call fcn.0041870a
mov esi, eax
mov eax, dword [esp + 0x18]
jmp 0x52f641
mov ecx, dword [esi + 0x1c]
push 7
call fcn.0040301a
mov ecx, dword [esi + 0x1c]
mov dword [esp + 0x14], eax
mov eax, dword [ecx]
push dword [eax + 0x10]
lea eax, [ecx + 0x220]
push eax
lea ecx, [esp + 0x2c]
call fcn.00402cea
cmp dword [esp + 0x24], 1
jne 0x52f5da
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x52f5dc
cmp byte [ebx], 0x29
jne 0x52f5dc
mov ecx, dword [ebx + 0x50]
call 0x3dc92a
mov ecx, eax
call 0x3c4d7a
mov ecx, eax
call 0x3c4cda
mov ebx, eax
jmp 0x52f5dc
xor ebx, ebx
mov eax, dword [esi + 0x14]
mov edx, 0x423530
push 7
mov ecx, dword [eax + 0xc]
call fcn.00414e8a
push eax
push ecx
mov ecx, ebx
call 0x3da45a
mov dword [esp + 0x20], eax
mov edx, 0x423530
mov eax, dword [esi + 0x14]
push 7
mov ecx, dword [eax + 0xc]
call fcn.00414e8a
mov ecx, dword [esp + 0x10]
mov edi, eax
mov esi, dword [esi + 0x54]
push 0x18
mov ecx, dword [ecx + 0x20]
mov ecx, dword [ecx + 4]
call 0x3bcd9a
mov dword [esp + 0x18], eax
and byte [eax + 1], 0xfe
mov dword [eax + 0xc], esi
xor esi, esi
mov dword [eax + 8], edi
mov edi, dword [esp + 0x10]
mov byte [eax], 0x19
mov dword [eax + 4], 0
mov ecx, dword [esp + 0x20]
mov dword [eax + 0x10], ecx
push ecx
lea ecx, [esp + 0x170]
mov dword [eax + 0x14], esi
call fcn.0041539a
mov dword [esp + 0x3d0], 9
push ecx
lea ecx, [esp + 0x48]
call fcn.0041539a
mov byte [esp + 0x3d0], 0xa
lea eax, [esp + 0x16c]
push 0
push 0
push eax
push 0
push 0
push 0
push 1
push 0
push 0
push esi
push 1
push 0
push 0
push 0
mov ecx, ebx
call 0x3e1a0a
push 0x10
push 0x42bc9c
lea ecx, [esp + 0x174]
call fcn.00415b2a
mov eax, dword [edi + 0x14]
mov edx, dword [esp + 0x188]
mov ecx, dword [eax + 0xc]
mov eax, dword [esp + 0x174]
shr eax, 1
push eax
call fcn.00414e8a
push 0
push 0
mov dword [esp + 0x24], eax
mov ecx, ebx
lea eax, [esp + 0x4c]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
push esi
push 1
push 0
push 0
push 0
call 0x3e1a0a
push 0x18
push 0x42bcb0
lea ecx, [esp + 0x4c]
call fcn.00415b2a
mov eax, dword [edi + 0x14]
mov edx, dword [esp + 0x60]
mov ecx, dword [eax + 0xc]
mov eax, dword [esp + 0x4c]
shr eax, 1
push eax
call fcn.00414e8a
mov ecx, dword [edi + 0x20]
mov esi, eax
push 0xf4
mov ecx, dword [ecx + 4]
call 0x3bcd9a
mov ebx, eax
and byte [ebx + 0x18], 0xcf
add ebx, 0x20
mov byte [ebx], 0xa
mov dword [ebx + 4], esi
mov dword [ebx + 8], esi
movzx eax, byte [ebx + 0x78]
and al, 0x40
and byte [ebx + 0x79], 0xf2
or al, 0x12
and byte [ebx + 0x4b], 0xfd
mov byte [ebx + 0x78], al
mov eax, dword [esp + 0x14]
mov dword [ebx + 0x50], eax
movzx eax, byte [ebx + 1]
and al, 0xe7
and byte [ebx + 0x7b], 0xf9
or al, 1
mov byte [ebx + 0x49], 0x11
mov byte [ebx + 1], al
movzx eax, byte [ebx + 0x4a]
and al, 0xf7
mov dword [ebx + 0x54], 0
or al, 3
mov dword [ebx + 0x58], 0
mov byte [ebx + 0x4a], al
movzx eax, byte [ebx + 0x7a]
and al, 0xae
mov dword [ebx + 0x4c], 0
or al, 4
mov dword [esp + 0x3c], ebx