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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x128
mov dword [esp + 0x98], edx
mov edx, 0x1b
mov dword [esp + 0x28], eax
mov dword [esp + 0xa8], 0
push 0
lea ecx, [esp + 0xac]
call fcn.00770750
mov dword [esp + 0x88], eax
add esp, 0x10
mov dword [esp + 0x7c], 0
test eax, eax
je 0x786455
mov eax, dword [esp + 0x8c]
mov edx, dword [esp + 0x7c]
mov dword [eax], edx
mov eax, dword [esp + 0x78]
add esp, 0x11c
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [esp + 0x1c]
mov eax, dword [esi + 0x120]
cdq
push edx
push eax
push 1
push dword [esp + 0xa8]
call fcn.006f6cf0
mov eax, dword [esi + 0x104]
cdq
push edx
push eax
push 2
push dword [esp + 0xb8]
call fcn.006f6cf0
add esp, 0x20
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
sub esp, 0xc
push dword [esp + 0xa8]
call fcn.00755d60
add esp, 0x10
cmp eax, 0x64
jne 0x7868c0
mov ebx, dword [esp + 0x9c]
xor edx, edx
mov eax, ebx
call fcn.006c1590
call fcn.006ba180
mov dword [esp + 0x28], eax
test ebx, ebx
je 0x7864df
mov eax, ebx
call fcn.006c1540
mov eax, dword [esp + 0x1c]
mov ebx, dword [eax + 0x104]
test ebx, ebx
jle 0x7864a0
mov dword [esp + 0x20], 0
xor ebx, ebx
xor edx, edx
mov dword [esp + 0x24], 0
jmp 0x78652e
mov eax, dword [esp + 0x30]
call fcn.007294e0
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x3c]
cmp dword [eax + 0x104], edx
jle 0x78689d
add dword [esp + 0x20], 1
mov edx, dword [esp + 0x3c]
adc dword [esp + 0x24], 0
lea eax, [edx + 1]
mov dword [esp + 0x3c], eax
test ebx, ebx
jne 0x78650c
lea edi, [esp + 0xd0]
mov eax, ebx
mov ecx, 0x10
mov dword [esp + 0xc0], 0
mov dword [esp + 0x30], edi
mov esi, edi
sub esp, 8
rep stosd dword es:[edi], eax
mov ecx, edx
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd0], 0
mov dword [esp + 0xd4], 0x13
push esi
push 1
push 0
push 0
push 0
push 0xfffffffffffffffe
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x3c]
call fcn.00784680
add esp, 0x20
mov ebx, eax
test eax, eax
jne 0x786503
lea eax, [esp + 0xc0]
sub esp, 0xc
mov dword [esp + 0xe8], eax
push dword [esp + 0xd0]
mov ecx, dword [esp + 0xd0]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x2c]
call fcn.00786280
add esp, 0x10
mov ebx, eax
test eax, eax
jne 0x786503
mov dword [esp + 0x2c], 0
mov dword [esp + 0x38], 0
nop
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
call fcn.00785460
cmp eax, 0x64
jne 0x786860
mov ebx, dword [esp + 0x108]
mov edi, dword [esp + 0x10c]
lea edx, [esp + 0xa8]
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], 0
mov dword [esp + 0xb0], 0
add edi, ebx
mov eax, ebx
mov dword [esp + 8], edi
mov dword [esp + 0xb4], 0
call fcn.006b35c0
add eax, ebx
mov dword [esp], eax
cmp edi, eax
jbe 0x7865f0
lea eax, [esp + 0xb8]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], eax
lea esi, [esi]
nop
mov edi, dword [esp]
mov edx, dword [esp + 0x18]
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
mov eax, edi
call fcn.006b35c0
add edi, eax
mov dword [esp], edi
cmp dword [esp + 8], edi
jbe 0x7865f0
mov edx, dword [esp + 0xb8]
mov eax, 1
mov ecx, dword [esp + 0xbc]
cmp eax, edx
mov eax, 0
sbb eax, ecx
jae 0x7867b8
mov eax, edx
mov edx, ecx
mov esi, dword [esp + 0x104]
mov ebp, dword [esp + 0x100]
add eax, 0xfffffffe
adc edx, 0xffffffff
add dword [esp + 0x10], eax
mov eax, dword [esp + 0xa8]
adc dword [esp + 0x14], edx
mov edx, dword [esp + 0xac]
mov ecx, eax
mov dword [esp + 4], esi
mov ebx, edx
shl ecx, 3
shld ebx, eax, 3
add eax, ecx
mov ecx, dword [esp + 0x28]
adc edx, ebx
mov ebx, ecx
sar ebx, 0x1f
add eax, ecx
adc edx, ebx
mov ecx, eax
mov ebx, edx
shl ecx, 3
shld ebx, eax, 3
add ecx, eax
mov eax, dword [esp + 0xb0]
adc ebx, edx
add ecx, dword [esp + 0x20]
adc ebx, dword [esp + 0x24]
mov esi, ecx
mov edi, ebx
cdq
shld edi, ecx, 3
shl esi, 3
add eax, ecx
adc edx, ebx
add esi, eax
adc edi, edx
mov eax, esi
mov edx, edi
shl eax, 3
shld edx, esi, 3
add esi, eax
mov eax, dword [esp + 0x10]
adc edi, edx
cdq
add eax, esi
mov esi, dword [esp + 4]
adc edx, edi
test esi, esi
jle 0x7867a5
add esi, ebp
mov dword [esp + 4], esi
lea esi, [esi]
nop
movsx esi, byte [ebp]
mov ecx, eax
mov ebx, edx
shl ecx, 3
shld ebx, eax, 3
mov edi, esi
sar edi, 0x1f
add ecx, esi
adc ebx, edi
add eax, ecx
adc edx, ebx
add ebp, 1
cmp dword [esp + 4], ebp
jne 0x786780
xor dword [esp + 0x2c], eax
xor dword [esp + 0x38], edx
jmp 0x786680
mov dword [esp + 0xb0], 0
mov eax, edx
mov edx, ecx
mov dword [esp + 0xb4], 0
or edx, eax
je 0x786810
mov eax, edi
lea edx, [esp + 0xb0]
call fcn.006b35c0
add edi, eax
mov dword [esp], edi
mov edx, dword [esp]
cmp dword [esp + 8], edx
jbe 0x7865f0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
jmp 0x786680
mov esi, dword [esp]
mov edx, dword [esp + 0x18]
mov eax, esi
call fcn.006b35c0
mov edx, esi
add edx, eax
mov eax, dword [esp + 0x1c]
mov dword [esp], edx
mov edx, dword [esp + 0xbc]
cmp byte [eax + 0xef], 0
mov eax, dword [esp + 0xb8]
je 0x786850
sub dword [esp + 0xa8], eax
sbb dword [esp + 0xac], edx
jmp 0x7867e9
add dword [esp + 0xa8], eax
adc dword [esp + 0xac], edx
jmp 0x7867e9
mov ebx, eax
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
xor dword [esp + 0x80], edx
mov edx, dword [esp + 0x38]
xor dword [esp + 0x84], edx
call fcn.007294e0
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x3c]
cmp dword [eax + 0x104], edx
jg 0x786520
test ebx, ebx
je 0x7864a0
sub esp, 0xc
push dword [esp + 0xa8]
call fcn.007281d0
add esp, 0x10
mov dword [esp + 0x7c], 0
mov dword [esp + 0x78], ebx
jmp 0x786439
sub esp, 0xc
push dword [esp + 0xa8]
call fcn.007281d0
mov dword [esp + 0x8c], eax
add esp, 0x10
test eax, eax
jne 0x786e4e
mov edx, dword [esp + 0x1c]
sub esp, 8
mov eax, dword [edx + 0x24]
mov eax, dword [eax]
mov dword [esp + 0xa8], 0
mov dword [esp + 0x44], eax
push dword [edx + 0xe0]
push 0xa384ba
call fcn.006ff3c0
add esp, 0x10
mov ebx, eax
test eax, eax
je 0x786c1b
mov eax, dword [esp + 0x1c]
mov ecx, 0xffffffff
mov eax, dword [eax + 0xc]
push 0
lea edx, [esp + 0xa4]
push edx
mov edx, ebx
push 0
push pe_nt_image_headers32
call fcn.0076b950
mov dword [esp], ebx
mov dword [esp + 0x88], eax
call fcn.006b6db0
add esp, 0x10
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov eax, dword [esp + 0x78]
mov ebp, dword [esp + 0xa0]
test eax, eax
jne 0x786e3d
sub esp, 0xc
push ebp
call fcn.00755d60
add esp, 0x10
cmp eax, 0x64
jne 0x786e04
mov ebx, dword [esp + 0xa0]
xor edx, edx
mov eax, ebx
call fcn.006c1590
call fcn.006ba180
mov esi, eax
mov edi, edx
test ebx, ebx
je 0x7869ab
mov eax, ebx
call fcn.006c1540
mov eax, dword [esp + 0x1c]
mov ebp, dword [esp + 0xa0]
mov edx, dword [eax + 0x2c]
test edx, edx
je 0x786d8c
mov eax, dword [eax + 0x18]
lea edx, [eax + 1]
mov dword [esp], eax
mov eax, ebp
call fcn.006c1590
call fcn.006ba180
mov dword [esp + 0x88], eax
test ebp, ebp
je 0x786df1
mov eax, ebp
call fcn.006c1540
mov ecx, dword [esp + 0x88]
mov ebp, dword [esp + 0xa0]
mov ebx, ecx
sar ebx, 0x1f
mov eax, esi
mov edx, edi
mov dword [esp + 0x10], 0
shld edx, eax, 3
shl eax, 3
add eax, esi
adc edx, edi
add eax, ecx
adc edx, ebx
mov ecx, eax
mov ebx, edx
shl ecx, 3
shld ebx, eax, 3
add eax, ecx
adc edx, ebx
mov ecx, eax
mov ebx, edx
shl ecx, 3
shld ebx, eax, 3
add ecx, eax
adc ebx, edx
mov dword [esp + 0x58], ecx
mov ecx, eax
add ecx, 1
mov dword [esp + 0x5c], ebx
mov ebx, edx
adc ebx, 0
shld ebx, ecx, 3
shl ecx, 3
add ecx, eax
adc ebx, edx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], ebx
lea esi, [esi]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
cmp dword [eax + 0x18], edx
jle 0x786972
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x60]
mov esi, dword [esp + 0x64]
cdq
add ebx, eax
adc esi, edx
add eax, dword [esp + 0x58]
adc edx, dword [esp + 0x5c]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], esi
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
mov eax, dword [eax + 0x20]
movzx eax, byte [eax + edx]
add edx, 1
mov dword [esp + 0x10], edx
test al, al
jne 0x786a60
mov eax, ebp
call fcn.006c1590
mov ebx, eax
test eax, eax
je 0x786aed
movzx eax, word [eax + 0x10]
mov edx, eax
and dx, 0x202
cmp dx, 0x202
je 0x786dd8
test al, 1
jne 0x786dea
mov eax, ebx
mov edx, 1
call fcn.006d6970
mov ebx, eax
test ebp, ebp
je 0x786af8
mov eax, ebp
call fcn.006c1540
mov eax, dword [esp + 0x1c]
sub esp, 8
mov ecx, ebx
mov dword [esp + 0xac], 0
lea edx, [esp + 0xac]
mov eax, dword [eax + 0x24]
push edx
push 0xffffffffffffffff
mov edx, dword [esp + 0x98]
call fcn.006b3d00
add esp, 0x10
mov ebx, eax
test eax, eax
jne 0x786bf0
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
shld edx, eax, 3
shl eax, 3
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0x44]
add eax, 1
adc edx, 0
shld edx, eax, 3
shl eax, 3
mov dword [esp + 0x70], eax
lea eax, [esp + 0xd0]
mov dword [esp + 0x54], eax
lea eax, [esp + 0xa8]
mov dword [esp + 0x48], eax
lea eax, [esp + 0xb8]
mov dword [esp + 0x50], eax
lea eax, [esp + 0xb0]
mov dword [esp + 0x74], edx
mov dword [esp + 0x4c], eax
mov dword [esp + 0xb0], 0
sub esp, 8
mov dword [esp + 0xc0], 0
mov dword [esp + 0xc8], 0
mov dword [esp + 0xd8], 0
push dword [esp + 0x5c]
lea eax, [esp + 0xcc]
push eax
push dword [esp + 0x60]
push dword [esp + 0x60]
push dword [esp + 0x60]
push dword [esp + 0xc0]
mov eax, dword [esp + 0x5c]
call dword [eax + 0x14]
add esp, 0x20
mov ebx, eax
test eax, eax
je 0x786c40
mov eax, dword [esp + 0xa4]
test eax, eax
je 0x786c09
sub esp, 0xc
push eax
mov eax, dword [esp + 0x4c]
call dword [eax + 0x10]
add esp, 0x10
cmp ebx, 0x65
je 0x786da0
mov dword [esp + 0x78], ebx
jmp 0x78695f
sub esp, 0xc
push dword [esp + 0xac]
call fcn.00729260
add esp, 0x10
mov dword [esp + 0x78], 7
jmp 0x786439
mov eax, dword [esp + 0xd0]
mov esi, dword [esp + 0xb0]
mov ebx, dword [esp + 0xa8]
mov edx, dword [esp + 0x34]
mov edi, eax
mov ebp, eax
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
sar ebp, 0x1f
mov dword [esp + 0x18], esi
add eax, edi
mov dword [esp + 0x38], ebx
adc edx, ebp
mov dword [esp + 0xc], ebp
add eax, dword [esp + 0x68]
adc edx, dword [esp + 0x6c]
test esi, esi
jle 0x786cb4
add esi, ebx
mov ebp, ebx
mov dword [esp], esi
lea esi, [esi]
nop
movsx esi, byte [ebp]
mov ecx, eax
mov ebx, edx
shl ecx, 3
shld ebx, eax, 3
mov edi, esi
sar edi, 0x1f
add ecx, esi
adc ebx, edi
add eax, ecx
adc edx, ebx
add ebp, 1
cmp dword [esp], ebp
jne 0x786c90
xor dword [esp + 0x28], eax
mov eax, dword [esp + 0x1c]
xor dword [esp + 0x2c], edx
mov ecx, dword [eax + 0x104]
cmp ecx, 1
jle 0x786b92
mov ebx, dword [eax + 0x108]
mov edx, dword [esp + 0xc]
lea eax, [ebx + 0x18]
mov dword [esp + 4], eax
mov eax, dword [esp + 8]
add eax, 1
adc edx, 0
add eax, dword [esp + 0x40]
adc edx, dword [esp + 0x44]
add eax, dword [esp + 0x70]
adc edx, dword [esp + 0x74]
mov dword [esp + 8], eax
lea eax, [ecx + ecx*2]
lea eax, [ebx + eax*8]
mov dword [esp + 0xc], edx
mov dword [esp + 0x20], eax
lea esi, [esi]
mov eax, dword [esp + 4]
mov eax, dword [eax]
cmp dword [esp + 0x18], eax
jl 0x786d64
test eax, eax
jle 0x786d82
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 8]
mov edi, dword [esp + 0xc]
add eax, edx
mov ebp, edx
mov dword [esp], eax
lea esi, [esi]
nop
movsx ecx, byte [ebp]
mov eax, esi
mov edx, edi
shl eax, 3
shld edx, esi, 3
mov ebx, ecx
sar ebx, 0x1f
add eax, ecx
adc edx, ebx
add esi, eax
adc edi, edx
add ebp, 1
cmp dword [esp], ebp
jne 0x786d38
xor dword [esp + 0x28], esi
xor dword [esp + 0x2c], edi
add dword [esp + 4], 0x18
mov ebx, dword [esp + 4]
add dword [esp + 8], 0x51
adc dword [esp + 0xc], 0
cmp dword [esp + 0x20], ebx
jne 0x786d10
jmp 0x786b92
mov esi, dword [esp + 8]
mov edi, dword [esp + 0xc]
jmp 0x786d5c
mov dword [esp + 0x88], 0
xor ecx, ecx
xor ebx, ebx
jmp 0x7869ff
mov eax, dword [esp + 0x1c]
add dword [esp + 0x40], 1
mov ebp, dword [esp + 0xa0]
adc dword [esp + 0x44], 0
mov edx, dword [esp + 0x10]
add dword [esp + 0x30], 1
adc dword [esp + 0x34], 0
cmp dword [eax + 0x18], edx
jg 0x786a9a
jmp 0x786972
cmp byte [ebx + 0x12], 1
jne 0x786ad7
mov ebx, dword [ebx + 8]
jmp 0x786aed
xor ebx, ebx
jmp 0x786aed
mov ebx, eax
mov ebp, dword [esp + 0xa0]
mov ecx, eax
sar ebx, 0x1f
jmp 0x7869ff
sub esp, 0xc
push dword [esp + 0xac]
call fcn.00729260
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
xor edx, dword [esp + 0x90]
xor eax, dword [esp + 0x94]
add esp, 0x10
or edx, eax
sete al
movzx eax, al
mov dword [esp + 0x7c], eax
jmp 0x786439
sub esp, 0xc
push ebp
call fcn.00729260
add esp, 0x10
jmp 0x786439
mov dword [esp + 0x7c], 0
mov dword [esp + 0x78], eax
jmp 0x786439