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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x88c
mov ecx, dword [ebp + 0x18]
push ebx
mov ebx, ecx
push esi
and ebx, 0xff00
push edi
mov dword [esp + 0x68], ebx
je 0x401039
cmp ebx, 0x100
je 0x401030
cmp ebx, 0x200
jne 0x401040
mov byte [0x4acbcc], 1
jmp 0x401040
mov byte [0x4acbcc], 0
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov dword [eax + 4], 0x1806
mov edx, dword [esi + 0xc]
mov dword [eax + 0xc], edx
mov edx, dword [esi + 8]
mov dword [eax + 8], edx
mov edx, dword [ebp + 0x14]
mov dword [eax + 0x24], edx
mov dword [eax + 0x48], 0x20
mov dword [eax + 0x4c], 4
mov dword [eax + 0x54], ecx
mov dword [eax + 0x50], 0x12345678
mov eax, dword [esi + 0x54]
add eax, 7
lea edi, [esi + 0x58]
shr eax, 3
mov dword [esp + 0x24], eax
lea eax, [esp + 0x54]
xor ecx, ecx
sub edi, eax
mov dword [esp + 0x40], edi
lea edx, [edi + ecx*4]
mov eax, dword [esp + edx + 0x54]
xor edx, edx
test al, 1
jne 0x4010a7
shr eax, 1
inc edx
test al, 1
je 0x4010a0
mov dword [esp + ecx*4 + 0x54], edx
inc ecx
cmp ecx, 3
jl 0x401093
test ebx, ebx
je 0x4010e6
mov edx, dword [esi + 0x64]
xor ecx, ecx
mov eax, edx
test al, 1
jne 0x4010c7
shr eax, 1
inc ecx
test al, 1
je 0x4010c0
shr edx, cl
mov eax, 0x80808081
mov dword [esp + 0x48], ecx
imul edx, dword [0x4acbc8]
mul edx
shr edx, 7
mov eax, edx
shl eax, cl
mov dword [esp + 0x6c], eax
mov eax, dword [esi + 0x24]
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x4c], eax
mov eax, dword [esi + 8]
test eax, eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x44], 0
jle 0x401d0c
jmp 0x40110c
mov esi, dword [ebp + 8]
sub eax, dword [esp + 0x44]
cmp eax, 4
mov dword [esp + 0x30], eax
jb 0x401121
mov dword [esp + 0x30], 4
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x50], 0
mov dword [esp + 0x38], edx
mov edx, dword [esi + 0xc]
test edx, edx
jle 0x401ce5
mov eax, dword [ebp + 0x18]
and eax, 0xff
mov dword [esp + 0x60], eax
mov ecx, 0x160
xor eax, eax
lea edi, [esp + 0x318]
rep stosd dword es:[edi], eax
mov ecx, 0x30
or eax, 0xffffffff
lea edi, [esp + 0xc0]
rep stosd dword es:[edi], eax
xor eax, eax
mov ecx, dword [ebp + 0x1c]
inc eax
cmp eax, 3
fld dword [ecx + eax*4 - 4]
fstp qword [esp + eax*8 + 0x798]
jl 0x40116b
mov esi, dword [esp + 0x50]
mov eax, dword [0x4aa018]
sub edx, esi
cmp edx, eax
mov dword [esp + 0x2c], edx
jb 0x401196
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x68]
xor ebx, ebx
cmp eax, 0x100
mov dword [esp + 0x318], ebx
je 0x4014c1
cmp eax, 0x200
jne 0x4015e3
mov edx, dword [0x4aa018]
mov eax, dword [ebp + 8]
imul edx, dword [esp + 0x24]
mov eax, dword [eax + 0x10]
mov edi, dword [esp + 0x38]
xor esi, esi
sub eax, edx
mov dword [esp + 0x180], esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
mov eax, dword [0x4aa018]
mov dword [esp + 0x18], 0
test eax, eax
jle 0x4012af
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
cmp eax, ecx
jge 0x401286
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x10]
cmp eax, edx
jge 0x401286
mov eax, dword [ebp + 8]
mov ecx, dword [edi]
mov edx, dword [eax + 0x64]
mov eax, edx
and eax, ecx
mov ecx, dword [esp + 0x48]
shr eax, cl
shr edx, cl
mov ecx, dword [esp + 0x180]
mov dword [esp + esi*4 + 0xc0], ecx
inc esi
cmp eax, edx
jne 0x401241
fld dword [0x45a890]
jmp 0x40126f
mov dword [esp + 0x98], eax
xor eax, eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], edx
fild qword [esp + 0x98]
mov dword [esp + 0xa4], eax
fild qword [esp + 0xa0]
fdivp st(1)
mov edx, dword [esp + 0x180]
fstp dword [esp + edx*4 + 0x184]
inc dword [esp + 0x180]
jmp 0x401292
mov dword [esp + esi*4 + 0xc0], 0xffffffff
inc esi
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov ecx, dword [0x4aa018]
inc eax
add edi, edx
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x4011f6
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
inc eax
add edi, edx
cmp eax, 4
mov dword [esp + 0x10], eax
jl 0x4011e1
mov eax, dword [esp + 0x180]
xor esi, esi
cmp eax, esi
mov dword [esp + 0x244], esi
mov dword [esp + 0x248], esi
jne 0x4012ed
xor edi, edi
mov dword [esp + 0x250], esi
jmp 0x401316
lea eax, [esp + 0x180]
push eax
call fcn.00405d80
mov esi, dword [esp + 0x254]
mov edi, dword [esp + 0x258]
mov ebx, dword [esp + 0x31c]
add esp, 4
cmp esi, edi
jne 0x401359
mov edx, dword [esp + 0x180]
xor ecx, ecx
inc edi
xor eax, eax
cmp edx, ecx
mov dword [esp + 0x254], edi
jle 0x40134e
mov dword [esp + eax*4 + 0x258], ecx
mov edx, dword [esp + 0x180]
inc eax
cmp eax, edx
jl 0x40132d
mov esi, dword [esp + 0x250]
mov edi, dword [esp + 0x254]
mov dword [esp + 0x24c], 6
mov eax, dword [esp + 0x24c]
xor ecx, ecx
cmp esi, edi
setg cl
xor edx, edx
cmp eax, 6
sete dl
cmp ecx, edx
jne 0x40138f
mov eax, esi
mov dword [esp + 0x250], edi
mov dword [esp + 0x254], eax
mov dword [esp + 0x18], 1
xor esi, esi
jmp 0x401395
xor esi, esi
mov dword [esp + 0x18], esi
mov edi, dword [esp + 0x28]
xor eax, eax
mov cl, byte [esp + eax*4 + 0x250]
mov byte [edi], cl
inc edi
inc eax
cmp eax, 2
jl 0x40139b
mov eax, dword [0x4aa018]
mov dword [esp + 0x28], edi
cdq
and edx, 3
mov dword [esp + 0x1c], esi
add eax, edx
mov dword [esp + 0x20], esi
sar eax, 2
lea ecx, [eax + eax*2]
xor eax, eax
add ecx, ecx
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [0x4aa018]
xor edi, edi
cdq
and edx, 3
add eax, edx
sar eax, 2
test eax, eax
jle 0x4015e3
mov esi, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 4
mov eax, dword [esp + edx*4 + 0xc0]
shr edi, 3
test eax, eax
jl 0x401467
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + eax*4 + 0x258]
test ecx, ecx
je 0x401462
mov ecx, dword [esp + 0x24c]
cmp ecx, 8
jne 0x401441
cmp eax, 1
jle 0x401459
mov ecx, 9
sub ecx, eax
jmp 0x401460
cmp ecx, 6
jne 0x401462
cmp eax, 5
jg 0x401462
cmp eax, 1
jle 0x401459
mov ecx, 7
sub ecx, eax
jmp 0x401460
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
shl eax, 0x15
or edi, eax
mov eax, dword [esp + 0x14]
inc edx
dec eax
mov dword [esp + 0x14], eax
jne 0x40140a
mov eax, dword [esp + 0x10]
test al, 1
je 0x401487
mov ecx, dword [esi]
add esi, 3
or ecx, edi
xor edi, edi
mov dword [esi - 3], ecx
inc eax
cmp eax, 4
mov dword [esp + 0x10], eax
jl 0x401402
mov eax, dword [0x4aa018]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x1c], edx
inc ecx
cdq
and edx, 3
mov dword [esp + 0x20], ecx
add eax, edx
sar eax, 2
cmp ecx, eax
jl 0x4013f6
mov dword [esp + 0x28], esi
jmp 0x4015e3
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x48]
mov ecx, dword [0x4aa018]
xor eax, eax
mov dword [esp + 0x10], eax
cmp eax, dword [esp + 0x30]
jge 0x4015a2
xor eax, eax
test ecx, ecx
mov dword [esp + 0x14], eax
jle 0x401594
cmp eax, dword [esp + 0x2c]
jge 0x40157b
mov edx, dword [ebp + 8]
mov ecx, dword [esi]
sub esp, 8
mov eax, dword [edx + 0x64]
mov edx, eax
and edx, ecx
mov ecx, edi
shr edx, cl
shr eax, cl
mov dword [esp + 0xb0], edx
xor edx, edx
mov dword [esp + 0xb4], edx
mov dword [esp + 0x90], eax
fild qword [esp + 0xb0]
mov dword [esp + 0x94], edx
fild qword [esp + 0x90]
fdivp st(1)
fmul dword [0x45afdc]
fadd dword [0x45a884]
fstp qword [esp]
call fcn.00447360
add esp, 8
call fcn.00447c50
mov cx, word [esp + 0x3c]
mov ebx, dword [esp + 0x318]
shl eax, 0xc
shr cx, 4
or eax, ecx
mov ecx, dword [0x4aa018]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x14]
jmp 0x401581
shr word [esp + 0x3c], 4
mov edx, dword [esp + 0x24]
inc eax
add esi, edx
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x4014ed
mov eax, dword [esp + 0x28]
mov dx, word [esp + 0x3c]
mov word [eax], dx
jmp 0x4015ab
mov ecx, dword [esp + 0x28]
mov word [ecx], 0
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
add ecx, 2
inc eax
mov dword [esp + 0x28], ecx
mov ecx, dword [0x4aa018]
mov edx, ecx
mov dword [esp + 0x10], eax
imul edx, dword [esp + 0x24]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
sub eax, edx
add esi, eax
mov eax, dword [esp + 0x10]
cmp eax, 4
jl 0x4014d5
mov eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, edi
mov eax, dword [esp + 0x60]
je 0x4017bb
mov esi, dword [esp + 0x38]
sub eax, edi
je 0x4016f5
dec eax
jne 0x401b2d
mov edx, dword [ebp + 8]
mov dword [esp + 0x10], edi
mov ecx, dword [edx + 0x10]
mov dword [esp + 0x18], ecx
xor eax, eax
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x2c]
jge 0x4016b7
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
cmp eax, ecx
jge 0x4016b7
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov cl, byte [esi]
lea eax, [eax + ecx*4]
mov ecx, dword [eax]
and ecx, 0xffffff
cmp ecx, dword [edx + 0x40]
jb 0x401651
cmp ecx, dword [edx + 0x44]
jbe 0x4016b7
mov dword [esp + edi*4 + 0xc0], ebx
inc edi
lea ecx, [ebx + ebx*2]
inc ebx
mov dword [esp + 0x318], ebx
xor ebx, ebx
mov bl, byte [eax]
lea ecx, [esp + ecx*8 + 0x320]
mov dword [esp + 0x1c], ebx
xor ebx, ebx
fild dword [esp + 0x1c]
add ecx, 8
fmul qword [0x45a888]
fstp qword [ecx - 8]
mov bl, byte [eax + 1]
mov dword [esp + 0x1c], ebx
xor ebx, ebx
fild dword [esp + 0x1c]
fmul qword [0x45a888]
fstp qword [ecx]
mov bl, byte [eax + 2]
mov dword [esp + 0x1c], ebx
fild dword [esp + 0x1c]
fmul qword [0x45a888]
fstp qword [ecx + 8]
mov ebx, dword [esp + 0x318]
jmp 0x4016c3
mov dword [esp + edi*4 + 0xc0], 0xffffffff
inc edi
mov eax, dword [esp + 0x14]
inc eax
inc esi
cmp eax, 4
mov dword [esp + 0x14], eax
jl 0x40161b
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
inc eax
cmp eax, 4
mov dword [esp + 0x10], eax
lea esi, [esi + ecx - 4]
jl 0x401615
jmp 0x401b2d
mov edx, dword [ebp + 8]
xor edi, edi
xor eax, eax
mov ecx, dword [edx + 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], ecx
xor edx, edx
cmp edx, dword [esp + 0x2c]
jge 0x401789
cmp eax, dword [esp + 0x30]
jge 0x401789
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov al, byte [esi]
mov dword [esp + edi*4 + 0xc0], ebx
inc edi
lea ecx, [ecx + eax*4]
lea eax, [ebx + ebx*2]
inc ebx
mov dword [esp + 0x318], ebx
xor ebx, ebx
mov bl, byte [ecx]
lea eax, [esp + eax*8 + 0x320]
mov dword [esp + 0x14], ebx
xor ebx, ebx
fild dword [esp + 0x14]
add eax, 8
fmul qword [0x45a888]
fstp qword [eax - 8]
mov bl, byte [ecx + 1]
mov dword [esp + 0x14], ebx
xor ebx, ebx
fild dword [esp + 0x14]
fmul qword [0x45a888]
fstp qword [eax]
mov bl, byte [ecx + 2]
mov dword [esp + 0x14], ebx
fild dword [esp + 0x14]
fmul qword [0x45a888]
fstp qword [eax + 8]
mov ebx, dword [esp + 0x318]
mov eax, dword [esp + 0x10]
jmp 0x401795
mov dword [esp + edi*4 + 0xc0], 0xffffffff
inc edi
inc edx
inc esi
cmp edx, 4
jl 0x401709
mov ecx, dword [esp + 0x18]
inc eax
cmp eax, 4
mov dword [esp + 0x10], eax
lea esi, [esi + ecx - 4]
jl 0x401707
jmp 0x401b2d
mov edx, dword [esp + 0x38]
sub eax, edi
mov dword [esp + 0x20], edx
je 0x401a13
dec eax
je 0x4018ef
dec eax
jne 0x401b2d
mov eax, dword [ebp + 8]
xor edi, edi
xor ecx, ecx
mov edx, dword [eax + 0x10]
mov eax, dword [esp + 0x24]
shl eax, 2
sub edx, eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x20]
xor eax, eax
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x2c]
jge 0x4018aa
cmp ecx, dword [esp + 0x30]
jge 0x4018aa
mov esi, dword [edx]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x64]
and edx, esi
cmp edx, dword [esp + 0x6c]
jbe 0x4018aa
mov ecx, dword [ebp + 8]
mov dword [esp + edi*4 + 0xc0], ebx
inc edi
lea eax, [ebx + ebx*2]
inc ebx
add ecx, 0x58
mov dword [esp + 0x318], ebx
lea edx, [esp + eax*8 + 0x320]
mov ebx, dword [ecx + edi*4]
mov ecx, dword [esp + edi*4 + 0x54]
xor eax, eax
shr ebx, cl
mov dword [esp + 0xbc], eax
mov dword [esp + 0xb8], ebx
fild qword [esp + 0xb8]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x74], 0
add edx, 8
lea ecx, [ecx + eax*4]
mov ebx, dword [esp + ecx + 0x54]
mov ecx, dword [esp + eax*4 + 0x54]
and ebx, esi
shr ebx, cl
inc eax
cmp eax, 3
mov dword [esp + 0x70], ebx
fild qword [esp + 0x70]
fdiv st(1)
fstp qword [edx - 8]
jl 0x401866
mov ebx, dword [esp + 0x318]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
fstp st(0)
jmp 0x4018b6
mov dword [esp + edi*4 + 0xc0], 0xffffffff
inc edi
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
inc eax
add edx, esi
cmp eax, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], edx
jl 0x4017fe
mov esi, dword [esp + 0x14]
inc ecx
add edx, esi
cmp ecx, 4
mov dword [esp + 0x10], ecx
mov dword [esp + 0x20], edx
jl 0x4017f4
jmp 0x401b2d
mov edx, dword [ebp + 8]
mov eax, dword [esp + 0x24]
shl eax, 2
mov ecx, dword [edx + 0x10]
mov dword [esp + 0x1c], edi
sub ecx, eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ecx
or edx, 0xffffffff
mov dword [esp + 0x18], edi
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
cmp eax, ecx
jge 0x4019c2
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x10]
cmp ecx, eax
jge 0x4019c2
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx]
mov ecx, dword [ebp + 8]
mov dword [esp + 0x64], eax
cmp eax, dword [ecx + 0x40]
jb 0x401948
cmp eax, dword [ecx + 0x44]
jbe 0x4019c2
mov eax, dword [esp + 0x1c]
lea edx, [ebx + ebx*2]
mov dword [esp + eax*4 + 0xc0], ebx
inc eax
inc ebx
lea esi, [esp + edx*8 + 0x320]
mov dword [esp + 0x318], ebx
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x1c], eax
xor edx, edx
lea eax, [ebx + edx*4]
mov ecx, dword [esp + edx*4 + 0x54]
add esi, 8
mov eax, dword [esp + eax + 0x54]
mov edi, eax
and edi, dword [esp + 0x64]
shr eax, cl
shr edi, cl
mov dword [esp + 0x78], eax
mov dword [esp + 0xb0], edi
xor edi, edi
mov dword [esp + 0xb4], edi
mov dword [esp + 0x7c], edi
fild qword [esp + 0xb0]
fild qword [esp + 0x78]
inc edx
cmp edx, 3
fdivp st(1)
fstp qword [esi - 8]
jl 0x401970
mov ebx, dword [esp + 0x318]
or edx, 0xffffffff
jmp 0x4019d2
mov eax, dword [esp + 0x1c]
mov dword [esp + eax*4 + 0xc0], edx
inc eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
inc eax
add esi, ecx
cmp eax, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], esi
jl 0x401911
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
inc eax
add esi, ecx
cmp eax, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], esi
jl 0x40190d
jmp 0x401b2d
mov ecx, dword [0x4aa018]
mov edx, dword [ebp + 8]
imul ecx, dword [esp + 0x24]
mov edx, dword [edx + 0x10]
xor eax, eax
sub edx, ecx
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edx
mov esi, dword [0x4aa018]
xor ecx, ecx
test esi, esi
mov dword [esp + 0x18], ecx
jle 0x401b15
cmp ecx, dword [esp + 0x2c]
jge 0x401ae4
cmp edi, dword [esp + 0x30]
jge 0x401ae4
mov ecx, dword [esp + 0x20]
mov dword [esp + eax*4 + 0xc0], ebx
lea edx, [ebx + ebx*2]
inc eax
mov edi, dword [ecx]
inc ebx
lea esi, [esp + edx*8 + 0x320]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x318], ebx
xor edx, edx
mov eax, dword [esp + 0x40]
mov ebx, edi
add esi, 8
lea ecx, [eax + edx*4]
mov eax, dword [esp + ecx + 0x54]
mov ecx, dword [esp + edx*4 + 0x54]
and ebx, eax
shr ebx, cl
shr eax, cl
mov dword [esp + 0x80], ebx
xor ebx, ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x90], eax
fild qword [esp + 0x80]
mov dword [esp + 0x94], ebx
inc edx
fild qword [esp + 0x90]
cmp edx, 3
fdivp st(1)
fstp qword [esi - 8]
jl 0x401a7e
mov ebx, dword [esp + 0x318]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
jmp 0x401af0
mov dword [esp + eax*4 + 0xc0], 0xffffffff
inc eax
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
add esi, edx
mov edx, dword [0x4aa018]
inc ecx
mov dword [esp + 0x20], esi
cmp ecx, edx
mov dword [esp + 0x18], ecx
jl 0x401a44
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x20]
inc edi
add esi, edx
cmp edi, 4
mov dword [esp + 0x10], edi
mov dword [esp + 0x20], esi
jl 0x401a30
mov eax, dword [esp + 0x2c]
xor ecx, ecx
imul eax, dword [esp + 0x30]
cmp ebx, eax
mov esi, 3
setge cl
xor edi, edi
add ecx, esi
cmp ebx, edi
mov dword [esp + 0x7b8], ecx
jne 0x401b6d
lea eax, [esp + 0x7c4]
mov ecx, 2
mov dword [eax + 4], edi
mov dword [eax], edi
mov dword [eax - 4], edi
add eax, 0xc
dec ecx
jne 0x401b5d
jmp 0x401b7d
lea edx, [esp + 0x318]
push edx
call fcn.00402d60
add esp, 4
xor ecx, ecx
lea eax, [esp + 0x7c4]
mov dx, word [eax - 4]
add eax, 0xc
shl dx, 6
or dx, word [eax - 0xc]
shl edx, 5
or dx, word [eax - 8]
inc ecx
cmp ecx, 2
mov word [esp + ecx*2 + 0x32], dx
jl 0x401b86
mov dx, word [esp + 0x34]
mov cx, word [esp + 0x36]
cmp cx, dx
jne 0x401be7
mov ebx, dword [esp + 0x318]
inc cx
xor eax, eax
cmp ebx, edi
mov word [esp + 0x36], cx
jle 0x401bdd
mov dword [esp + eax*4 + 0x7d8], edi
mov ebx, dword [esp + 0x318]
inc eax
cmp eax, ebx
jl 0x401bca
mov dword [esp + 0x7bc], esi
cmp cx, dx
mov ebx, dword [esp + 0x7bc]
sbb eax, eax
xor edx, edx
neg eax
cmp ebx, esi
sete dl
cmp eax, edx
jne 0x401c15
mov eax, dword [esp + 0x34]
mov word [esp + 0x34], cx
mov word [esp + 0x36], ax
mov dword [esp + 0x18], 1
jmp 0x401c19
mov dword [esp + 0x18], edi
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x34]
xor ebx, ebx
mov dword [esi], eax
mov eax, dword [0x4aa018]
cdq
and edx, 3
add esi, 4
add eax, edx
mov dword [esp + 0x28], esi
sar eax, 2
test eax, eax
jle 0x401cb7
lea ecx, [esp + 0xfc]
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x14]
xor eax, eax
mov edi, 0x10
mov ecx, dword [edx]
shl eax, 2
test ecx, ecx
jge 0x401c61
or al, 3
jmp 0x401c8a
or eax, dword [esp + ecx*4 + 0x7d8]
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x401c8a
cmp dword [esp + 0x7bc], 4
jne 0x401c7f
xor eax, 1
jmp 0x401c8a
mov ecx, eax
not ecx
shr ecx, 1
and ecx, 1
xor eax, ecx
sub edx, 4
dec edi
jne 0x401c54
mov edx, dword [esp + 0x14]
mov dword [esi], eax
mov eax, dword [0x4aa018]
add edx, 0x40
mov dword [esp + 0x14], edx
add esi, 4
cdq
and edx, 3
inc ebx
add eax, edx
sar eax, 2
cmp ebx, eax
jl 0x401c49
mov dword [esp + 0x28], esi
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x50]
add ecx, 4
lea eax, [edx*4]
mov edx, dword [esp + 0x38]
add edx, eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x38], edx
mov dword [esp + 0x50], ecx
mov edx, dword [eax + 0xc]
cmp ecx, edx
jl 0x401148
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x44]
mov esi, dword [esp + 0x4c]
add ecx, 4
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 8]
cmp ecx, eax
mov dword [esp + 0x44], ecx
lea edx, [esi + edx*4]
mov dword [esp + 0x4c], edx
jl 0x401109
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret