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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push edi
push esi
push ebx
sub esp, 0xb4
mov dword [esp + 0x50], ecx
mov ecx, dword [ebp + 0x1c]
mov esi, edx
mov edi, eax
mov eax, dword [ebp + 0x14]
inc dword [0x102198fc]
xor edx, edx
cmp dword [ebp + 0x18], 0
mov dword [esp + 0x88], edx
mov dword [eax], edx
mov dword [ecx], edx
mov dword [esp + 0x8c], edx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], edx
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], edx
je 0x1013c074
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
mov eax, dword [esi + 4]
mov edx, dword [edi + 0x54]
cmp dword [edx + eax*4], 1
je 0x1013ca1c
movsd xmm0, qword [0x101f28f8]
mulsd xmm0, qword [esi + 8]
cvttsd2si ecx, xmm0
and ecx, 0x8000003f
jge 0x1013c0a4
sub ecx, 1
or ecx, 0xffffffc0
inc ecx
mov edx, dword [esi]
and edx, 0x8000003f
jge 0x1013c0b5
sub edx, 1
or edx, 0xffffffc0
inc edx
mov edx, dword [edx*4 + 0x10283900]
imul edx, dword [ecx*4 + 0x10283900]
and eax, 0x8000007f
jge 0x1013c0d2
sub eax, 1
or eax, 0xffffff80
inc eax
mov dword [eax*4 + 0x10283700], edx
mov eax, dword [0x1021f8f8]
cmp eax, 1
je 0x1013c8e0
cmp eax, 2
je 0x1013c8e0
cmp eax, 3
je 0x1013c8e0
movsd xmm0, qword [0x101f2900]
movsd qword [esp + 0x30], xmm0
lea ebx, [esp + 0x8c]
mov dword [esp + 0xc], ebx
lea eax, [esp + 0x6c]
mov dword [esp + 0x10], eax
lea edx, [esp + 0x70]
mov dword [esp + 0x14], edx
lea ecx, [esp + 0x74]
mov dword [esp + 0x18], ecx
lea ebx, [esp + 0x78]
mov dword [esp + 0x1c], ebx
lea eax, [esp + 0x7c]
mov dword [esp + 0x20], eax
lea edx, [esp + 0x80]
mov ebx, 1
mov eax, edi
mov dword [esp + 0x24], edx
lea ecx, [esp + 0x84]
mov dword [esp + 0x28], ecx
mov edx, esi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x38], ebx
lea ecx, [esp + 0x88]
call fcn.1013ce2c
mov ebx, eax
test ebx, ebx
je 0x1013c188
cmp ebx, 2
je 0x1013c86d
mov eax, dword [esp + 0x84]
jmp 0x1013c733
mov eax, dword [esp + 0x84]
test eax, eax
jne 0x1013c19d
mov ebx, 1
jmp 0x1013c733
xor ebx, ebx
cmp dword [0x1021f6c8], 0
je 0x1013c40c
test eax, eax
jle 0x1013c3fa
mov dword [esp + 0x68], ebx
mov dword [esp + 0x90], edi
xor edx, edx
mov dword [esp + 0x48], edx
mov edi, edx
mov ebx, dword [esp + 0x90]
mov eax, dword [0x10219190]
mov edx, dword [esi + 4]
mov ecx, dword [ebx]
imul ecx, dword [ecx + edx*4], 0xa10
cmp dword [ecx + eax + 0x9fc], 0
mov dword [esp], ebx
mov ebx, dword [esp + 0x8c]
mov dword [esp + 4], edx
mov edx, dword [ebx + edi*4]
mov edx, dword [edx]
mov eax, 0x1000
mov ecx, 1
cmove eax, ecx
shl edx, 4
lea ebx, [esp + 8]
mov ecx, dword [esp + 0x88]
mov ecx, dword [ecx + edi*4]
movsd xmm0, qword [edx + ecx]
movsd qword [ebx], xmm0
movsd xmm1, qword [edx + ecx + 8]
movsd qword [ebx + 8], xmm1
mov edx, dword [esi + 0x10]
movsd xmm2, qword [esi + 8]
movsd qword [esp + 0x1c], xmm2
mov dword [esp + 0x18], edx
mov dword [esp + 0x24], eax
lea edx, [esp + 0x60]
mov dword [esp + 0x28], edx
xor edx, edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], edx
call fcn.10161550
mov ecx, dword [0x1021f690]
movsd xmm2, qword [esp + 0x60]
test ecx, ecx
jle 0x1013c898
mov edx, dword [0x1021f69c]
movsd xmm0, qword [edx + ecx*8 - 8]
comisd xmm0, xmm2
jbe 0x1013c297
mov eax, dword [esp + 0x84]
mov dword [esp + 0x48], 1
jmp 0x1013c3de
mov ebx, dword [esp + 0x88]
push dword [ebx + edi*4]
call fcn.101bceaa
mov edx, dword [esp + 0x90]
push dword [edx + edi*4]
call fcn.101bceaa
add esp, 8
mov eax, dword [esp + 0x80]
cmp dword [eax + edi*4], 0
jle 0x1013c329
mov edx, dword [esp + 0x74]
mov dword [esp + 0x54], eax
mov dword [esp + 0x4c], ebx
xor ecx, ecx
mov dword [esp + 0x5c], esi
mov esi, edx
mov ebx, ecx
mov eax, dword [esi + edi*4]
push dword [eax + ebx*4]
call fcn.101bceaa
pop ecx
mov eax, dword [esp + 0x54]
mov ecx, dword [eax + edi*4]
inc ebx
cmp ebx, ecx
jl 0x1013c2db
mov ebx, dword [esp + 0x4c]
mov esi, dword [esp + 0x5c]
test ecx, ecx
jle 0x1013c329
mov edx, dword [esp + 0x74]
push dword [edx + edi*4]
call fcn.101bceaa
mov edx, dword [esp + 0x7c]
push dword [edx + edi*4]
call fcn.101bceaa
mov edx, dword [esp + 0x84]
push dword [edx + edi*4]
call fcn.101bceaa
add esp, 0xc
mov eax, dword [esp + 0x84]
lea edx, [eax - 1]
cmp edi, edx
jge 0x1013c3d5
mov edx, dword [ebx + eax*4 - 4]
mov dword [ebx + edi*4], edx
mov edx, dword [esp + 0x8c]
mov ecx, dword [esp + 0x84]
mov ebx, dword [edx + ecx*4 - 4]
mov dword [edx + edi*4], ebx
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x84]
movsd xmm0, qword [ecx + edx*8 - 8]
movsd qword [ecx + edi*8], xmm0
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x84]
mov edx, dword [ecx + edx*4 - 4]
mov dword [ecx + edi*4], edx
mov ebx, dword [esp + 0x74]
test ebx, ebx
je 0x1013c3b9
mov edx, dword [esp + 0x84]
mov ecx, dword [ebx + edx*4 - 4]
mov dword [ebx + edi*4], ecx
mov ecx, dword [esp + 0x78]
mov ebx, dword [esp + 0x84]
mov edx, dword [ecx + ebx*4 - 4]
mov dword [ecx + edi*4], edx
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x84]
mov edx, dword [ecx + edx*4 - 4]
mov dword [ecx + edi*4], edx
mov ebx, dword [esp + 0x80]
mov edx, dword [esp + 0x84]
mov ecx, dword [ebx + edx*4 - 4]
mov dword [ebx + edi*4], ecx
mov eax, dword [esp + 0x84]
dec eax
mov dword [esp + 0x84], eax
dec edi
inc edi
cmp edi, eax
jl 0x1013c1c7
mov ebx, dword [esp + 0x68]
mov edx, dword [esp + 0x48]
mov edi, dword [esp + 0x90]
test edx, edx
jne 0x1013c404
mov ebx, 4
jmp 0x1013c733
test ebx, ebx
jne 0x1013c733
lea ecx, [esp + 0x48]
mov eax, edi
mov edx, esi
call fcn.1014b99c
mov ebx, dword [esp + 0x88]
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x84]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x78]
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], ebx
mov ebx, dword [esp + 0x80]
mov dword [esp + 0x2c], ecx
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x30], ebx
mov ebx, dword [ebp + 0x18]
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x4c]
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], ecx
mov edx, edi
mov ecx, esi
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x48]
call fcn.1014bd7c
mov ebx, eax
cmp dword [ebp + 0x18], 0
je 0x1013c4b2
mov eax, dword [ebp + 0x18]
cmp dword [eax], 0
je 0x1013c8bb
cmp dword [0x1021f900], 0
je 0x1013c5a9
movsd xmm0, qword [0x1021f8d0]
pxor xmm1, xmm1
comisd xmm0, xmm1
ja 0x1013c4e3
movsd xmm0, qword [0x1021f8c8]
comisd xmm0, xmm1
jbe 0x1013c5a9
mov edx, dword [ebp + 0x1c]
xor eax, eax
cmp dword [edx], 0
jle 0x1013c5ab
mov dword [esp + 0x90], edi
mov dword [esp + 0x5c], esi
xor edx, edx
lea ecx, [esi + 0x10]
mov edi, edx
mov dword [esp + 0x54], ecx
lea edx, [esi + 8]
mov dword [esp + 0x50], edx
mov esi, eax
mov edx, dword [ebp + 0x14]
lea ecx, [esp + 0x58]
push ecx
mov eax, edi
shl eax, 4
push dword [esp + 0x54]
add eax, dword [edx]
xor edx, edx
push dword [esp + 0x5c]
push eax
push dword [esp + 0x90]
push dword [esp + 0x8c]
push edx
push dword [esp + 0x98]
push dword [esp + 0x94]
push dword [esp + 0xa8]
push dword [esp + 0x94]
push edx
push dword [esp + 0xa0]
push dword [esp + 0xbc]
mov ecx, dword [esp + 0x94]
push dword [ecx]
push dword [esp + 0xcc]
call fcn.10112e50
add esp, 0x40
mov ecx, dword [ebp + 0x1c]
mov edx, 1
test eax, eax
cmovne ebx, edx
cmp dword [esp + 0x58], 0
cmovne esi, edx
inc edi
cmp edi, dword [ecx]
jl 0x1013c510
mov edi, dword [esp + 0x90]
mov eax, esi
mov esi, dword [esp + 0x5c]
jmp 0x1013c5ab
xor eax, eax
test ebx, ebx
jne 0x1013c65b
cmp dword [0x1021f80c], 0
jle 0x1013c65b
test eax, eax
jne 0x1013c65b
mov eax, dword [ebp + 0x1c]
cmp dword [eax], 0
jle 0x1013c65b
mov dword [esp + 0x5c], esi
xor eax, eax
lea ecx, [esi + 8]
mov esi, eax
mov dword [esp + 0x54], ecx
mov edx, dword [ebp + 0x14]
lea ecx, [esp + 0x50]
push ecx
mov eax, esi
shl eax, 4
push dword [esp + 0x58]
add eax, dword [edx]
xor edx, edx
push eax
push dword [esp + 0x8c]
push dword [esp + 0x88]
push edx
push dword [esp + 0x94]
push dword [esp + 0x90]
push dword [esp + 0xa4]
push dword [esp + 0x90]
push edx
push dword [esp + 0x9c]
push dword [esp + 0xb8]
mov ecx, dword [esp + 0x90]
push dword [ecx]
push edi
call fcn.10114660
add esp, 0x3c
mov ecx, dword [ebp + 0x1c]
mov edx, 1
test eax, eax
cmovne ebx, edx
inc esi
cmp esi, dword [ecx]
jl 0x1013c5e3
mov esi, dword [esp + 0x5c]
push 6
push str.PUZZLE
push 0x1021ee00
call fcn.101be28c
add esp, 0xc
test eax, eax
je 0x1013c68f
push 7
push str.RPUZZLE
push 0x1021ee00
call fcn.101be28c
add esp, 0xc
test eax, eax
jne 0x1013c17c
mov eax, dword [ebp + 0x1c]
cmp dword [eax], 0
jle 0x1013c17c
mov dword [esp + 0x68], ebx
mov dword [esp + 0x90], edi
mov edi, dword [ebp + 0x14]
xor eax, eax
mov ebx, eax
mov edx, dword [esp + 0x70]
mov ecx, dword [esp + 0x6c]
movsd xmm0, qword [esi + 8]
movsd qword [esp + 4], xmm0
xor eax, eax
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x84]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x78]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x80]
mov dword [esp + 0x34], edx
mov edx, ebx
shl edx, 4
add edx, dword [edi]
mov dword [esp + 0x38], edx
mov edx, dword [esi]
call fcn.1013ca6c
mov edx, dword [ebp + 0x1c]
inc ebx
cmp ebx, dword [edx]
jl 0x1013c6ad
mov ebx, dword [esp + 0x68]
mov eax, dword [esp + 0x84]
mov edi, dword [esp + 0x88]
mov edx, dword [esp + 0x8c]
mov ecx, dword [esp + 0x74]
mov esi, dword [esp + 0x78]
test eax, eax
mov dword [esp + 0x98], edx
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x9c], ecx
mov dword [esp + 0x54], esi
mov esi, dword [esp + 0x80]
mov dword [esp + 0x5c], edx
jle 0x1013c813
mov dword [esp + 0x68], ebx
mov dword [esp + 0x94], eax
xor edx, edx
mov ebx, edx
push dword [edi + ebx*4]
call fcn.101bceaa
mov eax, dword [esp + 0x9c]
push dword [eax + ebx*4]
call fcn.101bceaa
add esp, 8
cmp dword [esi + ebx*4], 0
jle 0x1013c801
mov dword [esp + 0x90], edi
xor eax, eax
mov edi, eax
mov ecx, dword [esp + 0x9c]
mov ecx, dword [ecx + ebx*4]
mov ecx, dword [ecx + edi*4]
test ecx, ecx
je 0x1013c7c4
push ecx
call fcn.101bceaa
pop ecx
inc edi
cmp edi, dword [esi + ebx*4]
jl 0x1013c7ac
cmp dword [esi + ebx*4], 0
mov edi, dword [esp + 0x90]
jle 0x1013c801
mov eax, dword [esp + 0x9c]
push dword [eax + ebx*4]
call fcn.101bceaa
mov eax, dword [esp + 0x58]
push dword [eax + ebx*4]
call fcn.101bceaa
mov eax, dword [esp + 0x64]
push dword [eax + ebx*4]
call fcn.101bceaa
add esp, 0xc
inc ebx
cmp ebx, dword [esp + 0x94]
jl 0x1013c781
mov ebx, dword [esp + 0x68]
push edi
call fcn.101bceaa
push dword [esp + 0x9c]
call fcn.101bceaa
push dword [esp + 0x74]
call fcn.101bceaa
push dword [esp + 0x7c]
call fcn.101bceaa
push dword [esp + 0xac]
call fcn.101bceaa
push dword [esp + 0x68]
call fcn.101bceaa
push dword [esp + 0x74]
call fcn.101bceaa
push esi
call fcn.101bceaa
add esp, 0x20
mov eax, ebx
add esp, 0xb4
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 4]
mov eax, dword [edi]
imul ecx, dword [eax + edx*4], 0xa10
mov eax, dword [0x10219190]
cmp dword [ecx + eax + 0x834], 1
jne 0x1013c17c
mov eax, dword [esp + 0x84]
jmp 0x1013c1ac
movsd xmm1, qword [0x1021f6c0]
movsd xmm0, qword [0x101f2908]
subsd xmm1, xmm0
comisd xmm1, xmm2
ja 0x1013c283
jmp 0x1013c297
push 0x18
call fcn.101bcde0
mov edx, dword [ebp + 0x18]
push eax
mov dword [edx], eax
call fcn.1011e3c0
add esp, 8
mov eax, dword [ebp + 0x18]
mov edx, dword [esp + 0x48]
mov ecx, dword [eax]
mov dword [ecx], edx
jmp 0x1013c4b2
mov ebx, dword [esi + 4]
mov eax, dword [edi + 0x98]
cmp dword [eax + ebx*4], 2
jne 0x1013c0f9
mov ecx, dword [0x10219190]
mov eax, dword [esi]
mov dword [esp + 0x4c], eax
imul eax, eax, 0xa10
mov edx, dword [ecx + eax + 0x958]
mov dword [esp + 0x58], edx
mov edx, dword [ecx + eax + 0x70]
mov dword [esp + 0x48], edx
test edx, edx
jle 0x1013ca15
mov eax, dword [esp + 0x4c]
mov ecx, dword [edi + 8]
mov eax, dword [ecx + eax*4]
mov dword [esp + 0x5c], esi
xor edx, edx
mov esi, dword [esp + 0x48]
cmp ebx, dword [eax + edx*4]
je 0x1013ca02
inc edx
cmp edx, esi
jl 0x1013c934
mov esi, dword [esp + 0x5c]
xor eax, eax
mov edx, dword [edi + 0x10]
cmp dword [edx + eax*4], 0
jne 0x1013c96a
mov eax, 4
mov ebx, 1
cmp dword [0x1021f6c8], 0
cmovne ebx, eax
jmp 0x1013c85e
mov edx, dword [esp + 0x58]
mov ebx, dword [edi + 0x44]
mov dword [esp + 4], 0x1021fb80
mov ecx, eax
mov dword [esp], edx
shl ecx, 4
movsd xmm0, qword [ecx + ebx]
lea edx, [esp + 8]
movsd qword [edx], xmm0
movsd xmm1, qword [ecx + ebx + 8]
movsd qword [edx + 8], xmm1
mov ecx, dword [edi + 0x4c]
mov ebx, dword [ecx + eax*4]
mov edi, dword [edi + 0x48]
movsd xmm2, qword [edi + eax*8]
movsd xmm3, qword [esi + 8]
movsd qword [esp + 0x1c], xmm2
movsd qword [esp + 0x2c], xmm3
mov dword [esp + 0x18], ebx
lea eax, [esp + 0x48]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x28], eax
call fcn.10100b90
push 0x10
call fcn.101bcde0
pop ecx
mov edx, dword [ebp + 0x14]
movsd xmm0, qword [esp + 0x48]
mov dword [edx], eax
movsd qword [eax], xmm0
xor ebx, ebx
movsd xmm1, qword [esp + 0x50]
movsd qword [eax + 8], xmm1
mov eax, dword [ebp + 0x1c]
mov dword [eax], 1
jmp 0x1013c85e
mov esi, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
mov ecx, dword [ecx + eax*4]
mov eax, dword [ecx + edx*4]
jmp 0x1013c948
xor eax, eax
jmp 0x1013c948
push 0x10
call fcn.101bcde0
pop ecx
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x1c]
mov dword [ecx], eax
mov dword [edx], 1
mov edx, dword [ecx]
mov eax, dword [esi + 4]
mov ebx, dword [edi + 0x44]
shl eax, 4
movsd xmm0, qword [eax + ebx]
movsd qword [edx], xmm0
movsd xmm1, qword [eax + ebx + 8]
movsd qword [edx + 8], xmm1
xor eax, eax
add esp, 0xb4
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret