Function at 0x4098e0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
push ebx
push esi
push edi
lea esp, [esp]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
mov edx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov dword [esp + 0xc], ecx
mov ecx, dword [edx + 4]
mov ecx, dword [ecx]
mov edx, dword [ecx + 0x10]
mov eax, dword [edx + 8]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
jmp case.default.0x409972
fstp st(0)
mov ecx, dword [esp + 0xc]
mov ebx, dword [ebp + 8]
mov edi, dword [ecx]
mov al, byte [ebx + 0x38]
add ecx, 4
test al, 0xc
mov dword [esp + 0xc], ecx
je 0x409950
dec dword [ebx + 0x40]
je 0x409937
test al, 4
je 0x409950
push ecx
mov esi, ebx
call fcn.00408d60
mov al, byte [ebx + 6]
add esp, 4
cmp al, 1
je 0x40a94b
mov esi, dword [ebx + 0xc]
mov eax, edi
shr eax, 6
and eax, 0xff
mov ecx, edi
mov dword [esp + 0x18], eax
shl eax, 4
and ecx, 0x3f
cmp ecx, 0x25
mov dword [esp + 0x20], eax
lea ebx, [eax + esi]
ja case.default.0x409972
jmp dword [ecx*4 + 0x40a95c]
shr edi, 0x17
shl edi, 4
add edi, esi
jmp 0x40998f
mov eax, dword [esp + 0x10]
shr edi, 0xe
shl edi, 4
add edi, eax
mov ecx, dword [edi]
mov dword [ebx], ecx
mov edx, dword [edi + 4]
mov dword [ebx + 4], edx
mov eax, dword [edi + 8]
mov dword [ebx + 8], eax
jmp case.default.0x409972
mov ecx, edi
shr ecx, 0x17
test edi, 0x7fc000
mov dword [ebx], ecx
mov dword [ebx + 8], 1
je case.default.0x409972
add dword [esp + 0xc], 4
jmp case.default.0x409972
shr edi, 0x17
shl edi, 4
add edi, esi
xor eax, eax
mov dword [edi + 8], eax
sub edi, 0x10
cmp edi, ebx
jae 0x4099d2
jmp case.default.0x409972
mov edx, dword [esp + 0x14]
shr edi, 0x17
mov eax, dword [edx + edi*4 + 0x14]
mov eax, dword [eax + 8]
mov ecx, dword [eax]
mov dword [ebx], ecx
mov edx, dword [eax + 4]
mov dword [ebx + 4], edx
mov eax, dword [eax + 8]
mov dword [ebx + 8], eax
jmp case.default.0x409972
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0xc]
mov eax, dword [esp + 0xc]
mov esi, dword [ebp + 8]
shr edi, 0xe
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x10]
push ebx
shl edi, 4
add edi, eax
push edi
lea ecx, [esp + 0x40]
push ecx
push esi
mov dword [esp + 0x48], edx
mov dword [esp + 0x50], 5
call fcn.00408f40
mov esi, dword [esi + 0xc]
add esp, 0x10
jmp case.default.0x409972
mov eax, dword [ebp + 8]
mov edx, dword [esp + 0xc]
mov dword [eax + 0x18], edx
mov eax, edi
shr eax, 0xe
test ah, 1
je 0x409a69
mov ecx, dword [esp + 0x10]
and eax, 0xff
shl eax, 4
add eax, ecx
jmp 0x409a73
and eax, 0x1ff
shl eax, 4
add eax, esi
mov ecx, dword [ebp + 8]
shr edi, 0x17
push ebx
push eax
shl edi, 4
add edi, esi
push edi
push ecx
call fcn.00408f40
mov edx, dword [ebp + 8]
mov esi, dword [edx + 0xc]
add esp, 0x10
jmp case.default.0x409972
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
mov esi, dword [ebp + 8]
mov edx, dword [esp + 0xc]
shr edi, 0xe
push ebx
shl edi, 4
add edi, eax
push edi
lea eax, [esp + 0x50]
push eax
push esi
mov dword [esp + 0x58], ecx
mov dword [esp + 0x60], 5
mov dword [esi + 0x18], edx
call fcn.00409030
mov esi, dword [esi + 0xc]
add esp, 0x10
jmp case.default.0x409972
mov ecx, dword [esp + 0x14]
mov edx, dword [ebx]
shr edi, 0x17
mov edi, dword [ecx + edi*4 + 0x14]
mov eax, dword [edi + 8]
mov dword [eax], edx
mov ecx, dword [ebx + 4]
mov dword [eax + 4], ecx
mov edx, dword [ebx + 8]
mov dword [eax + 8], edx
cmp dword [ebx + 8], 4
jl case.default.0x409972
mov ebx, dword [ebx]
test byte [ebx + 5], 3
je case.default.0x409972
test byte [edi + 5], 4
je case.default.0x409972
mov eax, dword [ebp + 8]
push ebx
push edi
push eax
call fcn.00407a70
add esp, 0xc
jmp case.default.0x409972
mov ecx, dword [esp + 0xc]
mov edx, dword [ebp + 8]
mov eax, edi
shr eax, 0xe
test ah, 1
mov dword [edx + 0x18], ecx
je 0x409b4b
mov ecx, dword [esp + 0x10]
and eax, 0xff
shl eax, 4
add eax, ecx
jmp 0x409b55
and eax, 0x1ff
shl eax, 4
add eax, esi
shr edi, 0x17
test edi, 0x100
je 0x409b71
mov ecx, dword [esp + 0x10]
and edi, 0xff
shl edi, 4
add edi, ecx
jmp 0x409b76
shl edi, 4
add edi, esi
mov esi, dword [ebp + 8]
push eax
push edi
push ebx
push esi
call fcn.00409030
mov esi, dword [esi + 0xc]
add esp, 0x10
jmp case.default.0x409972
mov eax, edi
shr eax, 0xe
and eax, 0x1ff
push eax
call fcn.00405770
add esp, 4
push eax
shr edi, 0x17
push edi
call fcn.00405770
mov esi, dword [ebp + 8]
add esp, 4
push eax
push esi
call fcn.0040af40
mov ecx, dword [esp + 0x18]
mov dword [ebx], eax
mov dword [ebx + 8], 5
mov eax, dword [esi + 0x10]
mov dword [esi + 0x18], ecx
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x40]
add esp, 0xc
cmp edx, ecx
jb 0x409be0
push esi
call fcn.00407960
add esp, 4
mov esi, dword [esi + 0xc]
jmp case.default.0x409972
mov eax, edi
shr eax, 0x17
shl eax, 4
mov ecx, dword [eax + esi]
add eax, esi
mov dword [ebx + 0x10], ecx
mov edx, dword [eax + 4]
mov dword [ebx + 0x14], edx
mov ecx, dword [eax + 8]
mov edx, dword [esp + 0xc]
mov dword [ebx + 0x18], ecx
mov ecx, dword [ebp + 8]
shr edi, 0xe
test edi, 0x100
mov dword [ecx + 0x18], edx
je 0x409c2a
mov ecx, dword [esp + 0x10]
and edi, 0xff
shl edi, 4
add edi, ecx
jmp 0x409c35
and edi, 0x1ff
shl edi, 4
add edi, esi
mov esi, dword [ebp + 8]
push ebx
push edi
push eax
push esi
call fcn.00408f40
mov esi, dword [esi + 0xc]
add esp, 0x10
jmp case.default.0x409972
mov eax, edi
shr eax, 0x17
test ah, 1
je 0x409c66
mov ecx, dword [esp + 0x10]
and eax, 0xff
shl eax, 4
add eax, ecx
jmp 0x409c6b
shl eax, 4
add eax, esi
shr edi, 0xe
test edi, 0x100
mov ecx, eax
je 0x409c89
mov eax, dword [esp + 0x10]
and edi, 0xff
shl edi, 4
add edi, eax
jmp 0x409c94
and edi, 0x1ff
shl edi, 4
add edi, esi
mov eax, edi
mov edi, dword [ecx + 8]
mov edx, 3
cmp edi, edx
jne 0x409cb5
cmp dword [eax + 8], edx
jne 0x409cb5
fld qword [eax]
fadd qword [ecx]
mov dword [ebx + 8], edx
fstp qword [ebx]
jmp case.default.0x409972
push 5
mov edx, dword [ebp + 8]
mov esi, dword [esp + 0x10]
mov dword [edx + 0x18], esi
push edx
mov esi, ecx
mov edi, ebx
call fcn.00409700
mov edx, dword [ebp + 8]
mov esi, dword [edx + 0xc]
add esp, 8
jmp case.default.0x409972
mov eax, edi
shr eax, 0x17
test ah, 1
je 0x409cf3
mov ecx, dword [esp + 0x10]
and eax, 0xff
shl eax, 4
add eax, ecx
jmp 0x409cf8
shl eax, 4
add eax, esi
shr edi, 0xe
test edi, 0x100
mov ecx, eax
je 0x409d16
mov eax, dword [esp + 0x10]
and edi, 0xff
shl edi, 4
add edi, eax
jmp 0x409d21
and edi, 0x1ff
shl edi, 4
add edi, esi
mov eax, edi
mov edi, dword [ecx + 8]
mov edx, 3
cmp edi, edx
jne 0x409d42
cmp dword [eax + 8], edx
jne 0x409d42
fld qword [ecx]
fsub qword [eax]
mov dword [ebx + 8], edx
fstp qword [ebx]
jmp case.default.0x409972
push 6
mov esi, dword [esp + 0x10]
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], esi
push edx
mov esi, ecx
mov edi, ebx
call fcn.00409700
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0xc]
add esp, 8
jmp case.default.0x409972
mov eax, edi
shr eax, 0x17
test ah, 1
je 0x409d80
mov ecx, dword [esp + 0x10]
and eax, 0xff
shl eax, 4
add eax, ecx
jmp 0x409d85
shl eax, 4
add eax, esi
shr edi, 0xe
test edi, 0x100
mov ecx, eax
je 0x409da3
mov eax, dword [esp + 0x10]
and edi, 0xff
shl edi, 4
add edi, eax
jmp 0x409dae
and edi, 0x1ff
shl edi, 4
add edi, esi
mov eax, edi
mov edi, dword [ecx + 8]
mov edx, 3
cmp edi, edx
jne 0x409dcf
cmp dword [eax + 8], edx
jne 0x409dcf
fld qword [eax]
fmul qword [ecx]
mov dword [ebx + 8], edx
fstp qword [ebx]
jmp case.default.0x409972
push 7
mov edx, dword [ebp + 8]
mov esi, dword [esp + 0x10]
mov dword [edx + 0x18], esi
push edx
mov esi, ecx
mov edi, ebx
call fcn.00409700
mov ecx, dword [ebp + 8]
mov esi, dword [ecx + 0xc]
add esp, 8
jmp case.default.0x409972
mov eax, edi
shr eax, 0x17
test ah, 1
je 0x409e0d
mov ecx, dword [esp + 0x10]
and eax, 0xff
shl eax, 4
add eax, ecx
jmp 0x409e12
shl eax, 4
add eax, esi
shr edi, 0xe
test edi, 0x100
mov ecx, eax
je 0x409e30
mov eax, dword [esp + 0x10]
and edi, 0xff
shl edi, 4
add edi, eax
jmp 0x409e3b
and edi, 0x1ff
shl edi, 4
add edi, esi
mov eax, edi
mov edi, dword [ecx + 8]
mov edx, 3
cmp edi, edx
jne 0x409e5c
cmp dword [eax + 8], edx
jne 0x409e5c
fld qword [ecx]
fdiv qword [eax]
mov dword [ebx + 8], edx
fstp qword [ebx]
jmp case.default.0x409972
push 8
jmp 0x409cb7
mov eax, edi
shr eax, 0x17
test ah, 1
je 0x409e7d
mov ecx, dword [esp + 0x10]
and eax, 0xff
shl eax, 4
add eax, ecx
jmp 0x409e82
shl eax, 4
add eax, esi
shr edi, 0xe
test edi, 0x100
mov ecx, eax
je 0x409ea0
mov eax, dword [esp + 0x10]
and edi, 0xff
shl edi, 4
add edi, eax
jmp 0x409eab
and edi, 0x1ff
shl edi, 4
add edi, esi
mov edx, dword [ecx + 8]
mov eax, edi
mov edi, 3
cmp edx, edi
jne 0x409ef2
cmp dword [eax + 8], edi
jne 0x409ef2
fld qword [ecx]
sub esp, 8
fstp qword [esp + 0x28]
fld qword [eax]
fstp qword [esp + 0x30]
fld qword [esp + 0x28]
fdiv qword [esp + 0x30]
fstp qword [esp]
call fcn.00426200
fmul qword [esp + 0x30]
add esp, 8
mov dword [ebx + 8], edi
fsubr qword [esp + 0x20]
fstp qword [ebx]
jmp case.default.0x409972
push 9
jmp 0x409d44
mov eax, edi
shr eax, 0x17
test ah, 1
je 0x409f13
mov ecx, dword [esp + 0x10]
and eax, 0xff
shl eax, 4
add eax, ecx
jmp 0x409f18
shl eax, 4
add eax, esi
shr edi, 0xe
test edi, 0x100
mov ecx, eax
je 0x409f36
mov eax, dword [esp + 0x10]
and edi, 0xff
shl edi, 4
add edi, eax
jmp 0x409f41
and edi, 0x1ff
shl edi, 4
add edi, esi
mov edx, dword [ecx + 8]
mov eax, edi
mov edi, 3
cmp edx, edi
jne 0x409f67
cmp dword [eax + 8], edi
jne 0x409f67
fld qword [ecx]
fld qword [eax]
call fcn.00426370
fstp qword [ebx]
mov dword [ebx + 8], edi
jmp case.default.0x409972
push 0xa
jmp 0x409dd1
shr edi, 0x17
shl edi, 4
mov ecx, dword [edi + esi + 8]
add edi, esi
mov eax, 3
cmp ecx, eax
jne 0x409f91
fld qword [edi]
mov dword [ebx + 8], eax
fchs
fstp qword [ebx]
jmp case.default.0x409972
mov eax, dword [ebp + 8]
mov edx, dword [esp + 0xc]
push 0xb
mov dword [eax + 0x18], edx
push eax
mov eax, edi
mov esi, edi
jmp 0x409d51
shr edi, 0x17
shl edi, 4
mov eax, dword [edi + esi + 8]
add edi, esi
test eax, eax
je 0x409fd1
cmp eax, 1
jne 0x409fc1
cmp dword [edi], 0
je 0x409fd1
xor eax, eax
mov dword [ebx], eax
mov dword [ebx + 8], 1
jmp case.default.0x409972
mov eax, 1
mov dword [ebx], eax
mov dword [ebx + 8], eax
jmp case.default.0x409972
shr edi, 0x17
shl edi, 4
mov eax, dword [edi + esi + 8]
add edi, esi
sub eax, 4
je 0x40a07f
dec eax
je 0x40a05e
mov esi, dword [ebp + 8]
mov ecx, dword [esp + 0xc]
push 0xc
push edi
push esi
mov dword [esi + 0x18], ecx
call fcn.00408c30
mov ecx, dword [eax + 8]
add esp, 0xc
test ecx, ecx
jne 0x40a02c
push 0xc
push 0x449f98
push esi
call fcn.00408c30
mov ecx, dword [eax + 8]
add esp, 0xc
test ecx, ecx
je 0x40a047
push eax
push esi
mov ecx, 0x449f98
mov edx, edi
mov eax, ebx
call fcn.00408df0
mov esi, dword [esi + 0xc]
add esp, 8
jmp case.default.0x409972
push 0x44a48c
push edi
push esi
call fcn.00408a40
mov esi, dword [esi + 0xc]
add esp, 0xc
jmp case.default.0x409972
mov edx, dword [edi]
push edx
call fcn.0040b2f0
mov dword [esp + 0x24], eax
fild dword [esp + 0x24]
add esp, 4
mov dword [ebx + 8], 3
fstp qword [ebx]
jmp case.default.0x409972
mov eax, dword [edi]
mov ecx, dword [eax + 0xc]
fild dword [eax + 0xc]
test ecx, ecx
jge 0x40a091
fadd qword [0x44a0a8]
fstp qword [ebx]
mov dword [ebx + 8], 3
jmp case.default.0x409972
mov esi, dword [ebp + 8]
mov edx, dword [esp + 0xc]
mov ebx, edi
shr edi, 0xe
and edi, 0x1ff
push edi
shr ebx, 0x17
sub edi, ebx
inc edi
push edi
push esi
mov dword [esi + 0x18], edx
call fcn.004094f0
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 0x44]
mov edx, dword [eax + 0x40]
add esp, 0xc
cmp ecx, edx
jb 0x40a0db
push esi
call fcn.00407960
add esp, 4
mov esi, dword [esi + 0xc]
mov eax, dword [esp + 0x20]
shl ebx, 4
mov edx, dword [ebx + esi]
add ebx, esi
mov dword [eax + esi], edx
mov ecx, dword [ebx + 4]
mov dword [eax + esi + 4], ecx
mov edx, dword [ebx + 8]
mov dword [eax + esi + 8], edx
jmp case.default.0x409972
mov eax, dword [esp + 0xc]
shr edi, 0xe
lea ecx, [eax + edi*4 - 0x7fffc]
mov dword [esp + 0xc], ecx
jmp case.default.0x409972
mov eax, edi
shr eax, 0x17
test ah, 1
je 0x40a131
mov ecx, dword [esp + 0x10]
and eax, 0xff
shl eax, 4
add eax, ecx
jmp 0x40a136
shl eax, 4
add eax, esi
shr edi, 0xe
test edi, 0x100
je 0x40a152
mov ecx, dword [esp + 0x10]
and edi, 0xff
shl edi, 4
add edi, ecx
jmp 0x40a15d
and edi, 0x1ff
shl edi, 4
add edi, esi
mov ebx, dword [esp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esi + 0x18], ebx
mov edx, dword [eax + 8]
cmp edx, dword [edi + 8]
jne 0x40a185
push edi
push eax
push esi
call fcn.00409410
add esp, 0xc
test eax, eax
je 0x40a185
mov eax, 1
jmp 0x40a187
xor eax, eax
cmp eax, dword [esp + 0x18]
jne 0x40a199
mov eax, dword [ebx]
shr eax, 0xe
lea ebx, [ebx + eax*4 - 0x7fffc]
mov esi, dword [esi + 0xc]
add ebx, 4
mov dword [esp + 0xc], ebx
jmp case.default.0x409972
mov ebx, dword [ebp + 8]
mov ecx, dword [esp + 0xc]
mov eax, edi
shr eax, 0xe
test ah, 1
mov dword [ebx + 0x18], ecx
je 0x40a1cc
mov ecx, dword [esp + 0x10]
and eax, 0xff
shl eax, 4
add eax, ecx
jmp 0x40a1d6
and eax, 0x1ff
shl eax, 4
add eax, esi
shr edi, 0x17
test edi, 0x100
je 0x40a1f2
mov ecx, dword [esp + 0x10]
and edi, 0xff
shl edi, 4
add edi, ecx
jmp 0x40a1f7
shl edi, 4
add edi, esi
push eax
push edi
push ebx
call fcn.004092e0
mov ecx, dword [esp + 0x24]
add esp, 0xc
cmp eax, ecx
jne 0x40a21e
mov eax, dword [esp + 0xc]
mov edx, dword [eax]
shr edx, 0xe
lea eax, [eax + edx*4 - 0x7fffc]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
mov esi, dword [ebx + 0xc]
add eax, 4
mov dword [esp + 0xc], eax
jmp case.default.0x409972
mov ecx, dword [esp + 0xc]
mov edx, dword [ebp + 8]
mov eax, edi
shr eax, 0xe
test ah, 1
mov dword [edx + 0x18], ecx
je 0x40a255
mov ecx, dword [esp + 0x10]
and eax, 0xff
shl eax, 4
add eax, ecx
jmp 0x40a25f
and eax, 0x1ff
shl eax, 4
add eax, esi
shr edi, 0x17
test edi, 0x100
je 0x40a27b
mov ecx, dword [esp + 0x10]
and edi, 0xff
shl edi, 4
add edi, ecx
jmp 0x40a280
shl edi, 4
add edi, esi
mov ebx, dword [ebp + 8]
push ebx
mov esi, eax
call fcn.00409370
mov ecx, dword [esp + 0x1c]
add esp, 4
cmp eax, ecx
jne 0x40a2aa
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
shr ecx, 0xe
lea edx, [eax + ecx*4 - 0x7fffc]
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0xc]
mov esi, dword [ebx + 0xc]
add eax, 4
mov dword [esp + 0xc], eax
jmp case.default.0x409972
mov eax, dword [ebx + 8]
test eax, eax
je 0x40a2d2
cmp eax, 1
jne 0x40a2ce
cmp dword [ebx], 0
je 0x40a2d2
xor eax, eax
jmp 0x40a2d7
mov eax, 1
shr edi, 0xe
and edi, 0x1ff
cmp eax, edi
je 0x40a2f8
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
shr ecx, 0xe
lea edx, [eax + ecx*4 - 0x7fffc]
mov dword [esp + 0xc], edx
add dword [esp + 0xc], 4
jmp case.default.0x409972
mov eax, edi
shr eax, 0x17
shl eax, 4
mov ecx, dword [eax + esi + 8]
add eax, esi
test ecx, ecx
je 0x40a322
cmp ecx, 1
jne 0x40a31e
cmp dword [eax], 0
je 0x40a322
xor ecx, ecx
jmp 0x40a327
mov ecx, 1
shr edi, 0xe
and edi, 0x1ff
cmp ecx, edi
je 0x40a2f8
mov ecx, dword [eax]
mov dword [ebx], ecx
mov edx, dword [eax + 4]
mov dword [ebx + 4], edx
mov eax, dword [eax + 8]
mov dword [ebx + 8], eax
jmp 0x40a2e4
mov esi, dword [ebp + 8]
mov eax, edi
shr edi, 0xe
and edi, 0x1ff
shr eax, 0x17
dec edi
test eax, eax
je 0x40a364
shl eax, 4
add eax, ebx
mov dword [esi + 8], eax
mov eax, dword [esp + 0xc]
push edi
push ebx
push esi
mov dword [esi + 0x18], eax
call fcn.00406650
add esp, 0xc
sub eax, 0
je 0x40a843
dec eax
jne 0x40a955
test edi, edi
jl 0x40a393
mov ecx, dword [esi + 0x14]
mov edx, dword [ecx + 8]
mov dword [esi + 8], edx
mov esi, dword [esi + 0xc]
jmp case.default.0x409972
mov esi, dword [ebp + 8]
shr edi, 0x17
test edi, edi
je 0x40a3ad
shl edi, 4
add edi, ebx
mov dword [esi + 8], edi
mov eax, dword [esp + 0xc]
push 0xffffffffffffffff
push ebx
push esi
mov dword [esi + 0x18], eax
call fcn.00406650
add esp, 0xc
sub eax, 0
je 0x40a84b
dec eax
jne 0x40a955
mov esi, dword [esi + 0xc]
jmp case.default.0x409972
fld qword [ebx + 0x20]
fst qword [esp + 0x28]
fadd qword [ebx]
fld qword [ebx + 0x10]
fld qword [0x449da8]
fcomp qword [esp + 0x28]
fnstsw ax
test ah, 5
jp 0x40a407
fld st(1)
fcomp st(1)
fnstsw ax
fstp st(0)
test ah, 0x41
jnp 0x40a414
jmp 0x409915
fcomp st(1)
fnstsw ax
test ah, 0x41
jp 0x409915
mov ecx, dword [esp + 0xc]
fst qword [ebx]
shr edi, 0xe
mov eax, 3
lea edx, [ecx + edi*4 - 0x7fffc]
mov dword [ebx + 8], eax
fstp qword [ebx + 0x30]
mov dword [esp + 0xc], edx
mov dword [ebx + 0x38], eax
jmp case.default.0x409972
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0xc]
lea eax, [ebx + 0x20]
mov dword [esp + 0x18], eax
mov dword [ecx + 0x18], edx
mov eax, dword [ebx + 8]
cmp eax, 3
je 0x40a47d
cmp eax, 4
jne 0x40a49f
mov ecx, dword [ebx]
lea eax, [esp + 0x30]
push eax
add ecx, 0x10
push ecx
call fcn.00405810
add esp, 8
test eax, eax
je 0x40a49f
fld qword [esp + 0x30]
mov dword [ebx + 8], 3
fstp qword [ebx]
cmp dword [ebx + 0x18], 3
je 0x40a4a6
lea eax, [ebx + 0x10]
push eax
push eax
call fcn.00408c90
add esp, 8
test eax, eax
jne 0x40a4a6
mov eax, dword [ebp + 8]
push 0x44a46c
push eax
jmp 0x40a4cd
push 0x44a444
jmp 0x40a4c9
mov ecx, dword [esp + 0x18]
cmp dword [ecx + 8], 3
je 0x40a4d5
mov eax, ecx
push eax
push eax
call fcn.00408c90
add esp, 8
test eax, eax
mov dword [esp + 0x18], eax
jne 0x40a4d5
push 0x44a428
mov edx, dword [ebp + 8]
push edx
call fcn.00408810
add esp, 8
fld qword [ebx]
mov eax, dword [esp + 0x18]
fsub qword [eax]
mov ecx, dword [esp + 0xc]
shr edi, 0xe
lea edx, [ecx + edi*4 - 0x7fffc]
fstp qword [ebx]
mov dword [ebx + 8], 3
mov dword [esp + 0xc], edx
jmp case.default.0x409972
mov ecx, dword [ebx + 0x20]
mov dword [ebx + 0x50], ecx
mov edx, dword [ebx + 0x24]
lea eax, [ebx + 0x30]
mov dword [eax + 0x24], edx
mov ecx, dword [ebx + 0x28]
mov dword [eax + 0x28], ecx
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x10], edx
mov ecx, dword [ebx + 0x14]
mov dword [eax + 0x14], ecx
mov edx, dword [ebx + 0x18]
mov dword [eax + 0x18], edx
mov ecx, dword [ebx]
mov dword [eax], ecx
mov edx, dword [ebx + 4]
mov dword [eax + 4], edx
mov ecx, dword [ebx + 8]
mov ebx, dword [ebp + 8]
shr edi, 0xe
and edi, 0x1ff
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0xc]
push edi
push eax
lea edx, [eax + 0x30]
push ebx
mov dword [ebx + 8], edx
mov dword [ebx + 0x18], ecx
call fcn.00406830
mov edx, dword [ebx + 0x14]
mov eax, dword [edx + 8]
mov esi, dword [ebx + 0xc]
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x24]
add eax, 3
shl eax, 4
mov ecx, dword [eax + esi + 8]
add eax, esi
add esp, 0xc
test ecx, ecx
je 0x40a2f8
mov ecx, dword [eax]
mov dword [eax - 0x10], ecx
mov edx, dword [eax + 4]
mov dword [eax - 0xc], edx
mov ecx, dword [eax + 8]
mov dword [eax - 8], ecx
mov eax, dword [esp + 0xc]
mov edx, dword [eax]
shr edx, 0xe
lea eax, [eax + edx*4 - 0x7fffc]
mov dword [esp + 0xc], eax
add eax, 4
mov dword [esp + 0xc], eax
jmp case.default.0x409972
mov eax, edi
shr edi, 0xe
shr eax, 0x17
and edi, 0x1ff
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x40a5dc
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0x14]
mov edx, dword [edx + 8]
sub eax, ebx
sar eax, 4
dec eax
mov dword [esp + 0x1c], eax
mov dword [ecx + 8], edx
test edi, edi
jne 0x40a5ed
mov ecx, dword [esp + 0xc]
mov edi, dword [ecx]
add ecx, 4
mov dword [esp + 0xc], ecx
cmp dword [ebx + 8], 5
jne case.default.0x409972
mov edx, dword [ebx]
imul edi, edi, 0x32
lea ecx, [edi + eax - 0x32]
cmp ecx, dword [edx + 0x1c]
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], ecx
jle 0x40a623
mov eax, ecx
push eax
mov ecx, edx
mov edx, dword [ebp + 8]
push ecx
push edx
call fcn.0040b540
mov eax, dword [esp + 0x28]
add esp, 0xc
test eax, eax
jle case.default.0x409972
mov edi, eax
shl edi, 4
add edi, ebx
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x1c], eax
lea ebx, [ebx]
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp + 8]
push ebx
push eax
push ecx
call fcn.0040b1f0
mov edx, dword [edi]
mov dword [eax], edx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov edx, dword [edi + 8]
add esp, 0xc
mov dword [eax + 8], edx
mov eax, dword [edi + 8]
dec ebx
cmp eax, 4
jl 0x40a68c
mov eax, dword [edi]
test byte [eax + 5], 3
je 0x40a68c
mov ecx, dword [esp + 0x18]
test byte [ecx + 5], 4
je 0x40a68c
mov eax, dword [ebp + 8]
mov edx, ecx
push edx
push eax
call fcn.00407ab0
add esp, 8
mov eax, dword [esp + 0x1c]
sub edi, 0x10
dec eax
mov dword [esp + 0x1c], eax
jne 0x40a640
jmp case.default.0x409972
mov ecx, dword [ebp + 8]
push ebx
push ecx
call fcn.0040bc40
add esp, 8
jmp case.default.0x409972
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 0x10]
mov ecx, dword [edx + 0x10]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp + 8]
shr edi, 0xe
mov edi, dword [ecx + edi*4]
mov dword [esp + 0x20], edi
movzx edi, byte [edi + 0x48]
push edx
push edi
push eax
call fcn.0040bad0
mov ecx, dword [esp + 0x2c]
add esp, 0xc
test edi, edi
mov dword [esp + 0x1c], eax
mov dword [eax + 0x10], ecx
jle 0x40a74e
mov edx, eax
add edx, 0x14
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0xc]
mov dword [esp + 0x18], edx
lea ebx, [ebx]
mov eax, dword [edi]
mov ecx, eax
and cl, 0x3f
shr eax, 0x17
cmp cl, 4
jne 0x40a719
mov edx, dword [esp + 0x14]
mov eax, dword [edx + eax*4 + 0x14]
jmp 0x40a72b
mov edx, dword [ebp + 8]
shl eax, 4
add eax, esi
push eax
push edx
call fcn.0040bb70
add esp, 8
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
mov eax, dword [esp + 0x20]
mov edx, ecx
add edx, 4
add edi, 4
dec eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], eax
jne 0x40a700
mov dword [esp + 0xc], edi
jmp 0x40a752
mov edi, dword [esp + 0xc]
mov edx, dword [esp + 0x1c]
mov esi, dword [ebp + 8]
mov dword [ebx], edx
mov dword [ebx + 8], 6
mov eax, dword [esi + 0x10]
mov dword [esi + 0x18], edi
mov ecx, dword [eax + 0x44]
cmp ecx, dword [eax + 0x40]
jmp 0x409bd5
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14]
shr edi, 0x17
dec edi
mov dword [esp + 0x18], edi
mov edi, dword [edx]
sub edi, dword [edx + 4]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x14]
mov edx, dword [edx + 0x10]
movzx edx, byte [edx + 0x49]
sar edi, 4
sub edi, edx
mov edx, dword [esp + 0x18]
dec edi
cmp edx, 0xffffffff
jne 0x40a7e6
mov edx, dword [esp + 0xc]
mov esi, dword [ecx + 0x1c]
mov ebx, dword [ecx + 8]
mov dword [ecx + 0x18], edx
mov edx, edi
shl edx, 4
sub esi, ebx
cmp esi, edx
mov dword [esp + 0x1c], edx
jg 0x40a7d7
mov eax, ecx
push edi
push eax
call fcn.00405fb0
mov eax, dword [esp + 0x28]
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x24]
add esp, 8
mov esi, dword [ecx + 0xc]
lea ebx, [eax + esi]
add edx, ebx
mov dword [esp + 0x18], edi
mov dword [ecx + 8], edx
mov ecx, dword [esp + 0x18]
xor eax, eax
test ecx, ecx
mov dword [esp + 0x20], eax
jle case.default.0x409972
mov ecx, edi
neg ecx
shl ecx, 4
add ebx, 8
cmp eax, edi
jge 0x40a825
mov edx, dword [esp + 0x28]
mov eax, dword [edx]
mov edx, dword [eax + ecx]
add eax, ecx
mov dword [ebx - 8], edx
mov edx, dword [eax + 4]
mov dword [ebx - 4], edx
mov eax, dword [eax + 8]
mov dword [ebx], eax
mov eax, dword [esp + 0x20]
jmp 0x40a82b
mov dword [ebx], 0
mov edx, dword [esp + 0x18]
inc eax
add ecx, 0x10
add ebx, 0x10
cmp eax, edx
mov dword [esp + 0x20], eax
jl 0x40a802
jmp case.default.0x409972
inc dword [ebp + 0xc]
jmp 0x4098f0
mov edi, dword [esi + 0x14]
mov eax, dword [esi + 0x68]
mov ecx, dword [edi - 0x14]
mov ebx, dword [edi + 4]
sub edi, 0x18
test eax, eax
mov dword [esp + 0x20], ecx
je 0x40a86e
mov edx, dword [edi]
push edx
push esi
call fcn.0040bc40
add esp, 8
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 4]
sub eax, ebx
sar eax, 4
shl eax, 4
add eax, ecx
mov dword [edi], eax
mov dword [esi + 0xc], eax
cmp ebx, dword [esi + 8]
mov dword [esp + 0x18], 0
jae 0x40a8c8
mov edx, dword [esp + 0x20]
mov ecx, ebx
mov eax, ebx
sub edx, ebx
lea ebx, [ebx]
mov ebx, dword [ecx]
mov dword [edx + eax], ebx
mov ebx, dword [ecx + 4]
mov dword [edx + eax + 4], ebx
mov ebx, dword [esp + 0x18]
mov ecx, dword [ecx + 8]
inc ebx
mov dword [edx + eax + 8], ecx
mov dword [esp + 0x18], ebx
mov ebx, dword [esi + 8]
add eax, 0x10
cmp eax, ebx
mov ecx, eax
jb 0x40a8a0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
shl eax, 4
add eax, edx
mov dword [esi + 8], eax
mov ecx, dword [edi + 0x14]
mov dword [edi + 8], eax
mov eax, dword [esi + 0x18]
inc ecx
mov dword [edi + 0xc], eax
mov dword [edi + 0x14], ecx
add dword [esi + 0x14], 0xffffffe8
jmp 0x4098f0
shr edi, 0x17
test edi, edi
je 0x40a907
shl edi, 4
lea ecx, [edi + ebx - 0x10]
mov edi, dword [ebp + 8]
mov dword [edi + 8], ecx
jmp 0x40a90a
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x68]
test eax, eax
je 0x40a91b
push esi
push edi
call fcn.0040bc40
add esp, 8
mov edx, dword [esp + 0xc]
push ebx
push edi
mov dword [edi + 0x18], edx
call fcn.00406330
mov ecx, dword [ebp + 0xc]
add esp, 8
dec ecx
mov dword [ebp + 0xc], ecx
je 0x40a955
test eax, eax
je 0x4098f0
mov eax, dword [edi + 0x14]
mov ecx, dword [eax + 8]
mov dword [edi + 8], ecx
jmp 0x4098f0
mov edx, dword [esp + 0xc]
add edx, 0xfffffffc
mov dword [ebx + 0x18], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret