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

Disassembly:
mov ecx, dword [0x99504c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x51c17d
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 0x51bf61
add eax, 0x14
inc edx
cmp ebx, edx
jle 0x51c09a
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.004695de
mov ecx, dword [esp + 0x5c]
test ecx, ecx
jne 0x51bf97
mov esi, 1
jmp 0x51bfc6
mov eax, dword [ecx]
lea edi, [esp]
lea esi, [esp + 0x44]
call fcn.004695de
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 0x51bfd6
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x34]
jmp 0x51bf5d
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.004695de
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 0x51c015
mov edi, dword [esp + 0x34]
jmp 0x51c05b
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, [0x703080]
mov dword [esp + 0x10], eax
call fcn.0044e6e0
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 [0x995310]
lea edx, [edi + ebp*8 - 4]
test ecx, ecx
je 0x51c07f
mov ecx, edi
call fcn.00468e70
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 0x51bf5d
test esi, esi
jne 0x51c154
mov eax, dword [0x9670e0]
mov ecx, dword [0x9670e4]
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, [0x709780]
mov dword [esp], edx
call fcn.0040c500
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x30]
mov dword [eax + 4], ecx
mov ecx, dword [0x995310]
test ecx, ecx
jne 0x51c0ef
mov ecx, dword [esp + 0x3c]
jmp 0x51c0fa
call fcn.00468e60
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 [0x995310]
test ecx, ecx
jne 0x51c113
mov ecx, dword [esp + 0x70]
jmp 0x51c11e
call fcn.00468e60
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, [0x7b0dc0]
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.00467a60
jmp fcn.0051bf30