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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
mov ebx, eax
mov eax, dword [ebp + 8]
cmp byte [eax + 2], 0
push esi
push edi
movzx edi, byte [eax + 0xa]
je 0x1017ef36
mov ecx, dword [ebx + 0x1c]
mov eax, dword [ebx + 0x20]
mov edx, dword [ebx + 0x10]
add eax, ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
cmp eax, 0x80
jae 0x1017ef06
mov ecx, dword [ebp + 0xc]
mov byte [edi + ecx], al
mov eax, 1
jmp 0x1017ef17
cdq
push edx
mov edx, dword [ebp + 0xc]
push eax
lea esi, [edi + edx]
call fcn.1012d140
add esp, 8
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebx + 8]
movzx eax, al
add edi, eax
mov eax, dword [ebp + 0xc]
push ecx
push edx
lea esi, [edi + eax]
call fcn.1012d140
add esp, 8
add edi, eax
jmp 0x1017ef71
mov eax, dword [ebx + 8]
mov ecx, dword [ebx]
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
cmp eax, 0x80
jae 0x1017ef5b
mov edx, dword [ebp + 0xc]
mov byte [edi + edx], al
mov eax, 1
jmp 0x1017ef6c
cdq
push edx
push eax
mov eax, dword [ebp + 0xc]
lea esi, [edi + eax]
call fcn.1012d140
add esp, 8
movzx ecx, al
add edi, ecx
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0xe]
mov esi, dword [esp + 0xc]
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x20], edi
lea ebx, [edi + edx]
mov dword [esp + 0x1c], ecx
cmp esi, ecx
jg 0x1017efd0
lea eax, [esi + edi]
cmp eax, 4
jge 0x1017ef9b
mov eax, 4
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
push esi
push edx
push ebx
mov dword [ecx], eax
call fcn.100ffb30
mov eax, dword [esp + 0x18]
add esp, 0xc
sub eax, esi
push eax
push 0
add ebx, esi
push ebx
call fcn.100ffab0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [eax + 0x34]
movzx ecx, word [eax + 0x10]
mov eax, dword [edi + 0x28]
sub eax, 4
mov dword [esp + 0x28], eax
mov eax, esi
sub eax, ecx
xor edx, edx
div dword [esp + 0x28]
mov eax, ecx
add edx, eax
cmp edx, dword [esp + 0x1c]
jle 0x1017eff7
mov edx, eax
mov eax, dword [esp + 0x20]
add eax, edx
lea ecx, [eax + 4]
add eax, dword [ebp + 0xc]
mov dword [esp + 0x1c], edx
mov edx, dword [ebp + 0x10]
mov dword [esp + 0x28], eax
xor eax, eax
mov dword [edx], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], eax
jmp 0x1017f024
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x1c]
cmp esi, eax
jle 0x1017f02e
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, esi
jl 0x1017f044
mov edx, dword [esp + 0x10]
push esi
push edx
push ebx
call fcn.100ffb30
jmp 0x1017f061
test eax, eax
jle 0x1017f058
push eax
mov esi, eax
mov eax, dword [esp + 0x14]
push eax
push ebx
call fcn.100ffb30
jmp 0x1017f061
push esi
push 0
push ebx
call fcn.100ffab0
mov eax, dword [esp + 0x18]
sub eax, esi
add esp, 0xc
mov dword [esp + 0xc], eax
test eax, eax
jle 0x1017f1eb
add dword [esp + 0x10], esi
sub dword [esp + 0x14], esi
add ebx, esi
sub dword [esp + 0x1c], esi
jne 0x1017f020
cmp byte [edi + 0x11], 0
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x2c], ebx
je 0x1017f0ea
inc ebx
cmp ebx, 2
jae 0x1017f0a6
xor ecx, ecx
jmp 0x1017f0d3
mov eax, 0xcccccccd
mul dword [edi + 0x28]
mov esi, edx
shr esi, 2
xor edx, edx
inc esi
lea eax, [ebx - 2]
div esi
xor edx, edx
mov ecx, eax
mov eax, dword [0x10292424]
imul ecx, esi
div dword [edi + 0x24]
add ecx, 2
inc eax
cmp ecx, eax
jne 0x1017f0d3
inc ecx
cmp ecx, ebx
je 0x1017f09c
mov eax, dword [0x10292424]
xor edx, edx
div dword [edi + 0x24]
inc eax
cmp ebx, eax
je 0x1017f09c
mov dword [esp + 0x18], ebx
push 0
push ebx
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x28]
push edx
push edi
call fcn.10179de0
mov esi, dword [esp + 0x30]
add esp, 0x14
cmp byte [edi + 0x11], 0
mov ebx, eax
mov dword [esp + 0x24], ebx
je 0x1017f14f
test ebx, ebx
jne 0x1017f201
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x30]
test eax, eax
setne cl
add cl, 3
movzx edx, cl
push eax
mov eax, dword [esp + 0x20]
push edx
mov ecx, edi
call fcn.1017a6d0
mov ebx, dword [esp + 0x30]
add esp, 0xc
test ebx, ebx
je 0x1017f157
test esi, esi
je 0x1017f14f
mov eax, esi
call fcn.1013c030
test ebx, ebx
jne 0x1017f201
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
bswap eax
mov dword [ecx], eax
mov eax, dword [esp + 0x20]
test eax, eax
je 0x1017f1c5
mov eax, dword [eax + 0x48]
test byte [eax + 0x1c], 0x20
je 0x1017f1c0
mov ecx, dword [eax + 0x14]
dec dword [ecx + 0x78]
mov edx, dword [ecx + 0x88]
mov dword [eax + 0x10], edx
mov esi, dword [ecx + 0x3c]
mov dword [ecx + 0x88], eax
mov edx, dword [eax + 4]
mov eax, dword [eax + 0x18]
mov ebx, dword [esi]
dec eax
push edx
mov dword [esp + 0x30], eax
mov eax, dword [ecx + 0x98]
cdq
push edx
push eax
mov eax, dword [esp + 0x38]
push 0
push eax
call fcn.10100050
push edx
push eax
mov eax, dword [ebx + 0x48]
push esi
call eax
mov esi, dword [esp + 0x2c]
add esp, 0x10
jmp 0x1017f1c5
call fcn.1012c920
mov eax, dword [esi + 0x38]
xor ecx, ecx
bswap ecx
mov dword [eax], ecx
mov ebx, dword [esi + 0x38]
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0x28]
add ebx, 4
sub eax, 4
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], eax
jmp 0x1017f020
mov eax, dword [esp + 0x20]
test eax, eax
je 0x1017f1f8
call fcn.1013c030
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x20]
test eax, eax
je 0x1017f20e
call fcn.1013c030
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret