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

Disassembly:
sub esp, 0x80
push ebx
push ebp
push esi
mov esi, eax
test byte [esi + 0x74], 1
push edi
jne 0x10178b72
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret 4
lea eax, [esp + 0x44]
mov dword [esp + 0x44], esi
call fcn.1030ad1f
mov ecx, dword [eax]
mov ebp, dword [eax + 4]
add eax, 8
cmp dword [esp + 0x94], 0xffffffff
mov dword [esp + 0x1c], ecx
sete bl
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x24], eax
mov byte [esp + 0x13], bl
call fcn.10069b30
test bl, bl
mov dword [esp + 0x2c], eax
je 0x10178bb2
cdq
idiv ebp
mov edx, dword [esi]
xor edi, edi
push edi
mov dword [esp + 0x18], eax
mov eax, dword [edx + 0x128]
push edi
mov ecx, esi
call eax
movsx eax, ax
cdq
sub eax, edx
sar eax, 1
mov ecx, eax
imul ecx, ebp
test bl, bl
mov dword [esp + 0x38], ecx
je 0x10178bdf
add dword [esp + 0x14], eax
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x30]
mov ecx, dword [ecx + 0x20]
test byte [ecx + 0x1c], 4
je 0x10178c01
mov edx, dword [eax + 0x38]
fld dword [edx + 0x24]
fadd qword [0x10bf5190]
call fcn.102f89d0
jmp 0x10178c09
fld dword [ecx + 0xc]
call fcn.102f89d0
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x24]
mov dword [eax], edi
mov ecx, dword [esi + 8]
mov edx, dword [ecx + 0xc]
mov eax, dword [esi]
mov ebp, dword [edx + 0x18]
mov edx, dword [eax + 0x24c]
mov ecx, esi
call edx
mov ebx, eax
mov eax, dword [esi]
mov edx, dword [eax + 0x234]
mov ecx, esi
call edx
add ebx, eax
mov eax, dword [esi]
mov edx, dword [eax + 0x23c]
mov ecx, esi
mov dword [esp + 0x40], ebx
call edx
mov ebx, eax
mov eax, dword [esi]
mov edx, dword [eax + 0x22c]
mov ecx, esi
call edx
mov edx, dword [esi]
add ebx, eax
mov eax, dword [esi + 4]
test dword [eax], 0x4000000
mov eax, dword [edx + 0x24c]
mov dword [esp + 0x44], ebx
mov ecx, esi
je 0x10178c8f
call eax
mov edx, dword [esi]
mov dword [esp + 0x34], eax
mov eax, dword [edx + 0x234]
mov ecx, esi
call eax
mov ecx, dword [esp + 0x34]
add ecx, eax
mov dword [esp + 0x18], ecx
jmp 0x10178cbc
call eax
sub eax, dword [esp + 0x1c]
mov edx, dword [esi]
mov dword [esp + 0x34], eax
mov eax, dword [edx + 0x234]
mov ecx, esi
call eax
mov ecx, dword [esp + 0x34]
add eax, ecx
mov dword [esp + 0x34], eax
call fcn.10069ad0
add eax, dword [esp + 0x34]
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x3c]
mov eax, dword [esi]
mov dword [esp + 0x20], edx
mov edx, dword [eax + 0x23c]
mov ecx, esi
call edx
mov dword [esp + 0x34], eax
mov eax, dword [esi]
mov edx, dword [eax + 0x22c]
mov ecx, esi
call edx
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
add ecx, eax
cmp dword [esp + 0x3c], edi
mov eax, ebx
mov dword [esp + 0x34], ecx
lea ecx, [eax + edx]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x28], edi
jbe 0x10178f96
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], edx
cmp byte [esp + 0x13], 0
je 0x10178d2d
mov eax, dword [esp + 0x20]
add eax, 0xffffffff
cmp dword [esp + 0x28], eax
jne 0x10178d2d
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov dword [ebp + 0xb4], eax
mov eax, dword [esp + 0x14]
mov dword [ebp + 0xb8], ebx
mov dword [ebp + 0xbc], ecx
mov dword [ebp + 0xc0], eax
add eax, ebx
push 0x8c
mov dword [esp + 0x60], edx
mov dword [ebp + 0xac], eax
mov dword [ebp + 0xdc], edi
mov dword [ebp + 0xd8], edi
mov byte [ebp + 0xe0], 0
call fcn.102f361c
add esp, 4
cmp eax, edi
je 0x10178d90
call fcn.100a5d00
mov dword [esp + 0x54], eax
jmp 0x10178d94
mov dword [esp + 0x54], edi
push 0x20
call fcn.102f361c
add esp, 4
cmp eax, edi
je 0x10178dbb
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov dword [eax + 0x14], edi
mov dword [eax + 0x18], edi
mov dword [eax + 0x1c], edi
jmp 0x10178dbd
xor eax, eax
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x58], eax
mov dword [eax], edi
mov edx, dword [esp + 0x54]
mov byte [edx + 0x64], 1
mov edx, dword [esp + 0x1c]
and byte [esi + 0x74], 0xfe
lea eax, [esp + 0x54]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x14]
push edi
mov dword [esp + 0x7c], edx
mov edx, dword [esi]
mov edx, dword [edx + 0x334]
mov dword [esp + 0x80], eax
push edi
lea eax, [esp + 0x74]
mov dword [esp + 0x78], ecx
push eax
mov ecx, esi
mov dword [esp + 0x80], ebx
mov dword [esp + 0x8c], 4
mov byte [esp + 0x90], 0
mov dword [esp + 0x94], edi
mov dword [esp + 0x98], edi
call edx
or byte [esi + 0x74], 1
mov eax, dword [ebp + 0xd8]
cmp eax, ebx
jg 0x10178e41
mov eax, dword [esp + 0x14]
add eax, ebx
sub eax, ebx
cmp byte [esp + 0x13], 0
mov dword [esp + 0x68], eax
je 0x10178e98
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x38]
sub ecx, eax
cmp ecx, edx
jle 0x10178e7c
mov edi, dword [esp + 0x20]
sub edi, dword [esp + 0x28]
mov eax, ecx
sub eax, edx
cdq
add edi, 1
idiv edi
mov edx, dword [esp + 0x38]
add dword [esp + 0x14], eax
mov eax, dword [esp + 0x68]
xor edi, edi
sub edx, ecx
cmp edx, edi
mov dword [esp + 0x3c], edx
mov dword [esp + 0x38], edi
lea ecx, [esp + 0x3c]
jg 0x10178e92
lea ecx, [esp + 0x38]
mov ecx, dword [ecx]
mov dword [esp + 0x38], ecx
mov edx, dword [esi + 4]
test dword [edx], 0x4000000
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x1c]
je 0x10178eb3
add ecx, edx
add dword [esp + 0x18], ecx
jmp 0x10178eb9
add ecx, edx
sub dword [esp + 0x18], ecx
sub dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x44]
add ebx, eax
add eax, ecx
cmp eax, dword [esp + 0x34]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x34]
jl 0x10178ed7
lea eax, [esp + 0x3c]
mov edx, dword [eax]
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
cmp ecx, dword [eax + 8]
mov dword [esp + 0x34], edx
lea edi, [esp + 0x5c]
jne 0x10178f38
add ecx, 1
mov dword [esp + 0x3c], ecx
mov ecx, dword [eax + 4]
mov edx, edi
cmp edx, ecx
mov dword [esp + 0x4c], ecx
jb 0x10178f2a
mov edx, dword [eax]
shl edx, 4
add edx, ecx
mov ecx, edi
cmp ecx, edx
jae 0x10178f2a
mov edx, dword [esp + 0x3c]
push edx
call fcn.1006d300
sub edi, dword [esp + 0x4c]
mov eax, dword [esp + 0x24]
sar edi, 4
shl edi, 4
add edi, dword [eax + 4]
jmp 0x10178f38
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.1006d300
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
shl ecx, 4
add ecx, dword [eax + 4]
je 0x10178f58
mov edx, dword [edi]
mov dword [ecx], edx
mov edx, dword [edi + 4]
mov dword [ecx + 4], edx
mov edx, dword [edi + 8]
mov dword [ecx + 8], edx
mov edx, dword [edi + 0xc]
mov dword [ecx + 0xc], edx
add dword [eax], 1
cmp ebx, dword [esp + 0x94]
jge 0x10178f76
mov eax, dword [esp + 0x20]
add eax, 0xffffffff
cmp dword [esp + 0x28], eax
jne 0x10178f76
add dword [esp + 0x20], 1
lea edi, [esp + 0x54]
call fcn.100a7f50
mov eax, dword [esp + 0x28]
add eax, 1
xor edi, edi
cmp eax, dword [esp + 0x20]
mov dword [esp + 0x28], eax
jb 0x10178d11
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x30]
mov eax, edx
sub eax, ebx
cmp dword [esi + 0x20], eax
lea ecx, [esi + 0x20]
mov dword [esp + 0x4c], eax
jge 0x10178fb2
lea ecx, [esp + 0x4c]
mov ecx, dword [ecx]
add edx, ebx
add edx, dword [esp + 0x1c]
mov dword [esi + 0x88], ecx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x48], edi
lea eax, [esp + 0x4c]
js 0x10178fd2
lea eax, [esp + 0x48]
mov edx, dword [eax]
mov eax, dword [esp + 0x34]
mov dword [esi + 0x8c], edx
mov edx, dword [esi]
mov dword [esi + 0x84], eax
mov eax, dword [edx + 0x240]
mov ecx, esi
call eax
mov edx, dword [esi]
mov ebx, eax
mov eax, dword [edx + 0x230]
mov ecx, esi
call eax
mov edx, dword [esi]
add ebx, eax
mov eax, dword [edx + 0x108]
mov ecx, esi
call eax
add eax, ebx
cmp byte [esp + 0x13], 0
je 0x10179020
mov ecx, dword [esi + 0x84]
add ecx, eax
mov dword [esi + 0x24], ecx
xor eax, eax
mov dword [ebp + 0xb4], eax
mov eax, dword [esp + 0x50]
xor ecx, ecx
xor edx, edx
mov dword [ebp + 0xb8], ecx
xor esi, esi
mov dword [ebp + 0xac], edi
mov dword [ebp + 0xdc], edi
mov dword [ebp + 0xd8], edi
pop edi
mov dword [ebp + 0xbc], edx
mov dword [ebp + 0xc0], esi
pop esi
mov byte [ebp + 0xe0], dl
pop ebp
pop ebx
add esp, 0x80
ret 4