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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x9c
mov esi, dword [edx + 4]
cmp byte [eax + 0xef], 0
mov dword [esp + 0x1c], eax
mov eax, 0x6b8c10
mov dword [esp + 0x40], edx
mov edx, 0x6b8c90
cmovne eax, edx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], eax
test esi, esi
je 0x785700
mov ecx, dword [esp + 0x40]
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x6c], eax
mov eax, dword [eax + 0xc]
mov edi, eax
mov esi, eax
mov dword [esp + 0x78], eax
and edi, 2
and esi, 1
mov dword [esp + 0x70], edi
mov edi, eax
and edi, 4
mov dword [esp + 0x44], esi
mov esi, eax
mov dword [esp + 0x50], edi
mov edi, eax
and eax, 0x20
and esi, 8
mov dword [esp + 0x64], eax
mov eax, dword [ecx]
and edi, 0x10
mov dword [esp + 0x7c], esi
mov dword [esp + 0x2c], eax
mov eax, dword [ecx + 8]
mov dword [esp + 0x74], edi
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
test eax, eax
jle 0x785564
mov edi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x40]
xor ebx, ebx
jmp 0x785517
cmp byte [esi + 5], 0
je 0x785540
mov dword [esi + 0x28], 0
mov eax, dword [ebp + 8]
add ebx, 1
cmp eax, ebx
jle 0x785560
mov esi, dword [edi + ebx*4]
cmp byte [esi + 4], 0
jne 0x785500
mov eax, dword [esp + 0x1c]
mov edx, esi
call fcn.007850a0
test eax, eax
je 0x78550d
add esp, 0x9c
pop ebx
pop esi
pop edi
pop ebp
ret
sub esp, 0xc
push dword [esi + 0x28]
call fcn.006b6db0
pop eax
push dword [esi + 0x34]
call fcn.00729370
mov dword [esi + 0x34], 0
add esp, 0x10
jmp 0x785506
mov dword [esp + 0x20], eax
mov edi, dword [esp + 0x4c]
mov eax, dword [esp + 0x20]
lea esi, [edi - 1]
cmp edi, eax
cmove eax, esi
sub eax, 1
mov dword [esp + 0x14], eax
js 0x7855d2
mov dword [esp + 8], esi
mov edi, dword [esp + 0x2c]
lea esi, [esi]
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 8]
mov ebx, eax
cmp eax, esi
jl 0x7855b0
jmp 0x7855c4
mov dword [edi + ebx*4 + 4], ebp
mov dword [edi + ebx*4], esi
add ebx, 1
cmp ebx, dword [esp + 8]
je 0x7855c4
mov esi, dword [edi + ebx*4 + 4]
mov ebp, dword [edi + ebx*4]
mov edx, esi
mov eax, ebp
call fcn.006b6300
test eax, eax
jns 0x7855a0
sub dword [esp + 0x14], 1
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
jne 0x785588
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x40]
mov edi, dword [esi]
mov dword [eax + 8], 0
mov ecx, dword [edi + 0x28]
test ecx, ecx
je 0x785700
mov esi, dword [edi + 0x3c]
mov ebx, dword [edi + 0x40]
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x74]
mov dword [eax + 0x34], esi
mov dword [eax + 0x30], ebx
mov eax, dword [ecx]
test edx, edx
jne 0x78563b
test eax, eax
je 0x78563b
mov edx, dword [ecx + 4]
cmp esi, edx
jl 0x785700
jle 0x785625
mov ebp, dword [esp + 0x7c]
test ebp, ebp
je 0x785700
sub esp, 4
push edx
push eax
push ebx
call fcn.00798630
add esp, 0x10
test eax, eax
jne 0x785700
cmp dword [esp + 0x4c], 1
mov dword [esp + 0x20], 1
mov eax, 1
jle 0x78569f
mov dword [esp + 8], edi
mov ebp, dword [esp + 0x2c]
mov edi, esi
mov esi, 1
jmp 0x785686
cmp edi, dword [eax + 0x3c]
jne 0x785691
sub esp, 4
push edi
push dword [eax + 0x40]
push ebx
call fcn.00798630
add esp, 0x10
test eax, eax
jne 0x785691
add esi, 1
cmp dword [esp + 0x4c], esi
je 0x78570d
mov eax, dword [ebp + esi*4]
mov ecx, dword [eax + 0x28]
test ecx, ecx
jne 0x785660
mov dword [esp + 0x20], esi
cmp esi, 1
mov edi, dword [esp + 8]
sete al
mov edx, dword [esp + 0x70]
test edx, edx
sete byte [esp + 0x57]
test byte [esp + 0x78], 0x22
jne 0x785720
test al, al
je 0x785720
mov eax, dword [esp + 0x1c]
mov edx, dword [edi + 0x38]
cmp byte [eax + 0xef], 0
je 0x785d2e
test edx, edx
jne 0x785d95
mov eax, dword [edi + 0x4c]
mov esi, dword [esp + 0x40]
mov ecx, dword [edi + 0x48]
mov dword [esi + 0x3c], eax
mov eax, dword [esp + 0x40]
mov dword [eax + 0x38], ecx
mov eax, dword [esp + 0x40]
mov dword [eax + 8], 1
mov eax, 0x64
jmp 0x78552f
add esp, 0x9c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x70]
mov edi, dword [esp + 8]
mov dword [esp + 0x20], esi
test eax, eax
sete byte [esp + 0x57]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
mov edx, edi
mov ebp, dword [esp + 0x1c]
lea esi, [eax + 4]
lea ebx, [eax + ecx*4]
jmp 0x785745
mov edx, dword [esi]
add esi, 4
movzx eax, byte [ebp + 0xef]
call fcn.0072a9c0
cmp ebx, esi
jne 0x785740
sub esp, 0xc
push dword [esp + 0x54]
mov edi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x30]
mov eax, edi
mov edx, ecx
call fcn.006b40a0
mov edx, dword [edi]
add esp, 0x10
mov eax, dword [edx + 0x50]
test eax, eax
je 0x7859f8
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x24], 0
lea esi, [esi]
mov ebp, dword [edx + 0x5c]
mov edi, dword [edx + 0x58]
mov dword [esp + 0x80], 0
sub esp, 0xc
mov dword [esp + 0x90], 0
mov dword [esp + 0x18], ebp
mov ebp, 1
mov dword [esp + 0x14], edi
lea eax, [esp + 0x90]
push eax
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x90]
call fcn.0072aa50
add esp, 0x10
cmp dword [esp + 0x20], 1
je 0x78582c
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x2c]
mov edi, dword [esp + 0x1c]
jmp 0x785822
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
xor eax, dword [edx + 0x58]
xor ecx, dword [edx + 0x5c]
or ecx, eax
jne 0x78582c
sub esp, 0xc
xor ecx, ecx
mov eax, edi
add ebp, 1
push 0
call fcn.0072aa50
add esp, 0x10
cmp esi, ebp
je 0x78582c
mov edx, dword [ebx + ebp*4]
mov eax, dword [edx + 0x50]
test eax, eax
jne 0x7857f8
mov eax, dword [esp + 0x50]
test eax, eax
jne 0x785ac0
cmp byte [esp + 0x57], 0
jne 0x78584e
mov eax, dword [esp + 0x84]
test eax, eax
jle 0x7859c4
mov eax, dword [esp + 0x1c]
cmp byte [eax + 0xef], 0
je 0x785c19
mov eax, dword [esp + 0x24]
test eax, eax
jle 0x785aa0
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 8]
mov edi, dword [esp + 0xc]
mov edx, dword [esp + 0x3c]
cmp esi, eax
mov ecx, edi
sbb ecx, edx
jge 0x785c41
sub eax, esi
sbb edx, edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
mov ecx, dword [esp + 0x30]
mov ebx, dword [esp + 0x34]
xor eax, eax
lea esi, [esi]
shrd ecx, ebx, 7
shr ebx, 7
add eax, 1
mov esi, ebx
or esi, ecx
jne 0x7858a0
mov edx, dword [esp + 0x44]
test edx, edx
je 0x7858c3
mov edx, dword [esp + 0x84]
lea eax, [eax + edx + 1]
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x40]
cdq
mov ebx, ecx
sar ebx, 0x1f
add eax, ecx
mov ecx, dword [esi + 0x1c]
adc edx, ebx
add eax, 0x14
mov ebx, dword [esi + 0x10]
adc edx, 0
cmp dword [esi + 0x18], eax
sbb ecx, edx
jl 0x785b95
mov eax, dword [esp + 0x64]
add ebx, dword [esp + 0x24]
mov dword [esp + 0x28], ebx
test eax, eax
je 0x785af0
mov ebx, dword [esp + 0x80]
mov eax, dword [esp + 0x84]
xor esi, esi
xor edi, edi
movzx edx, byte [ebx]
add eax, ebx
mov dword [esp + 0x18], eax
cmp dl, 1
je 0x785cae
cmp dl, 2
je 0x785ccb
test dl, 0xfe
je 0x785949
lea esi, [esi]
add ebx, 1
mov eax, edx
movzx edx, byte [ebx]
and eax, 0xffffff80
or eax, edx
test al, 0xfe
jne 0x785938
cmp dword [esp + 0x18], ebx
jbe 0x78599d
mov dword [esp + 0x68], ebp
mov ebp, edi
lea esi, [esi]
add ebx, 1
lea edx, [esp + 0x88]
mov eax, ebx
call fcn.006b35c0
add ebx, eax
movzx edx, byte [ebx]
cmp dl, 2
je 0x785a10
test dl, 0xfe
je 0x785991
lea esi, [esi]
add ebx, 1
mov eax, edx
movzx edx, byte [ebx]
and eax, 0xffffff80
or eax, edx
test al, 0xfe
jne 0x785980
cmp dword [esp + 0x18], ebx
ja 0x785958
mov edi, ebp
mov ebp, dword [esp + 0x68]
test esi, esi
je 0x7859ac
mov eax, dword [esp + 0x28]
mov byte [eax + edi], 0
add edi, 1
test edi, edi
je 0x7859c4
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
add dword [esp + 0x24], edi
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edx
sub esp, 0xc
mov ecx, ebp
push dword [esp + 0x54]
mov edi, dword [esp + 0x3c]
mov edx, dword [esp + 0x30]
mov eax, edi
call fcn.006b40a0
mov edx, dword [edi]
add esp, 0x10
mov esi, dword [edx + 0x50]
test esi, esi
jne 0x785798
mov ebx, dword [esp + 0x24]
test ebx, ebx
jg 0x785dac
mov eax, dword [esp + 0x40]
mov edi, dword [esp + 0x20]
mov dword [eax + 8], edi
jmp 0x7854ec
test esi, esi
je 0x785c51
mov eax, dword [esp + 0x28]
lea esi, [ebp + 1]
mov dword [esp + 0x60], ebx
mov dword [esp + 0x58], esi
mov byte [eax + ebp], 1
add eax, esi
mov edx, dword [esp + 0x8c]
mov dword [esp + 0x5c], eax
mov ecx, eax
mov eax, dword [esp + 0x88]
lea esi, [esi]
mov edi, eax
mov esi, eax
shrd eax, edx, 7
mov dword [esp + 0x14], ecx
shr edx, 7
or edi, 0xffffff80
add ecx, 1
mov ebp, edx
mov ebx, edi
or ebp, eax
mov byte [ecx - 1], bl
jne 0x785a48
mov eax, esi
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x60]
mov esi, 1
and eax, 0x7f
sub ecx, dword [esp + 0x5c]
add ecx, dword [esp + 0x58]
mov byte [edi], al
mov eax, dword [esp + 0x28]
lea ebp, [ecx + 1]
mov byte [eax + ecx], 2
movzx edx, byte [ebx]
jmp 0x785977
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
sub eax, dword [esp + 0x38]
sbb edx, dword [esp + 0x3c]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
jmp 0x785893
mov eax, dword [esp + 0x6c]
sub esp, 0xc
xor edx, edx
lea esi, [esp + 0x90]
mov eax, dword [eax + 8]
push esi
lea ecx, [esp + 0x90]
call fcn.006b4f70
add esp, 0x10
jmp 0x785838
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x18], ebp
mov ebx, dword [esp + 0x34]
mov edi, ecx
mov byte [esp + 0x14], cl
shrd ecx, ebx, 7
mov esi, eax
shr ebx, 7
or edi, 0xffffff80
add eax, 1
mov ebp, ebx
mov edx, edi
or ebp, ecx
mov byte [eax - 1], dl
jne 0x785b00
movzx edx, byte [esp + 0x14]
sub eax, dword [esp + 0x28]
mov edi, dword [esp + 0x44]
add dword [esp + 0x24], eax
and edx, 0x7f
mov eax, dword [esp + 8]
mov ebp, dword [esp + 0x18]
mov byte [esi], dl
mov edx, dword [esp + 0xc]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edx
test edi, edi
je 0x7859c4
mov esi, dword [esp + 0x40]
mov edi, dword [esp + 0x24]
sub esp, 4
mov eax, dword [esi + 0x10]
push dword [esp + 0x88]
push dword [esp + 0x88]
add eax, edi
push eax
call fcn.00798628
mov eax, dword [esp + 0x94]
mov edx, dword [esi + 0x10]
add eax, edi
lea edi, [eax + 1]
mov byte [edx + eax], 0
mov dword [esp + 0x34], edi
add esp, 0x10
jmp 0x7859c4
shld edx, eax, 1
add eax, eax
mov esi, eax
mov eax, dword [esp + 0x40]
mov edi, edx
mov dword [eax + 0x18], esi
mov dword [eax + 0x1c], edx
mov eax, dword [0x7d2cd0]
test eax, eax
jne 0x785d24
call fcn.006b5b60
test eax, eax
jne 0x785cbb
call fcn.006fbfc0
test eax, eax
jne 0x785cbb
mov eax, esi
mov ecx, edi
mov edx, edi
test ebx, ebx
je 0x785d89
or edx, esi
je 0x785d73
mov edx, 0x7ffffeff
mov eax, 0
cmp edx, esi
sbb eax, edi
jb 0x785cbb
mov eax, ebx
mov edx, esi
call fcn.006b9540
mov ebx, eax
test ebx, ebx
je 0x785cbb
mov eax, dword [esp + 0x40]
mov dword [eax + 0x10], ebx
jmp 0x7858ec
mov edi, dword [esp + 0x24]
test edi, edi
jle 0x785aa0
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 8]
mov edx, dword [esp + 0x3c]
mov edi, dword [esp + 0xc]
cmp eax, esi
mov eax, edx
sbb eax, edi
jl 0x785aa0
add esp, 0x9c
mov eax, 0x10b
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x60], ebx
add eax, ebp
mov dword [esp + 0x58], eax
mov ecx, eax
mov eax, dword [esp + 0x30]
lea esi, [esi]
mov edi, eax
mov esi, eax
shrd eax, edx, 7
mov dword [esp + 0x14], ecx
shr edx, 7
or edi, 0xffffff80
add ecx, 1
mov ebp, edx
mov ebx, edi
or ebp, eax
mov byte [ecx - 1], bl
jne 0x785c70
mov ebp, dword [esp + 0x5c]
mov edi, dword [esp + 0x14]
mov eax, esi
and eax, 0x7f
sub ecx, dword [esp + 0x58]
mov ebx, dword [esp + 0x60]
mov byte [edi], al
add ebp, ecx
jmp 0x785a18
cmp ebx, eax
jb 0x78594f
jmp 0x7859c4
add esp, 0x9c
mov eax, 7
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x58], ebx
mov eax, dword [esp + 0x28]
nop
mov ecx, esi
mov edx, esi
shrd esi, edi, 7
mov ebx, eax
shr edi, 7
add eax, 1
or ecx, 0xffffff80
mov ebp, edi
mov byte [eax - 1], cl
or ebp, esi
jne 0x785ce0
mov edi, ebx
and edx, 0x7f
mov ebx, dword [esp + 0x58]
mov ebp, dword [esp + 0x14]
mov byte [edi], dl
mov edx, eax
sub edx, dword [esp + 0x28]
mov esi, 1
mov byte [eax], 2
lea edi, [edx + 1]
movzx edx, byte [ebx]
jmp 0x78592d
lock or dword [esp], 0
jmp 0x785bd0
mov eax, dword [edi + 0x4c]
mov esi, dword [esp + 0x40]
mov ecx, dword [edi + 0x48]
mov dword [esi + 0x3c], eax
test edx, edx
je 0x7856de
sub esp, 8
cdq
push edx
mov edx, ecx
push eax
mov eax, esi
call fcn.00708c40
mov edx, dword [esi + 0x10]
add esp, 0x10
mov dword [esi + 0x38], edx
test eax, eax
je 0x7856e5
mov edi, dword [esp + 0x40]
mov dword [edi + 8], 1
jmp 0x78552f
sub esp, 0xc
push ebx
call fcn.006b6db0
add esp, 0x10
mov eax, 7
jmp 0x78552f
call fcn.006b97d0
mov ebx, eax
jmp 0x785c05
mov eax, dword [esp + 0x1c]
mov edx, edi
movzx eax, byte [eax + 0xef]
call fcn.0072a9c0
jmp 0x785755
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x40]
cdq
mov ecx, dword [edi + 0x1c]
add eax, 0x14
adc edx, 0
cmp dword [edi + 0x18], eax
sbb ecx, edx
jl 0x785e0e
mov esi, dword [esp + 0x40]
mov edi, dword [esp + 0x24]
mov eax, dword [esi + 0x10]
add eax, edi
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov eax, dword [esi + 0x10]
mov dword [esi + 0x3c], edi
mov dword [esi + 0x38], eax
mov eax, dword [esp + 0x20]
mov dword [esi + 8], eax
mov eax, 0x64
jmp 0x78552f
add eax, eax
adc edx, edx
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], edx
push ecx
push edx
push eax
push dword [edi + 0x10]
call fcn.006fd040
add esp, 0x10
test eax, eax
je 0x785cbb
mov dword [edi + 0x10], eax
jmp 0x785dc5