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

Disassembly:
sub esp, 0xbe4
mov eax, dword [0x1013567c]
xor eax, esp
mov dword [esp + 0xbe0], eax
push ebx
push ebp
mov ebp, dword [esp + 0xbf4]
lea eax, [esp + 0x6c]
push esi
mov esi, dword [esp + 0xbf4]
mov ebx, ecx
push edi
mov edi, dword [esp + 0xc00]
lea ecx, [esp + 0x128]
push 0
push 0
push eax
push 0
push 0
push ebx
push esi
mov dword [esp + 0x88], ebx
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], edi
mov dword [esp + 0x90], 1
call fcn.10056dd0
mov eax, dword [esp + 0x74]
test al, 8
jne 0x10087715
mov ecx, dword [esp + 0x14c]
lea edx, [esp + 0x74]
push edx
push 0
push 1
mov eax, dword [ecx]
call dword [eax + 8]
mov eax, dword [esp + 0x74]
mov edx, eax
and edx, 8
je 0x1008773b
test al, 1
jne 0x1008772a
cmp dword [esp + 0x78], 0xfffff9bd
je 0x1008773b
lea eax, [esp + 0x74]
mov ecx, edi
push eax
call fcn.10062800
jmp 0x10087e2e
test edx, edx
jne 0x10087e2e
lea ecx, [esp + 0x3b4]
mov dword [esp + 0x14], 1
call fcn.100810d0
mov eax, dword [ebp + 0x20]
mov ecx, 0x10137ca8
mov dword [esp + 0x68], eax
call fcn.10083220
mov ecx, 0x4000
cmp eax, ecx
push edi
cmovb eax, ecx
lea ecx, [esp + 0x3b8]
push eax
push 0
push dword [esi + 0xc]
call fcn.1007c0b0
test byte [edi], 8
jne 0x10087ddb
lea eax, [esp + 0xe8]
mov dword [esp + 0xe4], 0x40
xor edi, edi
mov dword [esp + 0xdc], eax
mov eax, dword [esi + 0xc]
push eax
mov dword [esp + 0x38], edi
mov dword [esp + 0xdc], edi
mov dword [esp + 0xe4], edi
mov dword [esp + 0x44], eax
call fcn.10068700
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
test eax, eax
je 0x1008780a
mov eax, dword [ebx + 0x28]
cmp dword [eax + 0x48], 1
je 0x1008780a
push dword [esp + 0x2c]
lea eax, [esp + 0x44]
mov byte [esp + 0x17], 1
push eax
mov dword [esp + 0x54], edi
call fcn.100691c0
mov dword [esp + 0x4c], 1
jmp 0x1008780f
mov byte [esp + 0x13], 0
test byte [esp + 0x14], 8
jne 0x10087b5f
lea ebx, [ebx]
mov ecx, dword [esp + 0x14c]
lea edx, [esp + 0x14]
push edx
xor bl, bl
mov dword [esp + 0x74], 0
mov eax, dword [ecx]
call dword [eax + 0x30]
test byte [esp + 0x14], 8
mov esi, eax
mov dword [esp + 0x64], esi
jne 0x10087b5f
lea eax, [esp + 0x14]
push eax
push 0x202
lea ecx, [esp + 0x3bc]
call fcn.1007b810
test byte [esp + 0x14], 8
mov dword [esp + 0x38], eax
jne 0x10087b5f
cmp eax, dword [esp + 0x3cc]
je 0x10087b4f
mov eax, dword [eax]
xor edi, edi
mov dword [esp + 0x58], eax
mov dword [esp + 0xd8], 0
cmp dword [esp + 0x68], edi
jle 0x10087a1f
jmp 0x100878a0
test byte [esp + 0x14], 8
jne 0x10087a01
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax + edi*8]
mov eax, dword [eax + edi*8 + 4]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x6c]
add eax, 0xb0
lea ebp, [eax + ecx*4]
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
cmp al, 0xc
jne 0x10087a39
mov ecx, dword [ebp]
lea eax, [esp + 0x9f0]
mov dword [esp + 0x8c], eax
lea edx, [esp + 0x14]
lea eax, [esp + 0x128]
mov dword [esp + 0x90], 0x1fe
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], 0
mov dword [esp + 0xa4], 1
mov dword [esp + 0x88], esi
mov dword [esp + 0x9c], ecx
mov eax, dword [ecx]
push edx
lea edx, [esp + 0x8c]
push edx
call dword [eax + 0x18]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x60], eax
test cl, 1
jne 0x100879b3
cmp dword [esp + 0x18], 0x3ee
jne 0x10087966
mov eax, dword [esp + 0x90]
lea ecx, [esp + 0x14]
mov dword [esp + 0x60], eax
call fcn.10062990
mov ecx, dword [esp + 0x14]
test cl, 1
jne 0x100879b3
cmp dword [esp + 0x18], 0x3ec
jne 0x100879b3
lea ecx, [esp + 0x14]
call fcn.10062990
mov eax, dword [ebp]
mov ecx, dword [esp + 0x28]
mov esi, dword [eax]
call fcn.1006d330
mov ecx, dword [ebp]
push eax
lea eax, [esp + 0x18]
push eax
xor eax, eax
cmp byte [esp + 0x38], al
push 0
push 0
sete al
push eax
lea eax, [esp + 0xec]
push eax
call dword [esi + 0x20]
or bl, 1
jmp 0x100879ee
mov eax, dword [ebp]
mov ecx, dword [esp + 0x28]
mov esi, dword [eax]
call fcn.1006d330
mov ecx, dword [ebp]
push eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x68]
lea eax, [esp + 0x9fc]
push eax
xor eax, eax
cmp byte [esp + 0x40], al
sete al
push eax
lea eax, [esp + 0xec]
push eax
call dword [esi + 0x20]
or bl, 2
mov ebp, dword [esp + 0x28]
inc edi
mov esi, dword [esp + 0x64]
cmp edi, dword [esp + 0x68]
jl 0x100878a0
cmp dword [esp + 0xd8], 0x1fe
jbe 0x10087a1f
push 0x1fe
lea ecx, [esp + 0xdc]
call fcn.100733c0
test byte [esp + 0x14], 8
jne 0x10087a7b
mov ecx, dword [esp + 0x14c]
lea edx, [esp + 0x14]
push edx
mov eax, dword [ecx]
call dword [eax + 0xc]
jmp 0x10087a7f
mov eax, dword [ebp]
mov ecx, dword [esp + 0x28]
mov esi, dword [eax]
call fcn.1006d330
mov ecx, dword [ebp]
push eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x6c]
xor eax, eax
cmp byte [esp + 0x3c], al
sete al
push eax
lea eax, [esp + 0xe8]
push eax
mov eax, dword [esi + 0x24]
call eax
test al, al
je 0x100879eb
or bl, 1
jmp 0x100879ee
mov eax, dword [esp + 0x70]
test byte [esp + 0x14], 8
jne 0x10087a98
lea ecx, [esp + 0x14]
push ecx
push eax
lea ecx, [esp + 0xe0]
call fcn.10071e40
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x5c]
lea ecx, [esp + 0xdc]
push 0x202
add eax, 8
push eax
call fcn.10072800
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0xd8]
mov ecx, dword [edx]
mov dword [ecx + 4], eax
lea eax, [esp + 0x14]
push eax
push 1
push edx
lea ecx, [esp + 0x3c0]
call fcn.1007b790
test byte [esp + 0x14], 8
jne 0x10087aea
mov ecx, dword [eax]
mov eax, dword [ecx + 4]
mov byte [eax + ecx + 8], bl
mov al, byte [ebp + 5]
test al, 8
je 0x10087b08
test bl, 1
je 0x10087b08
push 1
push 0xfffffbe3
lea ecx, [esp + 0x1c]
call fcn.10062a50
jmp 0x10087b11
test al, 2
je 0x10087b1d
test bl, 2
jne 0x10087b1d
lea ecx, [esp + 0x3b8]
call fcn.1007c6d0
test byte [esp + 0x14], 8
mov edi, dword [esp + 0x34]
jne 0x10087b5f
mov ecx, dword [esp + 0x14c]
lea edx, [esp + 0x14]
push edx
push 2
inc edi
mov eax, dword [ecx]
push 1
mov dword [esp + 0x40], edi
call dword [eax + 8]
test byte [esp + 0x14], 8
je 0x10087820
jmp 0x10087b5f
push 1
push 0xfffffc0d
lea ecx, [esp + 0x1c]
call fcn.10062a50
test byte [esp + 0x14], 1
jne 0x10087b70
cmp dword [esp + 0x18], 0xfffff9bd
je 0x10087b82
mov ebx, dword [esp + 0x2c]
lea eax, [esp + 0x14]
push eax
mov ecx, ebx
call fcn.10062800
jmp 0x10087b86
mov ebx, dword [esp + 0x2c]
test byte [ebx], 8
jne 0x10087d92
lea ecx, [esp + 0x14]
call fcn.10062990
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x3b8]
call fcn.1007ba80
mov eax, dword [esp + 0x14]
test al, 8
jne 0x10087d86
mov eax, dword [esp + 0x54]
lea ecx, [esp + 0x3b4]
cmp byte [esp + 0x13], 0
cmovne eax, edi
mov dword [esp + 0x54], eax
lea eax, [esp + 0x14]
push eax
call fcn.1007bc00
mov edi, eax
mov eax, dword [esp + 0x14]
test al, 8
jne 0x10087d67
cmp edi, dword [esp + 0x3cc]
je 0x10087d67
movzx ebx, byte [ebp + 5]
lea eax, [esp + 0x128]
push ebp
push eax
lea ecx, [esp + 0x2c8]
and ebx, 1
call fcn.1004ea00
test byte [esp + 0x14], 8
lea eax, [esp + 0x98]
mov dword [esp + 0x8c], eax
mov dword [esp + 0x88], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0x40
jne 0x10087d47
jmp 0x10087c50
cmp edi, dword [esp + 0x3cc]
je 0x10087d47
mov esi, dword [edi]
mov ecx, dword [esi + 4]
lea eax, [esi + 8]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], ecx
push eax
lea ecx, [esp + 0x2c8]
call fcn.1004f190
test byte [esp + 0x14], 8
jne 0x10087d47
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x38]
add eax, 0xfffffffc
mov dword [esp + 0x58], eax
cmp eax, dword [esp + 0x88]
jne 0x10087cdd
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x5c]
call fcn.1004f3b0
test eax, eax
jne 0x10087cdd
cmp ebx, 1
jne 0x10087cfc
mov eax, dword [esi + 4]
test byte [eax + esi + 8], bl
jne 0x10087cfc
push 0xfffff9bb
lea ecx, [esp + 0x18]
call fcn.10062930
jmp 0x10087cfc
push 1
mov ecx, ebp
call fcn.1006ce30
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x90]
call fcn.10072720
push 1
mov ecx, ebp
call fcn.1006ce10
cmp byte [esp + 0x13], 0
je 0x10087d28
mov eax, dword [esp + 0x50]
inc eax
mov dword [esp + 0x50], eax
test al, 0x7f
jne 0x10087d28
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x44]
push eax
call fcn.100691c0
lea eax, [esp + 0x14]
push eax
push edi
lea ecx, [esp + 0x3bc]
call fcn.1007bdd0
test byte [esp + 0x14], 8
mov edi, eax
je 0x10087c50
lea ecx, [esp + 0x88]
call fcn.10071e20
lea ecx, [esp + 0x2c0]
call fcn.1004eaa0
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x2c]
test al, 1
jne 0x10087d82
cmp dword [esp + 0x18], 0xfffff9bd
jne 0x10087d82
lea ecx, [esp + 0x14]
call fcn.10062990
mov eax, dword [esp + 0x14]
test al, 8
je 0x10087d92
lea eax, [esp + 0x14]
mov ecx, ebx
push eax
call fcn.10062800
lea ecx, [esp + 0x3b4]
call fcn.1007b860
cmp byte [esp + 0x13], 0
je 0x10087dcf
test byte [ebx], 8
jne 0x10087dbc
mov eax, dword [esp + 0x50]
mov dword [esp + 0x4c], 3
mov dword [esp + 0x54], eax
jmp 0x10087dc4
mov dword [esp + 0x4c], 4
push ebx
lea eax, [esp + 0x44]
push eax
call fcn.100691c0
lea ecx, [esp + 0xd8]
call fcn.10071e20
lea ecx, [esp + 0x3b4]
call fcn.1007b860
lea esi, [esp + 0x9f0]
mov edi, 6
sub esi, 0xac
mov ecx, esi
call fcn.1007cc60
dec edi
jns 0x10087df3
lea ecx, [esp + 0x514]
call fcn.1008e130
lea ecx, [esp + 0x3b8]
call fcn.1007c510
test dword [esp + 0x14], 0xfffffffe
je 0x10087e2e
lea ecx, [esp + 0x14]
call fcn.100628d0
lea ecx, [esp + 0x128]
call fcn.10057080
test dword [esp + 0x74], 0xfffffffe
pop edi
pop esi
pop ebp
pop ebx
je 0x10087e51
lea ecx, [esp + 0x64]
call fcn.100628d0
mov ecx, dword [esp + 0xbe0]
xor ecx, esp
call fcn.1011720d
add esp, 0xbe4
ret 0xc