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

Disassembly:
sub esp, 0x7c
push ebx
push ebp
mov ebp, ecx
mov ecx, dword [ebp + 4]
mov eax, dword [ecx + 8]
mov edx, dword [eax + 0xc]
cmp dword [edx + 0xe4], 1
push esi
push edi
jne 0x1008708f
mov eax, dword [ecx]
mov edx, dword [eax + 0xa8]
call edx
test al, al
jne 0x1008708f
mov eax, dword [ebp + 4]
mov esi, dword [eax + 8]
mov edi, dword [esi + 0xc]
call fcn.100ad450
cmp eax, esi
jne 0x10087697
mov ebx, dword [esp + 0x98]
xor eax, eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x94]
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x5c]
push edx
push ebx
push eax
lea esi, [esp + 0x58]
mov eax, ebp
call fcn.10087fd0
mov ecx, dword [ebp + 4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x18c]
call eax
mov esi, dword [ebp + 4]
mov ecx, dword [esp + 0x54]
mov edx, dword [esi]
sub ecx, eax
mov eax, dword [edx + 0x190]
mov dword [esp + 0x20], ecx
mov ecx, esi
call eax
mov edi, dword [esp + 0x58]
mov edx, dword [esi]
sub edi, eax
mov eax, dword [edx + 0x244]
mov ecx, esi
call eax
add eax, edi
push ebp
mov dword [esp + 0x1c], eax
call fcn.10088b00
mov edi, ebp
call fcn.10088ba0
fldz
mov edx, dword [ebp + 4]
mov ecx, dword [edx + 4]
mov ecx, dword [ecx + 0x30]
fcomp dword [ecx + 0x14]
fnstsw ax
test ah, 0x44
jnp 0x10087697
mov eax, dword [esp + 0xa0]
cmp eax, 1
je 0x10087175
cmp eax, 2
mov byte [esp + 0x15], 0
jne 0x1008717d
mov byte [esp + 0x15], 1
cmp eax, 2
fld1
sete byte [esp + 0x17]
fcomp dword [ecx + 0x14]
fnstsw ax
test ah, 0x41
jne 0x10087196
mov byte [esp + 0x9c], 1
mov ecx, dword [esp + 0xa4]
test ecx, ecx
mov dword [esp + 0x1c], 0
je 0x100871bf
mov eax, edx
test eax, eax
je 0x100871bb
nop
cmp eax, ecx
je 0x100871bf
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x100871b0
mov dword [esp + 0x1c], ecx
lea edx, [esp + 0x44]
push edx
push ebp
lea eax, [esp + 0x5c]
call fcn.10088370
test al, al
je 0x10087287
test byte [ebp + 0x89], 8
je 0x10087287
cmp byte [esp + 0x15], 0
mov byte [esp + 0x16], 1
jne 0x1008728c
cmp dword [esp + 0x4c], 0
jle 0x1008728c
cmp dword [esp + 0x50], 0
jle 0x1008728c
cmp byte [esp + 0x9c], 0
mov edi, dword [esp + 0x94]
je 0x10087223
push ebx
push edi
mov ecx, ebp
call fcn.10084570
push edi
lea esi, [esp + 0x48]
mov eax, ebx
call fcn.10086fc0
mov eax, dword [esp + 0x20]
add esp, 4
push eax
push 0
push 0
push edi
mov ecx, esi
lea eax, [esp + 0x74]
call fcn.1008a8c0
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp + 4]
mov esi, dword [esp + 0x20]
mov edx, dword [ecx]
mov edx, dword [edx + 0x134]
push eax
push esi
lea eax, [esp + 0x6c]
push eax
call edx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x44]
push eax
push ecx
push esi
push edi
mov eax, ebp
call fcn.100865d0
push edi
lea eax, [esp + 0x48]
mov ecx, ebx
call fcn.10087010
add esp, 4
jmp 0x10087293
mov byte [esp + 0x16], 0
mov edi, dword [esp + 0x94]
mov eax, dword [ebp + 0x7c]
test eax, eax
je 0x100872eb
mov esi, dword [eax + 4]
mov edx, dword [eax]
mov eax, esi
lea ecx, [eax + edx*4]
cmp esi, ecx
je 0x100872eb
jmp 0x100872b0
mov edx, dword [esp + 0xa4]
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0x9c]
push edx
mov edx, dword [esp + 0x94]
push eax
push ecx
mov ecx, dword [esi]
push ebx
push edi
push edx
call fcn.10087050
mov eax, dword [ebp + 0x7c]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
add esi, 4
lea eax, [edx + ecx*4]
cmp esi, eax
jne 0x100872b0
cmp byte [esp + 0x16], 0
je 0x1008742e
cmp dword [esp + 0x2c], 0
jle 0x1008742e
cmp dword [esp + 0x30], 0
jle 0x1008742e
cmp byte [esp + 0x9c], 0
je 0x1008731f
push ebx
push edi
mov ecx, ebp
call fcn.10084570
push edi
lea esi, [esp + 0x28]
mov eax, ebx
call fcn.10086fc0
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x24]
mov dword [esp + 0x70], edx
mov dl, byte [esp + 0x19]
add esp, 4
neg dl
mov dword [esp + 0x68], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x70], eax
mov al, byte [esp + 0x17]
mov dword [esp + 0x74], ecx
mov ecx, dword [esp + 0x1c]
sbb edx, edx
and edx, 6
mov byte [esp + 0x7c], al
mov eax, dword [esp + 0x18]
add edx, 2
mov dword [esp + 0x80], ecx
mov ecx, dword [ebp + 4]
push eax
mov dword [esp + 0x7c], edx
mov dword [esp + 0x68], edi
mov dword [esp + 0x88], 0
mov edx, dword [ecx]
mov edx, dword [edx + 0x134]
push esi
lea eax, [esp + 0x6c]
push eax
call edx
cmp byte [esp + 0x15], 0
jne 0x10087405
mov edx, dword [esp + 0x18]
mov ecx, dword [ebp + 4]
push edx
mov dword [esp + 0x7c], 3
mov eax, dword [ecx]
mov eax, dword [eax + 0x134]
push esi
lea edx, [esp + 0x6c]
push edx
call eax
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp + 4]
push eax
mov dword [esp + 0x7c], 4
mov edx, dword [ecx]
mov edx, dword [edx + 0x134]
push esi
lea eax, [esp + 0x6c]
push eax
call edx
mov edx, dword [esp + 0x18]
mov ecx, dword [ebp + 4]
push edx
mov dword [esp + 0x7c], 6
mov eax, dword [ecx]
mov eax, dword [eax + 0x134]
push esi
lea edx, [esp + 0x6c]
push edx
call eax
mov eax, dword [ebx]
cmp eax, dword [esp + 0x24]
mov ecx, dword [ebx + 4]
jne 0x10087428
cmp ecx, dword [esp + 0x28]
jne 0x10087428
mov eax, dword [ebx + 8]
cmp eax, dword [esp + 0x2c]
mov ecx, dword [ebx + 0xc]
jne 0x10087428
cmp ecx, dword [esp + 0x30]
je 0x1008742e
push edi
call fcn.100a5e20
mov edx, dword [esp + 0x3c]
test edx, edx
jle 0x100874f7
mov eax, dword [esp + 0x40]
test eax, eax
jle 0x100874f7
mov esi, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x80], eax
mov eax, dword [ebx]
cmp eax, esi
mov dword [esp + 0x6c], ecx
mov ecx, dword [ebx + 4]
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], esi
mov dword [esp + 0x70], edx
mov dword [esp + 0x78], 7
mov byte [esp + 0x7c], 0
mov dword [esp + 0x84], 0
jne 0x100874a4
cmp ecx, dword [esp + 0x38]
jne 0x100874a4
mov eax, dword [ebx + 8]
cmp eax, edx
mov ecx, dword [ebx + 0xc]
jne 0x100874a4
cmp ecx, dword [esp + 0x40]
je 0x100874b5
push edi
call fcn.100a5db0
lea eax, [esp + 0x34]
mov ecx, edi
call fcn.100a8be0
push dword [esp + 0x18]
mov eax, dword [esp + 0x24]
mov ecx, dword [ebp + 4]
mov edx, dword [ecx]
mov edx, dword [edx + 0x134]
push eax
lea eax, [esp + 0x6c]
push eax
call edx
mov eax, dword [ebx]
cmp eax, esi
mov ecx, dword [ebx + 4]
jne 0x100874f1
cmp ecx, dword [esp + 0x38]
jne 0x100874f1
mov eax, dword [ebx + 8]
cmp eax, dword [esp + 0x3c]
mov ecx, dword [ebx + 0xc]
jne 0x100874f1
cmp ecx, dword [esp + 0x40]
je 0x100874f7
push edi
call fcn.100a5e20
mov eax, dword [ebp + 0x80]
test eax, eax
je 0x1008754e
mov esi, dword [eax + 4]
mov ecx, dword [eax]
mov edx, esi
lea eax, [edx + ecx*4]
cmp esi, eax
je 0x1008754e
nop
mov ecx, dword [esp + 0xa4]
mov edx, dword [esp + 0xa0]
mov eax, dword [esp + 0x9c]
push ecx
mov ecx, dword [esp + 0x94]
push edx
push eax
push ebx
push edi
push ecx
mov ecx, dword [esi]
call fcn.10087050
mov eax, dword [ebp + 0x80]
mov edx, dword [eax]
mov eax, dword [eax + 4]
add esi, 4
lea ecx, [eax + edx*4]
cmp esi, ecx
jne 0x10087510
mov eax, dword [ebp + 0x78]
test eax, eax
je 0x100875ab
mov esi, dword [eax + 4]
mov edx, dword [eax]
mov eax, esi
lea ecx, [eax + edx*4]
cmp esi, ecx
je 0x100875ab
jmp 0x10087570
mov edx, dword [esp + 0xa4]
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0x9c]
push edx
mov edx, dword [esp + 0x94]
push eax
push ecx
mov ecx, dword [esi]
push ebx
push edi
push edx
call fcn.10087050
mov eax, dword [ebp + 0x78]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
add esi, 4
lea eax, [edx + ecx*4]
cmp esi, eax
jne 0x10087570
mov ecx, dword [ebp + 4]
fld1
mov edx, dword [ecx + 4]
mov eax, dword [edx + 0x30]
fcomp dword [eax + 0x14]
fnstsw ax
test ah, 0x41
jne 0x10087697
test byte [ebp + 0x88], 0x10
je 0x10087697
mov eax, edi
call fcn.100a9140
mov esi, dword [edi]
cmp byte [esi + 0x64], 0
jne 0x10087690
cmp dword [esi + 0x68], 0
je 0x10087690
mov ecx, dword [esi + 0x68]
mov edx, dword [esi + 0x6c]
imul ecx, ecx, 0x68
lea ebx, [ecx + edx - 0x68]
mov eax, ebx
mov ecx, esi
call fcn.100c1a60
mov eax, dword [ebx + 0x48]
mov dword [esi + 0x48], eax
fld dword [ebx + 0x4c]
fstp dword [esi + 0x4c]
mov ecx, dword [ebx + 0x50]
mov dword [esi + 0x50], ecx
mov edx, dword [ebx + 0x54]
mov dword [esi + 0x54], edx
mov eax, dword [ebx + 0x58]
mov dword [esi + 0x58], eax
mov ecx, dword [ebx + 0x5c]
mov dword [esi + 0x5c], ecx
mov edx, dword [ebx + 0x60]
mov dword [esi + 0x60], edx
mov al, byte [ebx + 0x64]
mov byte [esi + 0x64], al
mov esi, dword [edi]
mov edi, dword [esi + 0x68]
add esi, 0x68
sub edi, 1
call fcn.100a71a0
mov ecx, dword [esp + 0x94]
mov edx, dword [ecx + 4]
mov eax, dword [edx]
cmp dword [eax + 4], 0
jne 0x10087690
mov esi, dword [eax + 0x1c]
mov ecx, dword [esi + 0x15c]
test ecx, ecx
je 0x10087689
push esi
mov dword [eax + 0x1c], ecx
call fcn.10246b70
add esp, 4
push esi
call fcn.102f353f
add esp, 4
and byte [ebp + 0x88], 0xef
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret 0x18
mov dword [eax + 4], 2
and byte [ebp + 0x88], 0xef
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret 0x18