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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x785bbd
sub esp, 0x6c
mov eax, dword [esp + 0x70]
test byte [eax], al
mov ecx, dword [eax + 0x1050]
mov edx, dword [eax + 0x105c]
test edx, edx
je 0x785bb6
mov dword [esp + 0x58], ecx
mov dword [esp + 0x54], edx
mov ecx, dword [eax + 0x102c]
mov edx, dword [ecx + 0x34]
mov dword [esp + 0x50], edx
mov ebx, dword [ecx + 0x30]
mov dword [esp + 0x4c], ebx
mov ebp, dword [ecx + 0x3c]
mov dword [esp + 0x48], ebp
mov ecx, dword [ecx + 0x38]
mov dword [esp + 0x44], ecx
lea esi, [0x80a6a0]
mov dword [esp], esi
sub ecx, ebx
mov dword [esp + 0x18], ecx
shl ecx, 2
mov dword [esp + 0x40], ecx
sub ebp, edx
imul ebp, ecx
mov dword [esp + 4], ebp
mov dword [esp + 8], ebp
call fcn.00438ab0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x34], ecx
mov edx, dword [esp + 0xc]
mov dword [esp + 0x68], edx
lea ebx, [0x845dc0]
mov dword [esp], ebx
call fcn.00409d90
mov edi, dword [esp + 4]
mov eax, dword [esp + 0x34]
mov dword [edi + 4], eax
mov eax, dword [esp + 0x38]
mov dword [edi + 8], eax
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
cmp ecx, 0xffffffff
je 0x78591f
cdq
idiv ecx
jmp 0x785921
neg eax
mov ecx, dword [0xc6f140]
test ecx, ecx
jne 0x785b81
mov ecx, dword [esp + 0x68]
mov dword [edi], ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x64], edi
mov ecx, dword [esp + 0x40]
mov dword [edi + 0xc], ecx
mov ecx, dword [esp + 0x4c]
mov dword [edi + 0x10], ecx
mov edx, dword [esp + 0x50]
mov dword [edi + 0x14], edx
mov ebx, dword [esp + 0x44]
mov dword [edi + 0x18], ebx
mov ebx, dword [esp + 0x48]
mov dword [edi + 0x1c], ebx
jmp 0x785aa6
mov byte [ecx + ebx + 3], 0xff
lea ecx, [esi + 1]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x64]
mov esi, dword [esp + 0x2c]
mov eax, esi
mov edx, ebx
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
mov esi, dword [esp + 0x64]
mov edi, dword [esp + 0x4c]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cmp edi, ebx
jge 0x785a95
mov ebp, dword [esp + 0x70]
mov ebx, dword [ebp + 0x102c]
lea ecx, [ecx + edi*4]
mov ebp, dword [ebx]
mov ebx, dword [ebx + 4]
add edx, edi
cmp edx, ebx
jae 0x785baf
mov ebx, dword [esi]
mov esi, dword [esi + 4]
movzx edx, byte [edx + ebp]
cmp ecx, esi
jae 0x785baf
mov byte [ebx + ecx], dl
mov edx, dword [esp + 0x70]
mov ebx, dword [edx + 0x102c]
mov ebp, dword [esp + 0x24]
lea esi, [ebp + edi*4 + 1]
mov ebp, dword [ebx + 0x10]
mov ebx, dword [ebx + 0xc]
mov edx, dword [esp + 0x30]
test edx, edx
je 0x785ba8
mov dword [esp + 0x58], ecx
mov eax, edi
mov ecx, edx
cmp ecx, 0xffffffff
je 0x785a0b
cdq
idiv ecx
jmp 0x785a0d
neg eax
mov edx, dword [esp + 0x2c]
add edx, eax
cmp edx, ebp
jae 0x785ba1
mov ebp, dword [esp + 0x64]
mov ecx, dword [ebp + 4]
mov ebp, dword [ebp]
movzx ebx, byte [edx + ebx]
cmp esi, ecx
jae 0x785ba1
mov ecx, dword [esp + 0x58]
mov byte [ecx + ebp + 1], bl
mov ebx, dword [esp + 0x70]
mov ebp, dword [ebx + 0x102c]
mov esi, dword [esp + 0x24]
lea ebx, [esi + edi*4 + 2]
mov esi, dword [ebp + 0x18]
mov ebp, dword [ebp + 0x1c]
cmp edx, ebp
jae 0x785b9a
mov ebp, dword [esp + 0x64]
mov edi, dword [ebp + 4]
mov ebp, dword [ebp]
movzx edx, byte [esi + edx]
cmp ebx, edi
jae 0x785b9a
mov byte [ecx + ebp + 2], dl
mov edx, dword [esp + 0x64]
mov ebx, dword [edx]
mov ebp, dword [edx + 4]
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
lea edx, [edi + esi*4 + 3]
cmp edx, ebp
jb 0x785965
jmp 0x785b93
lea edx, [ebp + 1]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x4c]
mov ebx, dword [esp + 0x48]
mov edi, esi
cmp edx, ebx
jge 0x785b5c
mov dword [esp + 0x20], edx
mov eax, dword [esp + 0x70]
mov ebx, dword [eax + 0x102c]
mov ebp, dword [edi + 0xc]
mov dword [esp + 0x58], ebp
mov esi, dword [edi + 0x10]
mov dword [esp + 0x54], esi
mov edi, dword [edi + 0x14]
mov dword [esp + 0x50], edi
mov eax, dword [ebx + 0x34]
mov dword [esp + 0x44], eax
mov eax, dword [ebx + 0x24]
mov dword [esp + 0x40], eax
mov eax, dword [ebx + 0x30]
mov dword [esp + 0x3c], eax
mov dword [esp], ebx
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.007804c0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x50]
mov ebx, ecx
sub ecx, edx
mov edx, dword [esp + 0x58]
imul edx, ecx
mov ecx, dword [esp + 0x4c]
mov ebp, dword [esp + 0x54]
mov esi, ecx
sub ecx, ebp
lea ecx, [edx + ecx*4]
mov dword [esp + 0x24], ecx
mov edx, dword [esp + 0x44]
mov ebp, ebx
sub ebx, edx
mov edx, dword [esp + 0x40]
imul edx, ebx
mov ebx, dword [esp + 0x3c]
mov edi, esi
sub esi, ebx
add edx, esi
mov dword [esp + 0x1c], edx
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x64]
mov dword [esp + 0x5c], eax
xor eax, eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x5c]
jmp 0x785999
lea eax, [0x924b90]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
add esp, 0x6c
ret
mov ecx, eax
mov eax, dword [esp + 0x68]
call fcn.0044c860
mov eax, ecx
jmp 0x785935
call fcn.00426770
ud2
call fcn.00426770
ud2
call fcn.00426770
ud2
call fcn.00426970
ud2
call fcn.00426770
ud2
call fcn.00426970
ud2
call fcn.0044b100
jmp fcn.00785850