Function at 0x100874e0
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.10056d00
mov eax, dword [esp + 0x74]
test al, 8
jne 0x10087565
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 0x1008758b
test al, 1
jne 0x1008757a
cmp dword [esp + 0x78], 0xfffff9bd
je 0x1008758b
lea eax, [esp + 0x74]
mov ecx, edi
push eax
call fcn.100626f0
jmp 0x10087c7e
test edx, edx
jne 0x10087c7e
lea ecx, [esp + 0x3b4]
mov dword [esp + 0x14], 1
call fcn.10080f20
mov eax, dword [ebp + 0x20]
mov ecx, 0x10137ca8
mov dword [esp + 0x68], eax
call fcn.10083070
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.1007bfb0
test byte [edi], 8
jne 0x10087c2b
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.100685f0
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 0x1008765a
mov eax, dword [ebx + 0x28]
cmp dword [eax + 0x48], 1
je 0x1008765a
push dword [esp + 0x2c]
lea eax, [esp + 0x44]
mov byte [esp + 0x17], 1
push eax
mov dword [esp + 0x54], edi
call fcn.10069100
mov dword [esp + 0x4c], 1
jmp 0x1008765f
mov byte [esp + 0x13], 0
test byte [esp + 0x14], 8
jne 0x100879af
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 0x100879af
lea eax, [esp + 0x14]
push eax
push 0x202
lea ecx, [esp + 0x3bc]
call fcn.1007b710
test byte [esp + 0x14], 8
mov dword [esp + 0x38], eax
jne 0x100879af
cmp eax, dword [esp + 0x3cc]
je 0x1008799f
mov eax, dword [eax]
xor edi, edi
mov dword [esp + 0x58], eax
mov dword [esp + 0xd8], 0
cmp dword [esp + 0x68], edi
jle 0x1008786f
jmp 0x100876f0
test byte [esp + 0x14], 8
jne 0x10087851
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 0x10087889
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 0x10087803
cmp dword [esp + 0x18], 0x3ee
jne 0x100877b6
mov eax, dword [esp + 0x90]
lea ecx, [esp + 0x14]
mov dword [esp + 0x60], eax
call fcn.10062880
mov ecx, dword [esp + 0x14]
test cl, 1
jne 0x10087803
cmp dword [esp + 0x18], 0x3ec
jne 0x10087803
lea ecx, [esp + 0x14]
call fcn.10062880
mov eax, dword [ebp]
mov ecx, dword [esp + 0x28]
mov esi, dword [eax]
call fcn.1006d260
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 0x1008783e
mov eax, dword [ebp]
mov ecx, dword [esp + 0x28]
mov esi, dword [eax]
call fcn.1006d260
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 0x100876f0
cmp dword [esp + 0xd8], 0x1fe
jbe 0x1008786f
push 0x1fe
lea ecx, [esp + 0xdc]
call fcn.100732f0
test byte [esp + 0x14], 8
jne 0x100878cb
mov ecx, dword [esp + 0x14c]
lea edx, [esp + 0x14]
push edx
mov eax, dword [ecx]
call dword [eax + 0xc]
jmp 0x100878cf
mov eax, dword [ebp]
mov ecx, dword [esp + 0x28]
mov esi, dword [eax]
call fcn.1006d260
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 0x1008783b
or bl, 1
jmp 0x1008783e
mov eax, dword [esp + 0x70]
test byte [esp + 0x14], 8
jne 0x100878e8
lea ecx, [esp + 0x14]
push ecx
push eax
lea ecx, [esp + 0xe0]
call fcn.10071d70
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x5c]
lea ecx, [esp + 0xdc]
push 0x202
add eax, 8
push eax
call fcn.10072730
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.1007b690
test byte [esp + 0x14], 8
jne 0x1008793a
mov ecx, dword [eax]
mov eax, dword [ecx + 4]
mov byte [eax + ecx + 8], bl
mov al, byte [ebp + 5]
test al, 8
je 0x10087958
test bl, 1
je 0x10087958
push 1
push 0xfffffbe3
lea ecx, [esp + 0x1c]
call fcn.10062940
jmp 0x10087961
test al, 2
je 0x1008796d
test bl, 2
jne 0x1008796d
lea ecx, [esp + 0x3b8]
call fcn.1007c5d0
test byte [esp + 0x14], 8
mov edi, dword [esp + 0x34]
jne 0x100879af
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 0x10087670
jmp 0x100879af
push 1
push 0xfffffc0d
lea ecx, [esp + 0x1c]
call fcn.10062940
test byte [esp + 0x14], 1
jne 0x100879c0
cmp dword [esp + 0x18], 0xfffff9bd
je 0x100879d2
mov ebx, dword [esp + 0x2c]
lea eax, [esp + 0x14]
push eax
mov ecx, ebx
call fcn.100626f0
jmp 0x100879d6
mov ebx, dword [esp + 0x2c]
test byte [ebx], 8
jne 0x10087be2
lea ecx, [esp + 0x14]
call fcn.10062880
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x3b8]
call fcn.1007b980
mov eax, dword [esp + 0x14]
test al, 8
jne 0x10087bd6
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.1007bb00
mov edi, eax
mov eax, dword [esp + 0x14]
test al, 8
jne 0x10087bb7
cmp edi, dword [esp + 0x3cc]
je 0x10087bb7
movzx ebx, byte [ebp + 5]
lea eax, [esp + 0x128]
push ebp
push eax
lea ecx, [esp + 0x2c8]
and ebx, 1
call fcn.1004e950
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 0x10087b97
jmp 0x10087aa0
cmp edi, dword [esp + 0x3cc]
je 0x10087b97
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.1004f0e0
test byte [esp + 0x14], 8
jne 0x10087b97
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 0x10087b2d
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x5c]
call fcn.1004f300
test eax, eax
jne 0x10087b2d
cmp ebx, 1
jne 0x10087b4c
mov eax, dword [esi + 4]
test byte [eax + esi + 8], bl
jne 0x10087b4c
push 0xfffff9bb
lea ecx, [esp + 0x18]
call fcn.10062820
jmp 0x10087b4c
push 1
mov ecx, ebp
call fcn.1006cd60
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x90]
call fcn.10072650
push 1
mov ecx, ebp
call fcn.1006cd40
cmp byte [esp + 0x13], 0
je 0x10087b78
mov eax, dword [esp + 0x50]
inc eax
mov dword [esp + 0x50], eax
test al, 0x7f
jne 0x10087b78
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x44]
push eax
call fcn.10069100
lea eax, [esp + 0x14]
push eax
push edi
lea ecx, [esp + 0x3bc]
call fcn.1007bcd0
test byte [esp + 0x14], 8
mov edi, eax
je 0x10087aa0
lea ecx, [esp + 0x88]
call fcn.10071d50
lea ecx, [esp + 0x2c0]
call fcn.1004e9f0
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x2c]
test al, 1
jne 0x10087bd2
cmp dword [esp + 0x18], 0xfffff9bd
jne 0x10087bd2
lea ecx, [esp + 0x14]
call fcn.10062880
mov eax, dword [esp + 0x14]
test al, 8
je 0x10087be2
lea eax, [esp + 0x14]
mov ecx, ebx
push eax
call fcn.100626f0
lea ecx, [esp + 0x3b4]
call fcn.1007b760
cmp byte [esp + 0x13], 0
je 0x10087c1f
test byte [ebx], 8
jne 0x10087c0c
mov eax, dword [esp + 0x50]
mov dword [esp + 0x4c], 3
mov dword [esp + 0x54], eax
jmp 0x10087c14
mov dword [esp + 0x4c], 4
push ebx
lea eax, [esp + 0x44]
push eax
call fcn.10069100
lea ecx, [esp + 0xd8]
call fcn.10071d50
lea ecx, [esp + 0x3b4]
call fcn.1007b760
lea esi, [esp + 0x9f0]
mov edi, 6
sub esi, 0xac
mov ecx, esi
call fcn.1007cb60
dec edi
jns 0x10087c43
lea ecx, [esp + 0x514]
call fcn.1008df30
lea ecx, [esp + 0x3b8]
call fcn.1007c410
test dword [esp + 0x14], 0xfffffffe
je 0x10087c7e
lea ecx, [esp + 0x14]
call fcn.100627c0
lea ecx, [esp + 0x128]
call fcn.10056fb0
test dword [esp + 0x74], 0xfffffffe
pop edi
pop esi
pop ebp
pop ebx
je 0x10087ca1
lea ecx, [esp + 0x64]
call fcn.100627c0
mov ecx, dword [esp + 0xbe0]
xor ecx, esp
call fcn.1011705d
add esp, 0xbe4
ret 0xc