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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x78
push ebx
push ebp
push esi
push edi
mov ebp, ecx
cmp byte [ebp + 0x44], 0
mov dword [esp + 0x20], ebp
mov edi, 0xa
je 0x1001c5a9
mov dword [esp + 0x18], edi
mov ecx, 0x258
jmp 0x1001c5cb
mov ecx, dword [ebp + 0x30]
lea edx, [ecx + ecx]
mov eax, 0x55555556
imul edx
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x18], eax
lea eax, [ecx + ecx*2]
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
mov eax, dword [ebp + 0x80]
cdq
sub eax, edx
sar eax, 1
cmp ecx, eax
mov dword [esp + 0x1c], ecx
jle 0x1001c5e2
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x84]
xor edx, edx
xor esi, esi
xor ebx, ebx
cmp eax, edx
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], edx
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], edi
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], edi
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], edi
jl 0x1001c62e
jg 0x1001c62e
mov edi, eax
jmp 0x1001c645
push eax
lea ecx, [esp + 0x7c]
call fcn.10002a90
mov esi, dword [esp + 0x80]
mov edi, dword [esp + 0x78]
xor edx, edx
mov eax, dword [ebp + 0x80]
cmp eax, edx
jl 0x1001c657
jg 0x1001c657
mov dword [esp + 0x68], eax
jmp 0x1001c667
push eax
lea ecx, [esp + 0x6c]
call fcn.10002a90
mov ebx, dword [esp + 0x70]
xor edx, edx
mov eax, dword [ebp + 0x80]
cmp eax, edx
jl 0x1001c679
jg 0x1001c679
mov dword [esp + 0x38], eax
jmp 0x1001c685
push eax
lea ecx, [esp + 0x3c]
call fcn.10002a90
xor edx, edx
lea ecx, [esi + edi*4]
cmp esi, ecx
mov eax, esi
je 0x1001c699
mov edi, edi
mov dword [eax], edx
add eax, 4
cmp eax, ecx
jne 0x1001c690
mov eax, dword [esp + 0x68]
lea ecx, [ebx + eax*4]
cmp ebx, ecx
mov eax, ebx
je 0x1001c6af
mov dword [eax], edx
add eax, 4
cmp eax, ecx
jne 0x1001c6a6
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x38]
lea ecx, [eax + ecx*4]
cmp eax, ecx
je 0x1001c6c9
mov edi, edi
mov dword [eax], edx
add eax, 4
cmp eax, ecx
jne 0x1001c6c0
mov eax, dword [ebp + 4]
sub eax, 1
js 0x1001c943
mov esi, eax
shl esi, 4
sub esi, eax
add esi, esi
add esi, esi
add esi, esi
add eax, 1
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], eax
lea ecx, [ecx]
mov edi, dword [esp + 0x20]
mov edx, dword [edi + 0xc]
mov eax, dword [esi + edx + 0x2c]
xor ebx, ebx
xor ebp, ebp
cmp eax, ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], 0xa
jl 0x1001c719
jle 0x1001c72b
push eax
lea ecx, [esp + 0x5c]
call fcn.10002a90
mov ebp, dword [esp + 0x60]
mov eax, dword [esp + 0x58]
lea ecx, [ebp + eax*4]
cmp ebp, ecx
mov eax, ebp
je 0x1001c73e
mov dword [eax], ebx
add eax, 4
cmp eax, ecx
jne 0x1001c735
mov eax, dword [edi + 0xc]
fnstcw word [esp + 0x14]
fld qword [esi + eax + 0x18]
lea ecx, [esi + eax]
movzx eax, word [esp + 0x14]
or ah, 0xc
mov dword [esp + 0x24], eax
fldcw word [esp + 0x24]
mov eax, dword [ecx + 0x30]
sub eax, 1
fistp qword [esp + 0x30]
mov ebx, dword [esp + 0x30]
fldcw word [esp + 0x14]
js 0x1001c7cb
lea edx, [eax + eax*4]
add edx, edx
add edx, edx
add edx, edx
add eax, 1
mov dword [esp + 0x24], eax
mov ecx, dword [edi + 0xc]
fnstcw word [esp + 0x14]
mov eax, dword [ecx + esi + 0x38]
fld qword [eax + edx]
movzx eax, word [esp + 0x14]
add ecx, esi
or ah, 0xc
mov dword [esp + 0x30], eax
fldcw word [esp + 0x30]
fistp qword [esp + 0x30]
mov eax, dword [esp + 0x30]
sub eax, ebx
fldcw word [esp + 0x14]
jns 0x1001c7b2
xor eax, eax
mov ecx, dword [ecx + 0x2c]
cmp eax, ecx
jl 0x1001c7bc
lea eax, [ecx - 1]
add dword [ebp + eax*4], 1
sub edx, 0x28
sub dword [esp + 0x24], 1
jne 0x1001c780
mov ecx, dword [edi + 0xc]
mov eax, dword [esi + ecx + 0x40]
sub eax, 1
js 0x1001c83b
lea edx, [eax + eax*4]
add edx, edx
add edx, edx
add edx, edx
add eax, 1
mov dword [esp + 0x24], eax
jmp 0x1001c7f0
mov eax, dword [edi + 0xc]
fnstcw word [esp + 0x14]
lea ecx, [esi + eax]
mov eax, dword [ecx + 0x48]
fld qword [eax + edx]
movzx eax, word [esp + 0x14]
or ah, 0xc
mov dword [esp + 0x30], eax
fldcw word [esp + 0x30]
fistp qword [esp + 0x30]
mov eax, dword [esp + 0x30]
sub eax, ebx
fldcw word [esp + 0x14]
jns 0x1001c822
xor eax, eax
mov ecx, dword [ecx + 0x2c]
cmp eax, ecx
jl 0x1001c82c
lea eax, [ecx - 1]
add dword [ebp + eax*4], 1
sub edx, 0x28
sub dword [esp + 0x24], 1
jne 0x1001c7f0
mov ecx, dword [edi + 0xc]
mov eax, dword [esi + ecx + 0x50]
sub eax, 1
js 0x1001c8ab
lea edx, [eax + eax*4]
add edx, edx
add edx, edx
add edx, edx
add eax, 1
mov dword [esp + 0x24], eax
jmp 0x1001c860
mov eax, dword [edi + 0xc]
fnstcw word [esp + 0x14]
lea ecx, [esi + eax]
mov eax, dword [ecx + 0x58]
fld qword [eax + edx]
movzx eax, word [esp + 0x14]
or ah, 0xc
mov dword [esp + 0x30], eax
fldcw word [esp + 0x30]
fistp qword [esp + 0x30]
mov eax, dword [esp + 0x30]
sub eax, ebx
fldcw word [esp + 0x14]
jns 0x1001c892
xor eax, eax
mov ecx, dword [ecx + 0x2c]
cmp eax, ecx
jl 0x1001c89c
lea eax, [ecx - 1]
add dword [ebp + eax*4], 1
sub edx, 0x28
sub dword [esp + 0x24], 1
jne 0x1001c860
mov ecx, dword [edi + 0xc]
mov edi, dword [esi + ecx + 0x2c]
sub edi, 1
js 0x1001c8fb
mov ecx, dword [esp + 0x40]
mov eax, ebp
sub eax, ecx
lea ebx, [ecx + edi*4]
mov dword [esp + 0x30], eax
xor eax, eax
test edi, edi
jle 0x1001c8f1
mov ecx, ebx
mov edi, edi
mov esi, dword [esp + 0x30]
mov edx, dword [ebp + eax*4]
mov esi, dword [esi + ebx]
cmp esi, edx
jge 0x1001c8e1
mov edx, esi
add dword [ecx], edx
add eax, 1
sub ecx, 4
cmp eax, edi
jl 0x1001c8d0
mov esi, dword [esp + 0x28]
sub edi, 1
sub ebx, 4
test edi, edi
jge 0x1001c8c6
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 0xc]
mov eax, dword [esi + eax + 0x2c]
cmp eax, dword [esp + 0x18]
jl 0x1001c91a
cmp eax, dword [esp + 0x1c]
jg 0x1001c91a
mov ecx, dword [esp + 0x40]
add dword [ecx + eax*4], 1
mov edi, 1
cmp dword [esp + 0x5c], edi
jl 0x1001c932
test ebp, ebp
je 0x1001c932
push ebp
call fcn.10018560
add esp, 4
sub esi, 0x78
sub dword [esp + 0x2c], edi
mov dword [esp + 0x28], esi
jne 0x1001c6f0
mov eax, dword [esp + 0x38]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], 0xa
jl 0x1001c963
jle 0x1001c971
push eax
lea ecx, [esp + 0x5c]
call fcn.10002a90
mov ebx, dword [esp + 0x60]
mov edi, dword [esp + 0x38]
mov esi, 5
add edi, 0xfffffffb
cmp edi, esi
jle 0x1001c9ca
mov ecx, dword [esp + 0x40]
add ecx, 0x28
mov edx, dword [ecx - 0x28]
add edx, dword [ecx - 0x24]
mov eax, dword [ecx]
add edx, dword [ecx - 0x20]
add esi, 1
add edx, dword [ecx - 0x1c]
add ecx, 4
add edx, dword [ecx - 0x1c]
add edx, dword [ecx - 0x18]
add edx, dword [ecx - 0x14]
add edx, dword [ecx - 0x10]
add edx, dword [ecx - 0xc]
add edx, dword [ecx - 8]
lea edx, [edx + eax + 0xb]
mov eax, 0x2e8ba2e9
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, edi
mov dword [ebx + esi*4 - 4], eax
jl 0x1001c988
xor ebp, ebp
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], 0xa
mov dword [esp + 0x2c], ebp
jmp 0x1001c9e8
xor ebp, ebp
mov edi, dword [esp + 0x18]
cmp edi, dword [esp + 0x1c]
mov dword [esp + 0x14], ebp
jge 0x1001cb5a
mov eax, dword [esp + 0x60]
mov ebx, dword [esp + 0x40]
mov ecx, edi
lea esi, [eax + ecx*4]
sub ebx, eax
lea esp, [esp]
mov ecx, dword [esi]
mov eax, dword [ebx + esi]
sub eax, ecx
lea edx, [eax + eax*2]
lea eax, [eax + edx*8]
add eax, eax
add eax, eax
cdq
idiv ecx
cmp eax, dword [esp + 0x14]
jle 0x1001ca30
mov dword [esp + 0x14], eax
mov ebp, edi
add edi, 1
add esi, 4
cmp edi, dword [esp + 0x1c]
jl 0x1001ca10
mov eax, dword [esp + 0x14]
test eax, eax
jle 0x1001cb5a
cmp eax, 0xa
jle 0x1001cb5a
mov eax, dword [esp + 0x60]
mov ecx, dword [eax + ebp*4]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x40]
xor edi, edi
lea esi, [eax + 0x4c]
mov dword [edx + ebp*4], ecx
cmp dword [esi], edi
jle 0x1001cac5
mov eax, dword [eax + 0x54]
mov dword [esp + 0x30], eax
mov ebx, eax
mov ecx, dword [ebx]
mov eax, ecx
sub eax, ebp
jns 0x1001ca81
mov eax, ebp
sub eax, ecx
cmp eax, 3
jle 0x1001cb46
mov eax, ebp
cdq
sub eax, edx
sar eax, 1
mov edx, ecx
sub edx, eax
jns 0x1001ca9b
sub eax, ecx
jmp 0x1001ca9d
mov eax, edx
cmp eax, 2
jle 0x1001cb46
lea eax, [ebp + ebp]
mov edx, ecx
sub edx, eax
jns 0x1001cab4
sub eax, ecx
jmp 0x1001cab6
mov eax, edx
cmp eax, 2
jle 0x1001cad5
add edi, 1
add ebx, 4
cmp edi, dword [esi]
jl 0x1001ca75
mov eax, dword [esi]
add eax, 1
js 0x1001cb06
cmp eax, dword [esi + 4]
jg 0x1001cb06
mov dword [esi], eax
jmp 0x1001cb0e
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x50]
lea eax, [ecx + ecx*2]
lea eax, [ecx + eax*8]
add eax, eax
add eax, eax
cdq
idiv dword [esi + edi*4]
cmp eax, 0x4b
jle 0x1001cb46
mov edx, dword [esp + 0x30]
mov dword [edx + edi*4], ebp
mov eax, dword [esi + edi*4]
add eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [esi + edi*4], eax
jmp 0x1001cb46
push eax
mov ecx, esi
call fcn.10002a90
mov eax, dword [esi]
mov ecx, dword [esi + 8]
mov dword [ecx + eax*4 - 4], ebp
mov eax, dword [esp + 0x48]
add eax, 1
js 0x1001cb2c
cmp eax, dword [esp + 0x4c]
jg 0x1001cb2c
mov dword [esp + 0x48], eax
jmp 0x1001cb36
push eax
lea ecx, [esp + 0x4c]
call fcn.10002a90
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x48]
mov dword [edx + ecx*4 - 4], eax
mov eax, dword [esp + 0x2c]
add eax, 1
cmp eax, 0x32
mov dword [esp + 0x2c], eax
jl 0x1001c9e6
mov ecx, dword [esp + 0x20]
add ecx, 0x4c
cmp dword [ecx], 2
jle 0x1001cb7b
cmp dword [ecx + 4], 2
jge 0x1001cb75
push 2
call fcn.10002a90
jmp 0x1001cb7b
mov dword [ecx], 2
mov esi, dword [esp + 0x20]
cmp byte [esi + 0x44], 0
je 0x1001cbad
mov edx, dword [esi + 0x54]
mov byte [esi + 0x44], 0
mov eax, dword [edx]
mov ecx, esi
mov dword [esi + 0x30], eax
call fcn.1001bb00
mov ecx, esi
call fcn.1001c410
mov ecx, esi
call fcn.1001bd50
mov ecx, esi
call fcn.1001c580
mov esi, 1
cmp dword [esp + 0x4c], esi
jl 0x1001cbc9
mov eax, dword [esp + 0x50]
test eax, eax
je 0x1001cbc9
push eax
call fcn.10018560
add esp, 4
cmp dword [esp + 0x5c], esi
jl 0x1001cbe0
mov eax, dword [esp + 0x60]
test eax, eax
je 0x1001cbe0
push eax
call fcn.10018560
add esp, 4
cmp dword [esp + 0x3c], esi
jl 0x1001cbf7
mov eax, dword [esp + 0x40]
test eax, eax
je 0x1001cbf7
push eax
call fcn.10018560
add esp, 4
cmp dword [esp + 0x6c], esi
jl 0x1001cc0e
mov eax, dword [esp + 0x70]
test eax, eax
je 0x1001cc0e
push eax
call fcn.10018560
add esp, 4
cmp dword [esp + 0x7c], esi
jl 0x1001cc28
mov eax, dword [esp + 0x80]
test eax, eax
je 0x1001cc28
push eax
call fcn.10018560
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret