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

Disassembly:
mov ecx, dword [0x8cbf38]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x51d82d
sub esp, 0x58
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
mov ebx, dword [esp + 0x64]
xor edx, edx
xor ebp, ebp
xor esi, esi
xor edi, edi
jmp 0x51d611
add eax, 0x14
inc edx
cmp ebx, edx
jle 0x51d74a
mov dword [esp + 0x30], edx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], esi
mov dword [esp + 0x34], edi
mov dword [esp + 0x40], eax
lea edi, [esp + 0x44]
mov esi, eax
call fcn.0046c59e
mov ecx, dword [esp + 0x5c]
test ecx, ecx
jne 0x51d647
mov esi, 1
jmp 0x51d676
mov eax, dword [ecx]
lea edi, [esp]
lea esi, [esp + 0x44]
call fcn.0046c59e
mov edx, dword [esp + 0x5c]
call eax
movzx eax, byte [esp + 0x14]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x64]
mov ebp, dword [esp + 0x24]
mov esi, eax
mov eax, dword [esp + 0x40]
xchg esi, eax
test al, al
xchg esi, eax
jne 0x51d686
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x34]
jmp 0x51d60d
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x2c], eax
mov edx, dword [esp + 0x6c]
mov ecx, dword [edx]
mov dword [esp + 0x28], ecx
lea edi, [esp]
lea esi, [esp + 0x44]
call fcn.0046c59e
mov ecx, dword [esp + 0x28]
call ecx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x2c]
cmp ebx, ebp
jb 0x51d6c5
mov edi, dword [esp + 0x34]
jmp 0x51d70b
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x34]
mov dword [esp], eax
mov dword [esp + 4], ebp
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 1
lea eax, [0x63dd80]
mov dword [esp + 0x10], eax
call fcn.00451aa0
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0x3c]
mov ebx, ebp
mov ebp, eax
mov eax, dword [esp + 0x38]
lea edx, [edi + ebp*8 - 8]
mov dword [edx], ecx
mov ecx, dword [0x8cc0e0]
lea edx, [edi + ebp*8 - 4]
test ecx, ecx
je 0x51d72f
mov ecx, edi
call fcn.0046bec0
mov dword [edi], eax
mov esi, dword [edx]
mov dword [edi + 4], esi
mov edi, ecx
mov dword [edx], eax
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x30]
mov esi, ebp
mov ebp, ebx
mov ebx, dword [esp + 0x64]
jmp 0x51d60d
test esi, esi
jne 0x51d804
mov eax, dword [0x89dba8]
mov ecx, dword [0x89dbac]
mov eax, dword [eax + 0x10]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 8]
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 4]
mov dword [esp + 0x3c], ecx
lea edx, [0x640c00]
mov dword [esp], edx
call fcn.0040fcf0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x30]
mov dword [eax + 4], ecx
mov ecx, dword [0x8cc0e0]
test ecx, ecx
jne 0x51d79f
mov ecx, dword [esp + 0x3c]
jmp 0x51d7aa
call fcn.0046beb0
mov ecx, dword [esp + 0x3c]
mov dword [edi], ecx
mov dword [eax], ecx
mov ecx, dword [esp + 0x74]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x8cc0e0]
test ecx, ecx
jne 0x51d7c3
mov ecx, dword [esp + 0x70]
jmp 0x51d7ce
call fcn.0046beb0
mov ecx, dword [esp + 0x70]
mov dword [edi], ecx
mov dword [eax + 8], ecx
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
lea ecx, [0x701884]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], eax
add esp, 0x58
ret
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], ebp
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
add esp, 0x58
ret
call fcn.0046aab0
jmp fcn.0051d5e0