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

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0x1bc
mov esi, eax
mov edx, dword [esi + 0x58]
cmp edx, 2
jl 0x8717c4
cmp dword [esi + 4], 0
je 0x871aa6
mov edx, dword [esp + 0x1d8]
sub edx, 0
jl 0x8717c4
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov ebx, dword [esp + 0x1d4]
sub ebx, edx
mov edx, dword [esp + 0x1d8]
sbb edx, ecx
jl 0x8717d4
or ebx, edx
je 0x8717d4
mov eax, 0xffffff7d
add esp, 0x1bc
pop ebx
pop ebp
pop esi
pop edi
ret
mov edx, 0xffffffff
lea ebx, [esi + 0x78]
mov dword [esi + 0x50], edx
mov dword [esi + 0x54], edx
push dword [esi + 0x5c]
push ebx
call fcn.0087696c
lea edi, [esi + 0x1e0]
push edi
call fcn.00875ac0
add esp, 0xc
mov edx, dword [esp + 0x1d4]
mov ecx, dword [esp + 0x1d8]
mov eax, esi
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.00870b50
xor ebp, ebp
lea edx, [esp + 0x24]
mov dword [esp + 0x20], ebp
xor ebp, ebp
push dword [esi + 0x5c]
push edx
call fcn.00876be4
lea edx, [esp + 0x2c]
push edx
call fcn.00876988
add esp, 0xc
mov ecx, dword [esi + 0x58]
cmp ecx, 3
jl 0x871cfe
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebx
mov edi, dword [esp + 0x20]
lea ecx, [esp + 0x24]
lea edx, [esp + 0x18c]
push edx
push ecx
call fcn.008769d4
add esp, 8
test eax, eax
jle 0x871cf1
mov ecx, dword [esi + 0x60]
add ecx, ecx
add ecx, ecx
add ecx, ecx
add ecx, ecx
add ecx, ecx
add ecx, dword [esi + 0x48]
cmp dword [ecx + 0x1c], 0
je 0x871cd5
lea edx, [esp + 0x18c]
push edx
push ecx
call fcn.00877960
mov ebx, eax
add esp, 8
test ebx, ebx
jl 0x871cbf
mov edx, dword [esp + 0x1c]
test edx, edx
jne 0x8718bc
test edi, edi
je 0x8718cb
add edi, ebx
sar edi, 2
add ebp, edi
jmp 0x8718cb
push 0
mov edx, dword [esp + 0x1c]
push edx
call fcn.008769d4
add esp, 8
mov edi, dword [esp + 0x19c]
mov ecx, dword [esp + 0x1a0]
lea eax, [edi + 1]
lea edx, [ecx + 1]
or eax, edx
je 0x8719c0
mov edx, dword [esi + 0x60]
mov ebx, dword [esi + 0x44]
lea eax, [edx + edx]
mov dword [esp + 0x14], edx
mov edx, dword [ebx + eax*8]
mov dword [esp + 0x1c], ebx
mov ebx, dword [ebx + eax*8 + 4]
sub edi, edx
sbb ecx, ebx
mov edx, ecx
mov ebx, dword [esp + 0x14]
sub edx, 0
jge 0x871912
xor edi, edi
xor ecx, ecx
xor edx, edx
test ebx, ebx
mov dword [esp + 0x18], edx
jle 0x8719b1
cmp ebx, 6
jl 0x87198b
lea edx, [ebx - 6]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x18]
lea edx, [edx + edx]
add edx, edx
add edx, edx
add edx, edx
mov dword [esp + 0x10], ebp
mov ebp, dword [esp + 0x18]
mov dword [esp + 0xc], esi
mov esi, dword [esp + 0x20]
add edi, dword [edx + eax + 8]
adc ecx, dword [edx + eax + 0xc]
add edi, dword [edx + eax + 0x18]
adc ecx, dword [edx + eax + 0x1c]
add edi, dword [edx + eax + 0x28]
adc ecx, dword [edx + eax + 0x2c]
add edi, dword [edx + eax + 0x38]
adc ecx, dword [edx + eax + 0x3c]
add edi, dword [edx + eax + 0x48]
adc ecx, dword [edx + eax + 0x4c]
add edx, 0x50
add ebp, 5
cmp ebp, esi
jle 0x87194d
mov dword [esp + 0x18], ebp
mov ebp, dword [esp + 0x10]
mov esi, dword [esp + 0xc]
mov edx, dword [esp + 0x18]
lea eax, [edx + edx]
add eax, eax
add eax, eax
add eax, eax
mov edx, dword [esp + 0x1c]
lea edx, [edx + eax + 8]
mov eax, dword [esp + 0x18]
add edi, dword [edx]
adc ecx, dword [edx + 4]
add edx, 0x10
inc eax
cmp eax, ebx
jl 0x8719a4
mov eax, ebp
cdq
sub edi, ebp
sbb ecx, edx
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], ecx
jmp 0x8719e9
mov edi, ebx
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x10], ebp
mov edx, dword [esi + 0x58]
cmp edx, 3
jge 0x871a95
test edi, edi
je 0x871a0c
mov edx, 0xffffffff
mov dword [esi + 0x50], edx
mov dword [esi + 0x54], edx
lea edx, [esp + 0x24]
push edx
call fcn.00876024
fld qword [0x99a650]
xor eax, eax
fst qword [esi + 0x68]
fstp qword [esi + 0x70]
add esp, 0x1c0
pop ebx
pop ebp
pop esi
pop edi
ret
lea eax, [esp + 0x1ac]
lea ebp, [esi + 0x18]
mov dword [esp + 0x20], edi
mov dword [esp + 0x18], ebx
mov ebx, eax
push ebx
push ebp
call fcn.00876198
add esp, 8
test eax, eax
jl 0x871ca9
jne 0x871b1d
call fcn.00859dd6
mov dword [eax], 0
cmp dword [esi], 0
je 0x871a8b
push 0x2134
push ebp
call fcn.008760f8
push dword [esi]
push 0x2134
push 1
push eax
call dword [esi + 0x2c0]
mov edi, eax
add esp, 0x18
test edi, edi
jle 0x871a78
push edi
push ebp
call fcn.0087617c
add esp, 8
jmp 0x871a8d
jne 0x871a8d
call fcn.00859dd6
cmp dword [eax], 0
je 0x871a8d
mov edi, 0xffffffff
jmp 0x871a8d
xor edi, edi
test edi, edi
je 0x871ab6
jge 0x871a20
jmp 0x871ab6
mov dword [esp + 0x1c], eax
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x18], ebx
jmp 0x871855
mov eax, 0xffffff76
add esp, 0x1bc
pop ebx
pop ebp
pop esi
pop edi
ret
mov edx, dword [esi + 0x58]
cmp edx, 2
jl 0x871b08
cmp dword [esi + 4], 0
je 0x871afc
mov eax, dword [esi + 0x34]
test eax, eax
jl 0x871afc
mov ebp, 0
mov ebx, 0
mov edi, 0
jle 0x871b12
mov dword [esp + 0xc], esi
mov esi, eax
mov eax, dword [esp + 0xc]
mov edx, edi
call fcn.00873318
inc edi
add ebp, eax
adc ebx, edx
cmp edi, esi
jl 0x871ae2
mov esi, dword [esp + 0xc]
jmp 0x871b12
mov ebp, 0xffffff7d
mov ebx, 0xffffffff
jmp 0x871b12
mov ebp, 0xffffff7d
mov ebx, 0xffffffff
mov dword [esi + 0x50], ebp
mov dword [esi + 0x54], ebx
jmp 0x8719e9
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
mov ecx, dword [esi + 8]
mov ebp, dword [esi + 0xc]
cdq
add eax, ecx
adc edx, ebp
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
sub ebp, 0
jl 0x871ab6
mov edx, dword [esi + 0x58]
cmp edx, 3
jl 0x871b8c
lea edx, [esp + 0x1ac]
push edx
call fcn.00875ffc
pop ecx
cmp eax, dword [esi + 0x5c]
jne 0x871b5f
mov edx, dword [esi + 0x58]
jmp 0x871b8c
mov edx, dword [esp + 0x14]
push edx
call fcn.00873fc4
lea edx, [esi + 0x250]
push edx
call fcn.00873ec4
mov dword [esi + 0x58], 2
lea edx, [esp + 0x2c]
push edx
call fcn.00876024
add esp, 0xc
mov edx, dword [esi + 0x58]
cmp edx, 3
jge 0x871c5a
lea edx, [esp + 0x1ac]
push edx
call fcn.00875ffc
pop ecx
mov dword [esi + 0x5c], eax
xor ecx, ecx
mov ebp, dword [esi + 0x34]
test ebp, ebp
jle 0x871c06
cmp ebp, 6
jl 0x871c98
mov edx, dword [esi + 0x40]
mov dword [esp + 0xc], esi
cmp eax, dword [edx + ecx*4]
je 0x871c8f
inc ecx
cmp eax, dword [edx + ecx*4]
je 0x871d21
inc ecx
cmp eax, dword [edx + ecx*4]
je 0x871d18
inc ecx
cmp eax, dword [edx + ecx*4]
je 0x871d0f
inc ecx
cmp eax, dword [edx + ecx*4]
je 0x871ca0
inc ecx
lea esi, [ebp - 6]
cmp ecx, esi
jle 0x871bbf
mov esi, dword [esp + 0xc]
cmp eax, dword [edx + ecx*4]
je 0x871c06
inc ecx
cmp ecx, ebp
jl 0x871bfc
cmp ecx, ebp
je 0x871c2d
mov dword [esi + 0x60], ecx
push eax
push ebx
call fcn.0087696c
lea edx, [esp + 0x2c]
push dword [esi + 0x5c]
push edx
call fcn.0087696c
add esp, 0x10
mov dword [esi + 0x58], 3
jmp 0x871c5a
mov edx, 0xffffffff
lea ecx, [esp + 0x24]
mov dword [esi + 0x50], edx
mov dword [esi + 0x54], edx
push ecx
call fcn.00876024
pop ecx
mov eax, esi
call fcn.008733b0
mov eax, 0xffffff77
add esp, 0x1bc
pop ebx
pop ebp
pop esi
pop edi
ret
lea edx, [esp + 0x1ac]
push edx
push ebx
call fcn.0087658c
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x1b4]
push edx
push ecx
call fcn.0087658c
lea edx, [esp + 0x1bc]
push edx
call fcn.00875fec
add esp, 0x14
jmp 0x8719ce
mov esi, dword [esp + 0xc]
jmp 0x871c06
mov edx, dword [esi + 0x40]
jmp 0x871bfc
mov esi, dword [esp + 0xc]
jmp 0x871c06
mov ecx, dword [esi + 8]
mov edi, dword [esi + 0xc]
cdq
sub ecx, eax
sbb edi, edx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edi
jmp 0x871a20
push 0
mov edx, dword [esp + 0x1c]
push edx
call fcn.008769d4
add esp, 8
xor ebx, ebx
jmp 0x8718cb
push 0
mov edx, dword [esp + 0x1c]
push edx
call fcn.008769d4
add esp, 8
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x10], ebp
jmp 0x8719da
mov dword [esp + 0x10], ebp
mov ebx, dword [esp + 0x18]
jmp 0x8719da
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x20]
jmp 0x871a0c
mov esi, dword [esp + 0xc]
jmp 0x871c06
mov esi, dword [esp + 0xc]
jmp 0x871c06
mov esi, dword [esp + 0xc]
jmp 0x871c06