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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x51348b
sub esp, 0x58
mov eax, dword [esp + 0x64]
test eax, eax
jle 0x513480
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
xor ebx, ebx
xor ebp, ebp
xor esi, esi
xor edi, edi
jmp 0x51326e
mov edi, dword [esp + 0x40]
add edi, 0x14
mov dword [esp + 0x2c], eax
mov eax, ecx
mov ecx, edi
mov edi, esi
mov esi, eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x24], esi
mov dword [esp + 0x34], edi
mov dword [esp + 0x20], ebp
lea edi, [esp + 0x44]
mov esi, ecx
call fcn.0045e58e
test edx, edx
jne 0x513456
mov ecx, 1
test cl, cl
jne 0x513399
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x34]
inc ebx
cmp eax, ebx
jg 0x513257
test ebp, ebp
jne 0x513370
mov eax, dword [0x783178]
mov ecx, dword [0x78317c]
mov eax, dword [eax + 0x10]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 4]
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x28], ecx
lea edx, [0x5ea500]
mov dword [esp], edx
call fcn.0040b8d0
mov edi, dword [esp + 4]
mov eax, dword [esp + 0x28]
mov dword [edi + 4], eax
mov eax, dword [0x7a0970]
test eax, eax
jne 0x513365
mov ecx, dword [esp + 0x3c]
mov dword [edi], ecx
mov ecx, dword [esp + 0x74]
mov dword [edi + 0xc], ecx
mov ecx, dword [0x7a0970]
test ecx, ecx
jne 0x51334f
mov eax, dword [esp + 0x70]
mov dword [edi + 8], eax
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
lea eax, [0x65ea00]
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], edi
add esp, 0x58
ret
lea ecx, [edi + 8]
mov eax, edi
mov edi, ecx
mov edx, eax
mov eax, dword [esp + 0x70]
call fcn.0045de10
mov edi, edx
jmp 0x51331c
mov eax, dword [esp + 0x3c]
call fcn.0045de10
jmp 0x513304
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
add esp, 0x58
ret
mov edx, dword [esp + 0x6c]
mov eax, dword [edx]
lea edi, [esp]
lea esi, [esp + 0x44]
call fcn.0045e58e
call eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x20]
lea ebp, [ebx + 1]
mov edx, eax
mov eax, dword [esp + 0x24]
cmp ebp, eax
ja 0x51340a
mov esi, dword [esp + 0x34]
mov edi, ebp
lea ebp, [esi + ebx*8]
mov dword [ebp], ecx
mov ecx, dword [0x7a0970]
lea ebx, [esi + ebx*8 + 4]
test ecx, ecx
jne 0x5133f7
mov dword [ebx], edx
mov edx, dword [esp + 0x5c]
mov ebx, dword [esp + 0x28]
mov ecx, eax
mov ebp, edi
mov eax, dword [esp + 0x64]
jmp 0x5132aa
mov ecx, edi
mov edi, ebx
mov ebp, eax
mov eax, edx
call fcn.0045de10
mov eax, ebp
mov edi, ecx
jmp 0x5133e2
mov dword [esp + 0x3c], edx
mov dword [esp + 0x38], ecx
lea ecx, [0x5e5940]
mov dword [esp], ecx
mov edx, dword [esp + 0x34]
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ebp
call fcn.00445150
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
lea ebp, [eax + 1]
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x20]
mov eax, ecx
mov ecx, dword [esp + 0x38]
jmp 0x5133ca
mov eax, dword [edx]
lea edi, [esp]
lea esi, [esp + 0x44]
call fcn.0045e58e
call eax
movzx ecx, byte [esp + 0x14]
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x5c]
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x20]
jmp 0x51329a
xor ebp, ebp
xor ecx, ecx
xor esi, esi
jmp 0x5132af
call fcn.0045c8b0
jmp fcn.00513220