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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10038f20
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x10057820]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [0x1003c464]
push 0x16
call edi
cmp eax, 0xffffff
jne 0x786cd2
push 0xf
call edi
test eax, eax
jne 0x786cd2
mov eax, 1
jmp 0x786cd4
xor eax, eax
push 0x15
mov dword [esi + 0x184], eax
call edi
test eax, eax
jne 0x786cf4
push 0xf
call edi
cmp eax, 0xffffff
jne 0x786cf4
mov eax, 1
jmp 0x786cf6
xor eax, eax
push 0
lea ecx, [ebp - 0x2c]
mov dword [esi + 0x188], eax
call fcn.0079cf09
mov eax, dword [ebp - 0x24]
push 0xc
push eax
mov dword [ebp - 4], 0
call dword [0x1003c09c]
push 0xf
mov dword [esi + 0x1ac], eax
call edi
push 0x10
mov dword [esi + 0x14], eax
mov dword [esi + 0x4c], eax
call edi
push 0x15
mov dword [esi + 0x18], eax
mov dword [esi + 0x50], eax
call edi
push 0x16
mov dword [esi + 0x28], eax
mov dword [esi + 0x58], eax
call edi
push 0x14
mov dword [esi + 0x2c], eax
mov dword [esi + 0x5c], eax
call edi
push 0x12
mov dword [esi + 0x1c], eax
mov dword [esi + 0x54], eax
call edi
push 0x11
mov dword [esi + 0x20], eax
mov dword [esi + 0x60], eax
call edi
push 6
mov dword [esi + 0x30], eax
call edi
push 0xd
mov dword [esi + 0x24], eax
call edi
push 0xe
mov dword [esi + 0x34], eax
call edi
push 5
mov dword [esi + 0x38], eax
call edi
push 8
mov dword [esi + 0x64], eax
mov dword [esi + 0x48], eax
call edi
push 9
mov dword [esi + 0x68], eax
call edi
push 7
mov dword [esi + 0x6c], eax
call edi
push 2
mov dword [esi + 0x70], eax
call edi
push 3
mov dword [esi + 0x74], eax
call edi
push 0x1b
mov dword [esi + 0x78], eax
call edi
push 0x1c
mov dword [esi + 0x80], eax
call edi
push 0xa
mov dword [esi + 0x84], eax
call edi
push 0xb
mov dword [esi + 0x88], eax
call edi
push 0x13
mov dword [esi + 0x8c], eax
call edi
mov dword [esi + 0x7c], eax
cmp dword [esi + 0x184], 0
je 0x786de7
mov eax, dword [esi + 0x68]
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
jmp 0x786df9
push 0x1a
call edi
mov dword [esi + 0x40], 0xff0000
mov dword [esi + 0x44], 0x800080
mov edi, dword [0x1003c454]
push 0x10
mov dword [esi + 0x3c], eax
call edi
xor ecx, ecx
test eax, eax
setne cl
mov dword [esi + 0xc], eax
mov eax, ecx
test eax, eax
jne 0x786e1b
call fcn.00795e3b
push 0x14
call edi
xor edx, edx
test eax, eax
setne dl
mov dword [esi + 8], eax
mov eax, edx
test eax, eax
jne 0x786e34
call fcn.00795e3b
push 5
call edi
xor ecx, ecx
test eax, eax
setne cl
mov dword [esi + 0x10], eax
mov eax, ecx
test eax, eax
jne 0x786e4d
call fcn.00795e3b
lea ecx, [esi + 0x90]
call fcn.0079d07a
mov eax, dword [esi + 0x14]
mov edi, dword [0x1003c0ac]
push eax
call edi
push eax
lea ecx, [esi + 0x90]
call fcn.0079d020
lea ecx, [esi + 0xc8]
call fcn.0079d07a
mov eax, dword [esi + 0x4c]
push eax
call edi
push eax
lea ecx, [esi + 0xc8]
call fcn.0079d020
lea ecx, [esi + 0xb0]
call fcn.0079d07a
mov eax, dword [esi + 0x74]
push eax
call edi
push eax
lea ecx, [esi + 0xb0]
call fcn.0079d020
lea ecx, [esi + 0xb8]
call fcn.0079d07a
mov eax, dword [esi + 0x78]
push eax
call edi
push eax
lea ecx, [esi + 0xb8]
call fcn.0079d020
lea ecx, [esi + 0x98]
call fcn.0079d07a
mov eax, dword [esi + 0x34]
push eax
call edi
push eax
lea ecx, [esi + 0x98]
call fcn.0079d020
lea ecx, [esi + 0xa8]
call fcn.0079d07a
mov eax, dword [esi + 0x28]
push eax
call edi
push eax
lea ecx, [esi + 0xa8]
call fcn.0079d020
lea ecx, [esi + 0xc0]
call fcn.0079d07a
mov eax, dword [esi + 0x64]
push eax
call edi
push eax
lea ecx, [esi + 0xc0]
call fcn.0079d020
lea ecx, [esi + 0xd0]
call fcn.0079d07a
mov edx, dword [0x1005bc4c]
push edx
push 1
push 0
call dword [0x1003c0b0]
push eax
lea ecx, [esi + 0xd0]
call fcn.0079d020
lea ecx, [esi + 0xd8]
call fcn.0079d07a
mov eax, dword [0x1005bc64]
push eax
push 1
push 0
call dword [0x1003c0b0]
push eax
lea ecx, [esi + 0xd8]
call fcn.0079d020
lea ecx, [esi + 0xe0]
call fcn.0079d07a
mov ecx, dword [0x1005bc68]
push ecx
push 1
push 0
call dword [0x1003c0b0]
push eax
lea ecx, [esi + 0xe0]
call fcn.0079d020
lea ebx, [esi + 0xa0]
test ebx, ebx
je 0x786fac
cmp dword [ebx + 4], 0
je 0x786fac
mov ecx, ebx
call fcn.0079d07a
cmp dword [esi + 0x1ac], 8
jle 0x787017
mov cl, byte [esi + 0x16]
mov dl, byte [esi + 0x14]
movzx eax, byte [esi + 0x1e]
mov byte [ebp - 0xd], dl
movzx edx, cl
sub eax, edx
cdq
sub eax, edx
movzx edx, byte [esi + 0x15]
sar eax, 1
add al, cl
movzx ecx, al
movzx eax, byte [esi + 0x1d]
sub eax, edx
cdq
sub eax, edx
mov edx, eax
movzx eax, byte [esi + 0x15]
sar edx, 1
add dl, al
movzx eax, dl
movzx edx, byte [ebp - 0xd]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x1c]
sub eax, edx
cdq
sub eax, edx
sar eax, 1
add al, byte [ebp - 0xd]
shl ecx, 8
movzx eax, al
or ecx, eax
push ecx
call edi
push eax
mov ecx, ebx
call fcn.0079d020
jmp 0x787068
mov ecx, dword [ebp - 0x28]
push ecx
mov ecx, esi
call fcn.00786058
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x787032
call fcn.00795e3b
mov esi, 0x1003c70c
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], esi
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0079d020
lea edx, [ebp - 0x18]
push edx
mov ecx, ebx
call fcn.00786268
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
mov dword [ebp - 0x18], esi
call fcn.00786928
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.0079cf5d
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret