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

Disassembly:
push 0xffffffffffffffff
push 0x5f87e3
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
push ebx
push ebp
push esi
push edi
mov eax, dword [0x64c874]
xor eax, esp
push eax
lea eax, [esp + 0xb4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xc4]
xor edi, edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0xbc], edi
mov eax, dword [ebp + 0x9c8]
push eax
lea esi, [esp + 0x38]
call fcn.004ef830
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
mov byte [esp + 0xbc], 1
mov eax, dword [ebp + 0x9c8]
push eax
lea esi, [esp + 0x48]
call fcn.004ef830
mov ecx, dword [ebp + 0x168]
mov edx, dword [ebp + 0x16c]
mov eax, dword [ebp + 0x170]
mov ebx, dword [ebp + 0x17c]
mov dword [esp + 0x24], ecx
cmp dword [esp + 0x24], 0xffffffff
mov ecx, dword [ebp + 0x178]
mov dword [esp + 0x20], edx
mov edx, dword [ebp + 0x174]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x18], ebx
mov esi, SysReAllocString
jne 0x513099
mov dword [esp + 0x24], esi
cmp dword [esp + 0x20], 0xffffffff
jne 0x5130a4
mov dword [esp + 0x20], esi
cmp ebx, 0xffffffff
jne 0x5130ad
mov dword [esp + 0x18], esi
cmp eax, 0xffffffff
jne 0x5130b6
mov dword [esp + 0x28], esi
cmp ecx, 0xffffffff
jne 0x5130bf
mov dword [esp + 0x30], esi
cmp edx, 0xffffffff
jne 0x5130c8
mov dword [esp + 0x2c], esi
mov eax, dword [ebp + 0x9c4]
mov ebx, dword [eax]
lea esi, [ebp + 0x9c0]
mov ecx, eax
mov dword [esp + 0x58], ebx
mov dword [esp + 0x54], esi
mov dword [esp + 0x80], ecx
cmp esi, edi
je 0x5130f5
lea eax, [ebp + 0x9c0]
cmp esi, eax
je 0x5130fa
call fcn.005b8b18
cmp ebx, dword [esp + 0x80]
je 0x51329b
cmp esi, edi
jne 0x513110
call fcn.005b8b18
cmp ebx, dword [esi + 4]
jne 0x51311a
call fcn.005b8b18
mov esi, dword [ebx + 0x20]
movzx eax, byte [esi + 0x4e7]
and eax, 7
mov ebx, 1
cmp eax, ebx
mov dword [esp + 0x1c], esi
je 0x51321f
cmp eax, edi
je 0x51321f
mov al, byte [esi + 0x52c]
test al, 0x40
je 0x5131a3
cmp dword [esi + 0x430], edi
jne 0x5131a3
mov ecx, esi
call fcn.00493f90
test al, al
lea ebx, [esp + 0x1c]
je 0x513182
lea esi, [esp + 0x44]
call fcn.00518b70
lea esi, [esp + 0x54]
xor edi, edi
call fcn.004f19c0
mov ebx, dword [esp + 0x58]
mov esi, dword [esp + 0x54]
jmp 0x5130e7
lea esi, [esp + 0x34]
call fcn.00518b70
lea esi, [esp + 0x54]
xor edi, edi
call fcn.004f19c0
mov ebx, dword [esp + 0x58]
mov esi, dword [esp + 0x54]
jmp 0x5130e7
test al, 0x10
je 0x513285
mov edx, dword [esi + 0x2e8]
cmp byte [edx + 0xbb9], 0
jne 0x513285
test byte [esi + 0x545], bl
jne 0x513285
sub dword [esp + 0x18], ebx
lea eax, [ebp + 0x44]
mov ecx, esi
call fcn.00512d40
test al, al
je 0x513285
mov ecx, esi
call fcn.00493f90
test al, al
je 0x513205
sub dword [esp + 0x20], ebx
lea esi, [esp + 0x54]
call fcn.004f19c0
mov ebx, dword [esp + 0x58]
mov esi, dword [esp + 0x54]
jmp 0x5130e7
sub dword [esp + 0x24], ebx
lea esi, [esp + 0x54]
call fcn.004f19c0
mov ebx, dword [esp + 0x58]
mov esi, dword [esp + 0x54]
jmp 0x5130e7
mov al, byte [esi + 0x52c]
test al, 0x40
je 0x513285
test al, 0x10
je 0x513244
mov eax, dword [esi + 0x2e8]
cmp byte [eax + 0xbb9], 0
jne 0x513244
test byte [esi + 0x545], bl
je 0x513285
mov al, byte [esi + 0x52c]
test al, 0x10
je 0x51325a
test al, 2
je 0x51325a
test al, 4
je 0x51325a
test al, 8
jne 0x513285
mov ecx, dword [esi + 0x2e8]
or al, 0x1e
mov byte [esi + 0x52c], al
cmp byte [ecx + 0xbb9], 0
jne 0x513278
and byte [esi + 0x545], 0xfe
or byte [esi + 0x4f8], 0x80
push esi
call fcn.004e94c0
lea esi, [esp + 0x54]
call fcn.004f19c0
mov ebx, dword [esp + 0x58]
mov esi, dword [esp + 0x54]
jmp 0x5130e7
xor ecx, ecx
mov edx, 0x50c7d0
mov dword [esp + 0x5c], edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x40]
xor esi, esi
mov eax, 0x50c7d0
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0x40]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x60], esi
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x3c]
mov ecx, 8
lea esi, [esp + 0x5c]
lea edi, [esp + 0x8c]
mov dword [esp + 0x68], edx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x38]
cmp ecx, eax
mov ebx, eax
jbe 0x513306
call fcn.005b8b18
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
cmp ecx, eax
mov dword [esp + 0x1c], ecx
jbe 0x513313
call fcn.005b8b18
mov eax, dword [esp + 0x1c]
sub esp, 0x28
mov edx, ebx
sub edx, eax
mov edi, esp
sar edx, 2
push edx
push ebx
mov ecx, 0xa
lea esi, [esp + 0xb4]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.0051cb00
mov esi, fcn.004e83c0
xor edi, edi
lea eax, [ebp + 0x44]
mov dword [esp + 0x90], esi
mov esi, dword [esp + 0x74]
mov ecx, fcn.004e83c0
mov dword [esp + 0x98], eax
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0xa0], ecx
xor edx, edx
mov dword [esp + 0x94], edi
mov dword [esp + 0x9c], esi
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0x80]
mov ecx, 8
lea esi, [esp + 0x90]
lea edi, [esp + 0xc0]
mov dword [esp + 0xa4], edx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x7c]
add esp, 0x34
cmp ecx, eax
mov ebx, eax
jbe 0x5133c0
call fcn.005b8b18
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
cmp ecx, eax
mov dword [esp + 0x1c], ecx
jbe 0x5133cd
call fcn.005b8b18
mov eax, dword [esp + 0x1c]
sub esp, 0x28
mov edi, esp
mov ecx, 0xa
lea esi, [esp + 0xac]
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
sub ecx, eax
sar ecx, 2
push ecx
push ebx
push eax
call fcn.0051cc40
add esp, 0x34
cmp byte [ebp + 0x180], 0
lea edi, [esp + 0x30]
lea ebx, [esp + 0x28]
je 0x513437
mov edx, dword [esp + 0x20]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x50]
push edx
push ebp
call fcn.00512e10
mov eax, dword [esp + 0x24]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x40]
push eax
jmp 0x513465
mov ecx, dword [esp + 0x24]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x40]
push ecx
push ebp
call fcn.00512e10
mov edx, dword [esp + 0x20]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x50]
push edx
push ebp
lea edi, [esp + 0x44]
lea ebx, [esp + 0x3c]
call fcn.00512e10
mov eax, dword [esp + 0x48]
xor esi, esi
cmp eax, esi
je 0x513486
push eax
call fcn.0059b877
add esp, 4
mov eax, dword [esp + 0x38]
cmp eax, esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
je 0x5134a3
push eax
call fcn.0059b877
add esp, 4
mov ecx, dword [esp + 0xb4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xac
ret 4