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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x124
mov eax, dword [0x549944]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], eax
mov dword [esp + 0x4c], eax
test byte [edi + 0x15], 2
mov dword [esp + 0x1c], eax
je 0x405872
mov eax, dword [esi]
add esi, 4
mov dword [esp + 0x18], esi
mov dword [esp + 0x4c], eax
mov byte [esp + 0x16], 1
jmp 0x405876
mov byte [esp + 0x16], al
movsx eax, byte [edx]
test eax, eax
je case.default.0x405cd9
movsd xmm0, qword [0x540e20]
movsd qword [esp + 0xa0], xmm0
xorps xmm0, xmm0
movsd qword [esp + 0x90], xmm0
movsd xmm0, qword [0x540cc0]
movsd qword [esp + 0xb0], xmm0
movsd xmm0, qword [0x540cb8]
movsd qword [esp + 0x98], xmm0
movsd xmm0, qword [0x540cc8]
movsd qword [esp + 0xb8], xmm0
movsd xmm0, qword [0x540d90]
movsd qword [esp + 0xc0], xmm0
movsd xmm0, qword [0x540d60]
movsd qword [esp + 0xc8], xmm0
movsd xmm0, qword [0x540cd8]
movsd qword [esp + 0x88], xmm0
movsd xmm0, qword [0x540cb0]
movsd qword [esp + 0xd0], xmm0
movsd xmm0, qword [0x540d40]
movsd qword [esp + 0xd8], xmm0
cmp eax, 0x25
je 0x40598e
mov ecx, edx
mov dword [esp + 0x1c], ecx
mov al, byte [edx + 1]
inc edx
test al, al
je 0x40593d
cmp al, 0x25
jne 0x405931
mov eax, dword [edi + 0x10]
mov esi, edx
sub esi, ecx
mov dword [esp + 0x50], edx
add eax, esi
mov dword [esp + 0x58], eax
cmp eax, dword [edi + 8]
jb 0x405962
mov edx, ecx
mov ecx, edi
push esi
call fcn.004072a0
add esp, 4
jmp 0x40597d
test esi, esi
je 0x405981
mov dword [edi + 0x10], eax
mov eax, dword [edi + 4]
push esi
sub eax, esi
add eax, dword [esp + 0x5c]
push ecx
push eax
call fcn.004e8950
add esp, 0xc
mov edx, dword [esp + 0x50]
cmp byte [edx], 0
je case.default.0x405cd9
mov esi, dword [esp + 0x18]
movsx ecx, byte [edx + 1]
inc edx
test ecx, ecx
je 0x406f74
xor al, al
mov byte [esp + 0x57], al
mov byte [esp + 0x47], al
mov byte [esp + 0x46], al
mov byte [esp + 0x23], al
mov byte [esp + 0x15], al
mov byte [esp + 0xf], al
lea eax, [ecx - 0x20]
cmp eax, 0x10
ja case.0x4059c4.34
movzx eax, byte [eax + 0x406fe4]
jmp dword [eax*4 + 0x406fc4]
mov byte [esp + 0xf], 1
jmp 0x4059fa
mov byte [esp + 0x15], 0x2b
jmp 0x4059fa
mov byte [esp + 0x15], 0x20
jmp 0x4059fa
mov byte [esp + 0x46], 1
jmp 0x4059fa
mov byte [esp + 0x47], 1
jmp 0x4059fa
mov byte [esp + 0x57], 1
jmp 0x4059fa
mov byte [esp + 0x23], 0x2c
movsx ecx, byte [edx + 1]
inc edx
test ecx, ecx
jne 0x4059b5
mov dword [esp + 0x50], edx
cmp ecx, 0x2a
jne 0x405af5
cmp byte [esp + 0x16], 0
je 0x405ab4
mov eax, dword [esp + 0x4c]
mov esi, dword [eax + 4]
cmp dword [eax], esi
jg 0x405a3c
mov esi, dword [esp + 0x18]
xorps xmm0, xmm0
movlpd qword [esp + 0x38], xmm0
mov eax, dword [esp + 0x38]
jmp 0x405abd
mov eax, dword [eax + 8]
mov ecx, dword [eax + esi*4]
lea eax, [esi + 1]
mov esi, dword [esp + 0x4c]
mov dword [esi + 4], eax
movzx eax, word [ecx + 8]
test al, 4
je 0x405a63
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x3c], ecx
jmp 0x405abd
test al, 8
je 0x405a80
movsd xmm0, qword [ecx]
call fcn.00424f00
mov esi, dword [esp + 0x18]
mov ecx, edx
mov edx, dword [esp + 0x50]
mov dword [esp + 0x3c], ecx
jmp 0x405abd
test al, 0x12
je 0x405a99
call fcn.00424f30
mov esi, dword [esp + 0x18]
mov ecx, edx
mov edx, dword [esp + 0x50]
mov dword [esp + 0x3c], ecx
jmp 0x405abd
mov esi, dword [esp + 0x18]
xorps xmm0, xmm0
movlpd qword [esp + 0x38], xmm0
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x3c], ecx
jmp 0x405abd
mov eax, dword [esi]
add esi, 4
mov dword [esp + 0x18], esi
mov dword [esp + 0x2c], eax
test eax, eax
jns 0x405aea
mov byte [esp + 0xf], 1
cmp eax, 0x80000001
jl 0x405ae2
movsx ecx, byte [edx + 1]
neg eax
inc edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x50], edx
jmp 0x405b30
mov dword [esp + 0x2c], 0
movsx ecx, byte [edx + 1]
inc edx
mov dword [esp + 0x50], edx
jmp 0x405b30
xor eax, eax
cmp ecx, 0x30
jl 0x405b27
mov edi, eax
nop
cmp ecx, 0x39
ja 0x405b17
lea edi, [edi + edi*4]
inc edx
lea edi, [edi - 0x18]
lea edi, [ecx + edi*2]
movsx ecx, byte [edx]
cmp ecx, 0x30
jge 0x405b00
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x64]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x50], edx
and eax, 0x7fffffff
mov dword [esp + 0x2c], eax
cmp ecx, 0x2e
jne 0x405c43
movsx ecx, byte [edx + 1]
inc edx
mov dword [esp + 0x50], edx
cmp ecx, 0x2a
jne 0x405c16
cmp byte [esp + 0x16], 0
je 0x405bef
mov eax, dword [esp + 0x4c]
mov esi, dword [eax + 4]
cmp dword [eax], esi
jg 0x405b73
xorps xmm0, xmm0
movlpd qword [esp + 0x38], xmm0
mov esi, dword [esp + 0x38]
jmp 0x405bf9
mov eax, dword [eax + 8]
mov ecx, dword [eax + esi*4]
lea eax, [esi + 1]
mov esi, dword [esp + 0x4c]
mov dword [esi + 4], eax
movzx eax, word [ecx + 8]
test al, 4
je 0x405b9a
mov esi, dword [ecx]
mov eax, dword [ecx + 4]
mov dword [esp + 0x48], esi
mov dword [esp + 0x3c], eax
jmp 0x405bfd
test al, 8
je 0x405bb9
movsd xmm0, qword [ecx]
call fcn.00424f00
mov esi, eax
mov eax, edx
mov edx, dword [esp + 0x50]
mov dword [esp + 0x48], esi
mov dword [esp + 0x3c], eax
jmp 0x405bfd
test al, 0x12
je 0x405bd4
call fcn.00424f30
mov esi, eax
mov dword [esp + 0x48], eax
mov eax, edx
mov edx, dword [esp + 0x50]
mov dword [esp + 0x3c], eax
jmp 0x405bfd
xorps xmm0, xmm0
movlpd qword [esp + 0x38], xmm0
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
mov dword [esp + 0x48], esi
mov dword [esp + 0x3c], eax
jmp 0x405bfd
add esi, 4
mov dword [esp + 0x18], esi
mov esi, dword [esi - 4]
mov dword [esp + 0x48], esi
movsx ecx, byte [edx + 1]
inc edx
mov dword [esp + 0x50], edx
test esi, esi
jns 0x405c4a
cmp esi, 0x80000001
jl 0x405c43
neg esi
jmp 0x405c46
xor esi, esi
cmp ecx, 0x30
jl 0x405c3b
nop dword [eax]
cmp ecx, 0x39
ja 0x405c37
lea esi, [esi + esi*4]
inc edx
lea esi, [esi - 0x18]
lea esi, [ecx + esi*2]
movsx ecx, byte [edx]
cmp ecx, 0x30
jge 0x405c20
mov dword [esp + 0x50], edx
and esi, 0x7fffffff
jmp 0x405c46
or esi, 0xffffffff
mov dword [esp + 0x48], esi
cmp ecx, 0x6c
jne 0x405c72
movsx ecx, byte [edx + 1]
inc edx
mov byte [esp + 0x22], 1
mov dword [esp + 0x50], edx
cmp ecx, 0x6c
jne 0x405c77
movsx ecx, byte [edx + 1]
inc edx
mov byte [esp + 0x22], 2
mov dword [esp + 0x50], edx
jmp 0x405c77
mov byte [esp + 0x22], 0
xor eax, eax
mov dword [esp + 0x34], 0x5401e0
mov byte [esp + 0x17], 0x11
mov edx, 0x5401e0
mov dword [esp + 0x10], eax
nop
movsx eax, byte [edx]
cmp ecx, eax
je 0x405cb0
inc dword [esp + 0x10]
add edx, 6
cmp edx, 0x54026a
jl 0x405c90
mov dl, byte [esp + 0x17]
mov ecx, dword [esp + 0x34]
jmp 0x405ccd
mov eax, dword [esp + 0x10]
lea eax, [eax + eax*2]
mov dl, byte [eax*2 + 0x5401e3]
lea ecx, [eax*2 + 0x5401e0]
mov dword [esp + 0x34], ecx
mov byte [esp + 0x17], dl
movzx eax, dl
cmp eax, 0x10
ja case.default.0x405cd9
jmp dword [eax*4 + 0x406ff8]
mov al, 1
mov byte [esp + 0x23], 0
jmp 0x405cf8
mov al, byte [esp + 0x22]
mov byte [esp + 0x23], 0
jmp 0x405cf8
mov al, byte [esp + 0x22]
test byte [ecx + 2], 1
je 0x405e1f
cmp byte [esp + 0x16], 0
je 0x405db6
mov eax, dword [esp + 0x4c]
mov edx, dword [eax + 4]
cmp dword [eax], edx
jg 0x405d3a
xorps xmm0, xmm0
movlpd qword [esp + 0x38], xmm0
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
mov dl, byte [esp + 0x15]
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], ecx
jmp 0x405ee7
mov eax, dword [eax + 8]
mov ecx, dword [eax + edx*4]
lea eax, [edx + 1]
mov edx, dword [esp + 0x4c]
mov dword [edx + 4], eax
movzx eax, word [ecx + 8]
test al, 4
je 0x405d69
mov eax, dword [ecx]
mov dword [esp + 0x30], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x24]
jmp 0x405ddc
test al, 8
je 0x405d82
movsd xmm0, qword [ecx]
call fcn.00424f00
mov dword [esp + 0x24], edx
mov ecx, edx
mov dword [esp + 0x30], eax
jmp 0x405ddc
test al, 0x12
je 0x405d97
call fcn.00424f30
mov dword [esp + 0x24], edx
mov ecx, edx
mov dword [esp + 0x30], eax
jmp 0x405ddc
xorps xmm0, xmm0
movlpd qword [esp + 0x38], xmm0
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x30], eax
jmp 0x405ddc
mov ecx, dword [esp + 0x18]
test al, al
je 0x405dd0
cmp al, 2
jne 0x405dd0
mov eax, dword [ecx]
add ecx, 8
mov dword [esp + 0x18], ecx
mov ecx, dword [ecx - 4]
jmp 0x405ddc
mov eax, dword [ecx]
add ecx, 4
cdq
mov dword [esp + 0x18], ecx
mov ecx, edx
test ecx, ecx
jg 0x405d29
jl 0x405dee
test eax, eax
jae 0x405d29
test eax, eax
jne 0x405e09
cmp ecx, 0x80000000
jne 0x405e09
mov dword [esp + 0x24], ecx
mov dl, 0x2d
mov dword [esp + 0x30], eax
jmp 0x405ee3
neg eax
mov dl, 0x2d
mov dword [esp + 0x30], eax
adc ecx, 0
neg ecx
mov dword [esp + 0x24], ecx
jmp 0x405ee3
cmp byte [esp + 0x16], 0
je 0x405eb4
mov eax, dword [esp + 0x4c]
mov edx, dword [eax + 4]
cmp dword [eax], edx
jle 0x405e95
mov eax, dword [eax + 8]
mov ecx, dword [eax + edx*4]
lea eax, [edx + 1]
mov edx, dword [esp + 0x4c]
mov dword [edx + 4], eax
movzx eax, word [ecx + 8]
test al, 4
je 0x405e67
mov eax, dword [ecx]
mov dword [esp + 0x30], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x24]
jmp 0x405ee1
test al, 8
je 0x405e80
movsd xmm0, qword [ecx]
call fcn.00424f00
mov dword [esp + 0x24], edx
mov ecx, edx
mov dword [esp + 0x30], eax
jmp 0x405ee1
test al, 0x12
je 0x405e95
call fcn.00424f30
mov dword [esp + 0x24], edx
mov ecx, edx
mov dword [esp + 0x30], eax
jmp 0x405ee1
xorps xmm0, xmm0
movlpd qword [esp + 0x38], xmm0
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x30], eax
jmp 0x405ee1
mov ecx, dword [esp + 0x18]
test al, al
je 0x405ece
cmp al, 2
jne 0x405ece
mov eax, dword [ecx]
add ecx, 8
mov dword [esp + 0x18], ecx
mov ecx, dword [ecx - 4]
jmp 0x405ed9
mov eax, dword [ecx]
add ecx, 4
mov dword [esp + 0x18], ecx
xor ecx, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], ecx
xor dl, dl
mov byte [esp + 0x15], dl
or eax, ecx
jne 0x405eef
mov byte [esp + 0x46], al
cmp byte [esp + 0x57], 0
je 0x405f0c
mov ecx, dword [esp + 0x2c]
xor eax, eax
test dl, dl
setne al
sub ecx, eax
cmp esi, ecx
cmovl esi, ecx
mov dword [esp + 0x48], esi
cmp esi, 0x25
jge 0x405f27
mov eax, 0x46
lea ecx, [esp + 0xe0]
mov dword [esp + 0x28], eax
mov dword [esp + 0x10], ecx
jmp 0x405f73
mov eax, 0x55555556
imul esi
mov eax, edx
shr eax, 0x1f
add eax, edx
cdq
mov dword [esp + 0x28], eax
mov ecx, edx
mov eax, esi
cdq
add dword [esp + 0x28], eax
mov eax, dword [esp + 0x28]
adc ecx, edx
add eax, 0xa
mov dword [esp + 0x28], eax
adc ecx, 0
push ecx
push eax
call fcn.00404e70
add esp, 8
mov dword [esp + 0x68], eax
mov ecx, eax
mov dword [esp + 0x10], ecx
test eax, eax
je 0x406f54
mov eax, dword [esp + 0x28]
dec eax
add eax, ecx
cmp byte [esp + 0x17], 0xf
mov dword [esp + 0x1c], eax
jne 0x40603c
mov eax, dword [esp + 0x30]
mov edx, 0xcccccccd
mov ecx, 0xcccccccd
lea edi, [edx - 1]
mul edx
mov dword [esp + 0x38], eax
mov esi, edx
mov eax, dword [esp + 0x30]
mul edi
mov edi, eax
mov dword [esp + 0x6c], edx
mov eax, dword [esp + 0x24]
mul ecx
mov ecx, eax
mov dword [esp + 0x58], edx
mov eax, dword [esp + 0x24]
mov edx, 0xcccccccc
mul edx
add ecx, esi
mov esi, dword [esp + 0x30]
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x58]
adc edx, 0
mov dword [esp + 0x70], eax
add edi, ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x58], edi
mov edi, dword [esp + 0x70]
adc ecx, 0
xor eax, eax
add edx, ecx
mov ecx, dword [esp + 0x38]
adc eax, eax
add edi, edx
adc ecx, eax
shrd edi, ecx, 3
shr ecx, 3
lea eax, [edi + edi*4]
add eax, eax
sub esi, eax
cmp esi, 4
jge 0x40601c
push 0
push 0xa
push ecx
push edi
call fcn.004e60a0
cmp eax, 1
jne 0x40601e
test edx, edx
jne 0x40601e
xor esi, esi
mov ecx, dword [esp + 0x1c]
mov al, byte [esi*2 + 0x5401d5]
mov byte [ecx - 1], al
sub ecx, 2
mov al, byte [esi*2 + 0x5401d4]
mov dword [esp + 0x1c], ecx
mov byte [ecx], al
mov ecx, dword [esp + 0x34]
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x30]
movzx eax, byte [ecx + 4]
add eax, 0x53de9c
mov dword [esp + 0x38], eax
movzx eax, byte [ecx + 1]
cdq
mov ecx, eax
mov eax, edx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x6c], eax
nop word [eax + eax]
push ebx
push eax
push ecx
push edx
push esi
dec edi
call fcn.0050e840
mov dword [esp + 0x78], ebx
pop ebx
mov esi, eax
mov eax, dword [esp + 0x38]
mov al, byte [ecx + eax]
mov ecx, dword [esp + 0x58]
mov byte [edi], al
mov eax, dword [esp + 0x6c]
test edx, edx
ja 0x406070
jb 0x40609d
test esi, esi
jne 0x406070
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
sub eax, edi
mov esi, dword [esp + 0x48]
dec edx
mov dword [esp + 0x1c], edi
add edx, eax
mov edi, dword [esp + 0x64]
mov ecx, dword [esp + 0x1c]
cmp edx, esi
jge 0x4060d1
mov eax, esi
sub eax, edx
mov edx, esi
dec ecx
mov byte [ecx], 0x30
sub eax, 1
jne 0x4060c4
mov dword [esp + 0x1c], ecx
cmp byte [esp + 0x23], 0
je 0x406125
lea eax, [edx - 1]
mov esi, 3
cdq
idiv esi
inc edx
mov esi, eax
mov dword [esp + 0x38], edx
sub ecx, esi
xor edx, edx
mov dword [esp + 0x1c], ecx
test esi, esi
jle 0x406125
mov edi, dword [esp + 0x38]
nop word [eax + eax]
lea eax, [esi + edx]
mov al, byte [eax + ecx]
mov byte [edx + ecx], al
sub edi, 1
jne 0x40611c
mov al, byte [esp + 0x23]
inc edx
dec esi
mov edi, 3
mov byte [edx + ecx], al
inc edx
test esi, esi
jg 0x406100
mov edi, dword [esp + 0x64]
mov al, byte [esp + 0x15]
test al, al
je 0x406134
dec ecx
mov dword [esp + 0x1c], ecx
mov byte [ecx], al
cmp byte [esp + 0x46], 0
je 0x406164
mov eax, dword [esp + 0x34]
mov al, byte [eax + 5]
test al, al
je 0x406164
movzx eax, al
add eax, 0x53d270
mov dl, byte [eax]
test dl, dl
je 0x406164
dec ecx
lea eax, [eax + 1]
mov byte [ecx], dl
mov dl, byte [eax]
test dl, dl
jne 0x406154
mov dword [esp + 0x1c], ecx
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x28]
sub edx, ecx
dec esi
add esi, edx
jmp 0x406c61
cmp byte [esp + 0x16], 0
je 0x4061fa
mov eax, dword [esp + 0x4c]
mov edx, dword [eax + 4]
cmp dword [eax], edx
jle 0x4061e5
mov eax, dword [eax + 8]
mov ecx, dword [eax + edx*4]
lea eax, [edx + 1]
mov edx, dword [esp + 0x4c]
mov dword [edx + 4], eax
movzx eax, word [ecx + 8]
test al, 8
je 0x4061b0
movsd xmm1, qword [ecx]
mov dl, byte [esp + 0x17]
movsd qword [esp + 0x38], xmm1
jmp 0x406210
test al, 4
je 0x4061cd
mov edx, dword [ecx + 4]
mov ecx, dword [ecx]
call fcn.004e62e0
mov dl, byte [esp + 0x17]
movaps xmm1, xmm0
movsd qword [esp + 0x38], xmm1
jmp 0x406210
test al, 0x12
je 0x4061e5
call fcn.00424fa0
mov dl, byte [esp + 0x17]
movaps xmm1, xmm0
movsd qword [esp + 0x38], xmm0
jmp 0x406210
movsd xmm1, qword [esp + 0x90]
mov dl, byte [esp + 0x17]
movsd qword [esp + 0x38], xmm1
jmp 0x406210
mov ecx, dword [esp + 0x18]
add ecx, 8
mov dword [esp + 0x18], ecx
movsd xmm1, qword [ecx - 8]
movsd qword [esp + 0x38], xmm1
movsd xmm3, qword [esp + 0x90]
test esi, esi
mov eax, 6
cmovs esi, eax
comisd xmm3, xmm1
mov dword [esp + 0x48], esi
jbe 0x406243
xorps xmm1, xmmword [esp + 0xa0]
mov dh, 0x2d
movsd qword [esp + 0x38], xmm1
mov byte [esp + 0x15], dh
jmp 0x406247
mov dh, byte [esp + 0x15]
cmp dl, 3
jne 0x406255
test esi, esi
je 0x406255
dec esi
mov dword [esp + 0x48], esi
movsd xmm2, qword [esp + 0xb0]
and esi, 0xfff
movsd xmm4, qword [esp + 0x98]
cmp esi, 8
jb 0x4062a5
lea ecx, [esi - 8]
shr ecx, 3
inc ecx
mov eax, ecx
neg eax
lea esi, [esi + eax*8]
mulsd xmm2, xmm4
mulsd xmm2, xmm4
mulsd xmm2, xmm4
mulsd xmm2, xmm4
mulsd xmm2, xmm4
mulsd xmm2, xmm4
mulsd xmm2, xmm4
mulsd xmm2, xmm4
sub ecx, 1
jne 0x406280
test esi, esi
jle 0x4062b9
nop dword [eax]
dec esi
mulsd xmm2, xmm4
test esi, esi
jg 0x4062b0
cmp dl, 1
jne 0x4062cb
movaps xmm0, xmm2
addsd xmm1, xmm0
movsd qword [esp + 0x38], xmm1
movsd qword [esp + 0x70], xmm1
xor ecx, ecx
movsd xmm0, qword [esp + 0x70]
movsd qword [esp + 0x58], xmm0
movsd xmm0, qword [esp + 0x70]
ucomisd xmm0, qword [esp + 0x58]
mov dword [esp + 0x28], ecx
lahf
test ah, 0x44
jnp 0x406305
mov dword [esp + 0x1c], 0x538280
lea esi, [ecx + 3]
jmp 0x406c61
comisd xmm1, xmm3
jbe 0x40643a
movsd xmm5, qword [esp + 0xc0]
comisd xmm1, xmm5
movsd xmm6, qword [esp + 0xb8]
movaps xmm3, xmm6
jb 0x406350
nop word [eax + eax]
cmp ecx, 0x15e
jg 0x40634c
mulsd xmm3, xmm5
add ecx, 0x64
movaps xmm0, xmm3
mulsd xmm0, xmm5
comisd xmm1, xmm0
jae 0x406330
mov dword [esp + 0x28], ecx
movsd xmm5, qword [esp + 0xc8]
movaps xmm0, xmm3
mulsd xmm0, xmm5
comisd xmm1, xmm0
jb 0x406382
cmp ecx, 0x15e
jg 0x40637e
movaps xmm3, xmm0
add ecx, 0xa
mulsd xmm0, xmm5
comisd xmm1, xmm0
jae 0x406366
mov dword [esp + 0x28], ecx
movsd xmm5, qword [esp + 0x88]
movaps xmm0, xmm3
mulsd xmm0, xmm5
comisd xmm1, xmm0
jb 0x4063b2
cmp ecx, 0x15e
jg 0x4063ae
movaps xmm3, xmm0
inc ecx
mulsd xmm0, xmm5
comisd xmm1, xmm0
jae 0x406398
mov dword [esp + 0x28], ecx
divsd xmm1, xmm3
movsd xmm0, qword [esp + 0xd0]
comisd xmm0, xmm1
movsd qword [esp + 0x38], xmm1
jbe 0x4063eb
movsd xmm3, qword [esp + 0xd8]
mulsd xmm1, xmm3
sub ecx, 8
comisd xmm0, xmm1
ja 0x4063d4
mov dword [esp + 0x28], ecx
movsd qword [esp + 0x38], xmm1
comisd xmm6, xmm1
jbe 0x406406
mulsd xmm1, xmm5
dec ecx
comisd xmm6, xmm1
ja 0x4063f1
mov dword [esp + 0x28], ecx
movsd qword [esp + 0x38], xmm1
cmp ecx, 0x15e
jle 0x406443
xor eax, eax
mov byte [esp + 0xe0], dh
test dh, dh
lea ecx, [esp + 0xe0]
mov dword [esp + 0x1c], ecx
setne al
mov dword [esp + eax + 0xe0], 0x666e49
lea esi, [eax + 3]
jmp 0x406c61
movsd xmm5, qword [esp + 0x88]
lea esi, [esp + 0xe0]
cmp dl, 1
je 0x4064a0
addsd xmm1, xmm2
comisd xmm1, xmm5
movsd qword [esp + 0x38], xmm1
jb 0x40646e
mulsd xmm1, xmm4
inc ecx
mov dword [esp + 0x28], ecx
movsd qword [esp + 0x38], xmm1
cmp dl, 3
jne 0x4064a0
cmp byte [esp + 0x46], 0
sete byte [esp + 0x23]
cmp ecx, 0xfffffffc
jl 0x406498
mov eax, dword [esp + 0x48]
cmp ecx, eax
jg 0x406498
sub eax, ecx
mov dword [esp + 0x48], eax
mov al, 1
mov byte [esp + 0x17], al
jmp 0x4064ac
mov al, 2
mov byte [esp + 0x17], al
jmp 0x4064ac
mov al, byte [esp + 0x47]
mov byte [esp + 0x23], al
mov al, byte [esp + 0x17]
xor edx, edx
cmp al, 2
cmovne edx, ecx
mov ecx, dword [esp + 0x48]
xor eax, eax
mov dword [esp + 0x10], edx
test edx, edx
cmovg eax, edx
cdq
mov dword [esp + 0x24], eax
mov eax, ecx
mov dword [esp + 0x30], edx
cdq
add dword [esp + 0x24], eax
mov eax, dword [esp + 0x2c]
adc dword [esp + 0x30], edx
cdq
add dword [esp + 0x24], eax
adc dword [esp + 0x30], edx
js 0x406516
mov eax, dword [esp + 0x24]
jg 0x4064f0
cmp eax, 0x37
jbe 0x406516
mov ecx, dword [esp + 0x30]
add eax, 0xf
adc ecx, 0
push ecx
push eax
call fcn.00404e70
add esp, 8
mov dword [esp + 0x68], eax
mov esi, eax
test eax, eax
je 0x406f54
mov ecx, dword [esp + 0x48]
movzx eax, byte [esp + 0x47]
test ecx, ecx
mov dword [esp + 0x1c], esi
lea eax, [eax + eax*4]
lea edx, [eax*2 + 0x10]
setg al
or al, byte [esp + 0x47]
or al, byte [esp + 0x46]
mov byte [esp + 0x22], al
mov al, byte [esp + 0x15]
mov dword [esp + 0x58], edx
test al, al
je 0x406549
mov byte [esi], al
inc esi
mov eax, dword [esp + 0x10]
test eax, eax
jns 0x406557
mov byte [esi], 0x30
inc esi
jmp 0x4065a9
movsd xmm1, qword [esp + 0x38]
movsd xmm2, qword [esp + 0x88]
mov dword [esp + 0x10], eax
nop word [eax + eax]
test edx, edx
jg 0x406578
mov al, 0x30
jmp 0x40658f
cvttsd2si eax, xmm1
dec edx
movd xmm0, eax
add al, 0x30
cvtdq2pd xmm0, xmm0
subsd xmm1, xmm0
mulsd xmm1, xmm2
mov byte [esi], al
inc esi
mov eax, dword [esp + 0x10]
sub eax, 1
mov dword [esp + 0x10], eax
jns 0x406570
mov dword [esp + 0x58], edx
movsd qword [esp + 0x38], xmm1
cmp byte [esp + 0x22], 0
je 0x4065b4
mov byte [esi], 0x2e
inc esi
inc eax
mov edi, eax
neg edi
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x64]
test eax, eax
jns 0x40668d
cmp dword [esp + 0x10], 8
jb 0x406667
mov edi, dword [esp + 0x10]
and edi, 0x80000007
jns 0x4065e5
dec edi
or edi, 0xfffffff8
inc edi
movaps xmm0, xmmword [0x540e10]
neg edi
movaps xmm3, xmmword [0x540de0]
xorps xmm1, xmm1
mov dword [esp + 0x10], edi
xorps xmm2, xmm2
mov edi, dword [esp + 0x64]
movaps xmmword [esp + 0x70], xmm0
nop dword [eax + eax]
movd xmm0, dword [esp + 0x70]
add eax, 8
movd dword [esi], xmm0
psubd xmm1, xmm3
movd xmm0, dword [esp + 0x70]
psubd xmm2, xmm3
movd dword [esi + 4], xmm0
add esi, 8
cmp eax, dword [esp + 0x10]
jl 0x406610
paddd xmm1, xmm2
mov dword [esp + 0x10], eax
movaps xmm0, xmm1
psrldq xmm0, 8
paddd xmm1, xmm0
movups xmm0, xmm1
psrldq xmm0, 4
paddd xmm1, xmm0
movd eax, xmm1
add ecx, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x48], ecx
test eax, eax
jns 0x40668d
neg eax
push eax
push 0x30
push esi
mov dword [esp + 0x1c], eax
call fcn.004e8ed0
mov ecx, dword [esp + 0x54]
add esp, 0xc
add esi, dword [esp + 0x10]
sub ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x58]
test ecx, ecx
jle 0x4066c9
dec ecx
test edx, edx
jg 0x40669a
mov al, 0x30
jmp 0x4066c2
movsd xmm1, qword [esp + 0x38]
dec edx
cvttsd2si eax, xmm1
movd xmm0, eax
add al, 0x30
cvtdq2pd xmm0, xmm0
subsd xmm1, xmm0
mulsd xmm1, qword [esp + 0x88]
movsd qword [esp + 0x38], xmm1
mov byte [esi], al
inc esi
test ecx, ecx
jg 0x406691
cmp byte [esp + 0x23], 0
je 0x406704
cmp byte [esp + 0x22], 0
je 0x406704
cmp byte [esi - 1], 0x30
lea eax, [esi - 1]
jne 0x4066ed
mov esi, eax
lea eax, [esi - 1]
mov byte [esi], 0
cmp byte [eax], 0x30
je 0x4066e0
cmp byte [esi - 1], 0x2e
jne 0x406704
cmp byte [esp + 0x47], 0
je 0x406700
mov byte [esi], 0x30
inc esi
jmp 0x406704
dec esi
mov byte [esi], 0
cmp byte [esp + 0x17], 2
jne 0x4067ad
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x28]
movzx eax, byte [eax + 4]
mov al, byte [eax + 0x53de9c]
mov byte [esi], al
lea eax, [esi + 2]
mov dword [esp + 0x58], eax
mov eax, ecx
cdq
xor eax, edx
sub eax, edx
test ecx, ecx
mov dword [esp + 0x34], eax
sets cl
lea ecx, [ecx*2 + 0x2b]
mov byte [esi + 1], cl
mov esi, dword [esp + 0x58]
cmp eax, 0x64
jl 0x40677a
mov eax, 0x51eb851f
imul dword [esp + 0x34]
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, esi
mov al, cl
add al, 0x30
mov byte [edx], al
lea esi, [edx + 1]
imul eax, ecx, 0x64
mov ecx, dword [esp + 0x34]
sub ecx, eax
mov dword [esp + 0x34], ecx
jmp 0x40677e
mov ecx, dword [esp + 0x34]
mov eax, 0x66666667
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov al, cl
add al, 0x30
mov byte [esi], al
mov al, cl
shl cl, 2
add al, cl
mov ecx, dword [esp + 0x34]
add al, al
sub cl, al
add cl, 0x30
mov byte [esi + 1], cl
add esi, 2
mov ecx, dword [esp + 0x1c]
mov byte [esi], 0
sub esi, ecx
cmp byte [esp + 0x57], 0
je 0x406c61
mov al, byte [esp + 0xf]
test al, al
jne 0x406c65
mov eax, dword [esp + 0x2c]
cmp esi, eax
jge 0x406c61
sub eax, esi
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x10], eax
mov edx, esi
cmp esi, eax
jl 0x406807
mov esi, ecx
mov edi, eax
sub esi, edi
nop
mov al, byte [esi + edx]
mov byte [edx + ecx], al
dec edx
cmp edx, edi
jge 0x4067f0
mov edi, dword [esp + 0x64]
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
xor edx, edx
cmp byte [esp + 0x15], dl
setne dl
test eax, eax
je 0x406c61
push dword [esp + 0x10]
lea eax, [edx + ecx]
push 0x30
push eax
call fcn.004e8ed0
add esp, 0xc
jmp 0x406c61
cmp byte [esp + 0x16], 0
jne 0x406eb7
mov ecx, dword [esp + 0x18]
mov eax, dword [edi + 0x10]
add ecx, 4
mov dword [esp + 0x18], ecx
mov ecx, dword [ecx - 4]
mov dword [ecx], eax
jmp 0x406eb7
lea eax, [esp + 0xe0]
mov byte [esp + 0xe0], 0x25
mov dword [esp + 0x1c], eax
mov esi, 1
jmp 0x406c61
cmp byte [esp + 0x16], 0
je 0x4068d1
mov eax, dword [esp + 0x4c]
mov edx, dword [eax + 4]
cmp dword [eax], edx
jle 0x4068c7
mov eax, dword [eax + 8]
mov ecx, dword [eax + edx*4]
lea eax, [edx + 1]
mov edx, dword [esp + 0x4c]
mov dword [edx + 4], eax
test ecx, ecx
je 0x4068c7
movzx edx, word [ecx + 8]
mov eax, edx
and eax, 0x202
cmp eax, 0x202
jne 0x4068b2
cmp byte [ecx + 0xa], 1
jne 0x4068b2
mov eax, dword [ecx + 0x10]
jmp 0x4068be
test dl, 1
jne 0x4068c7
mov dl, 1
call fcn.00425910
test eax, eax
je 0x4068c7
movsx eax, byte [eax]
jmp 0x4068df
mov dword [esp + 0x34], 0
jmp 0x4068e3
mov ecx, dword [esp + 0x18]
add ecx, 4
mov dword [esp + 0x18], ecx
mov eax, dword [ecx - 4]
mov dword [esp + 0x34], eax
cmp esi, 1
jle 0x4069bd
mov eax, dword [esp + 0x2c]
sub eax, esi
mov edx, eax
inc eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], eax
cmp eax, 1
jle 0x40695a
cmp byte [esp + 0xf], 0
jne 0x40695a
mov eax, dword [edi + 0x10]
xor ecx, ecx
mov dword [esp + 0x10], eax
mov eax, edx
cdq
add dword [esp + 0x10], eax
mov eax, dword [edi + 8]
adc ecx, edx
js 0x40693b
jg 0x406928
cmp dword [esp + 0x10], eax
jb 0x40693b
mov edx, dword [esp + 0x28]
mov ecx, edi
call fcn.00407040
mov edx, eax
test edx, edx
jle 0x406952
jmp 0x406940
mov edx, dword [esp + 0x28]
nop
mov ecx, dword [edi + 0x10]
dec edx
mov eax, dword [edi + 4]
mov byte [ecx + eax], 0x20
inc dword [edi + 0x10]
test edx, edx
jg 0x406940
mov dword [esp + 0x2c], 0
mov eax, dword [edi + 0x10]
dec esi
mov dword [esp + 0x10], eax
xor ecx, ecx
mov eax, esi
cdq
add dword [esp + 0x10], eax
mov eax, dword [edi + 8]
adc ecx, edx
js 0x406989
jg 0x40697a
cmp dword [esp + 0x10], eax
jb 0x406989
mov edx, esi
mov ecx, edi
call fcn.00407040
mov esi, eax
test esi, esi
jle 0x4069bd
mov edx, dword [esp + 0x34]
nop dword [eax]
mov ecx, dword [edi + 0x10]
dec esi
mov eax, dword [edi + 4]
mov byte [ecx + eax], dl
inc dword [edi + 0x10]
test esi, esi
jg 0x406990
lea eax, [esp + 0xe0]
mov byte [esp + 0xe0], dl
mov esi, 1
mov dword [esp + 0x1c], eax
jmp 0x406c61
mov edx, dword [esp + 0x34]
lea eax, [esp + 0xe0]
mov esi, 1
mov byte [esp + 0xe0], dl
mov dword [esp + 0x1c], eax
jmp 0x406c61
cmp byte [esp + 0x16], 0
je 0x406a58
mov eax, dword [esp + 0x4c]
mov edx, dword [eax + 4]
cmp dword [eax], edx
jg 0x4069f9
xor ecx, ecx
mov dl, 5
mov dword [esp + 0x1c], ecx
jmp 0x406a6a
mov eax, dword [eax + 8]
mov ecx, dword [eax + edx*4]
lea eax, [edx + 1]
mov edx, dword [esp + 0x4c]
mov dword [edx + 4], eax
test ecx, ecx
jne 0x406a15
mov dword [esp + 0x1c], ecx
mov dl, 5
jmp 0x406a6a
movzx edx, word [ecx + 8]
mov eax, edx
and eax, 0x202
cmp eax, 0x202
jne 0x406a38
cmp byte [ecx + 0xa], 1
jne 0x406a38
mov ecx, dword [ecx + 0x10]
mov dl, 5
mov dword [esp + 0x1c], ecx
jmp 0x406a6a
test dl, 1
je 0x406a47
xor ecx, ecx
mov dl, 5
mov dword [esp + 0x1c], ecx
jmp 0x406a6a
mov dl, 1
call fcn.00425910
mov ecx, eax
mov dword [esp + 0x1c], eax
mov dl, 5
jmp 0x406a6a
mov ecx, dword [esp + 0x18]
add ecx, 4
mov dword [esp + 0x18], ecx
mov ecx, dword [ecx - 4]
mov dword [esp + 0x1c], ecx
test ecx, ecx
jne 0x406a79
mov ecx, 0x538284
mov dword [esp + 0x1c], ecx
jmp 0x406a87
mov eax, dword [esp + 0x68]
cmp dl, 6
cmove eax, ecx
mov dword [esp + 0x68], eax
test esi, esi
js 0x406ab4
mov eax, dword [esp + 0x48]
xor esi, esi
test eax, eax
jle 0x406c61
nop dword [eax]
cmp byte [esi + ecx], 0
je 0x406c61
inc esi
cmp esi, eax
jl 0x406aa0
jmp 0x406c61
mov esi, ecx
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x406ac0
sub esi, ecx
and esi, 0x7fffffff
jmp 0x406c61
cmp dl, 0xe
mov eax, 0x27
mov ecx, 0x22
cmove eax, ecx
cmp byte [esp + 0x16], 0
mov dword [esp + 0x10], eax
je 0x406b4d
mov eax, dword [esp + 0x4c]
mov edx, dword [eax + 4]
cmp dword [eax], edx
jg 0x406b04
mov dword [esp + 0x58], 0
jmp 0x406b67
mov eax, dword [eax + 8]
mov ecx, dword [eax + edx*4]
lea eax, [edx + 1]
mov edx, dword [esp + 0x4c]
mov dword [edx + 4], eax
test ecx, ecx
je 0x406b5b
movzx edx, word [ecx + 8]
mov eax, edx
and eax, 0x202
cmp eax, 0x202
jne 0x406b35
cmp byte [ecx + 0xa], 1
jne 0x406b35
mov ecx, dword [ecx + 0x10]
jmp 0x406b5b
test dl, 1
je 0x406b3e
xor ecx, ecx
jmp 0x406b5b
mov dl, 1
call fcn.00425910
mov ecx, eax
mov dword [esp + 0x28], eax
jmp 0x406b5f
mov ecx, dword [esp + 0x18]
add ecx, 4
mov dword [esp + 0x18], ecx
mov ecx, dword [ecx - 4]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x58], ecx
test ecx, ecx
jne 0x406b7d
cmp byte [esp + 0x17], 0xa
mov ecx, 0x538288
mov eax, 0x538290
cmovne ecx, eax
mov dword [esp + 0x28], ecx
xor edx, edx
xor eax, eax
mov dword [esp + 0x24], edx
test esi, esi
je 0x406bbd
mov edi, eax
nop dword [eax + eax]
mov cl, byte [edx + ecx]
test cl, cl
je 0x406bad
inc edx
lea eax, [edi + 1]
cmp cl, byte [esp + 0x10]
mov ecx, dword [esp + 0x28]
cmovne eax, edi
mov edi, eax
sub esi, 1
jne 0x406b90
mov dword [esp + 0x34], edi
mov edi, dword [esp + 0x64]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x24], edx
cmp dword [esp + 0x58], 0
je 0x406bd3
cmp byte [esp + 0x17], 0xa
mov dword [esp + 0x34], 1
je 0x406bdb
mov dword [esp + 0x34], 0
add eax, 3
add eax, edx
cmp eax, 0x46
jle 0x406c08
cdq
push edx
push eax
call fcn.00404e70
add esp, 8
mov dword [esp + 0x68], eax
mov dword [esp + 0x1c], eax
mov ecx, eax
test eax, eax
je 0x406f54
mov edx, dword [esp + 0x24]
jmp 0x406c13
lea ecx, [esp + 0xe0]
mov dword [esp + 0x1c], ecx
xor esi, esi
cmp dword [esp + 0x34], esi
je 0x406c26
mov eax, dword [esp + 0x10]
mov esi, 1
mov byte [ecx], al
xor eax, eax
test edx, edx
jle 0x406c4e
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov dl, byte [eax + edx]
mov byte [esi + ecx], dl
inc esi
cmp dl, byte [esp + 0x10]
jne 0x406c45
mov byte [esi + ecx], dl
inc esi
inc eax
cmp eax, edi
jl 0x406c30
mov edi, dword [esp + 0x64]
cmp dword [esp + 0x34], 0
je 0x406c5d
mov eax, dword [esp + 0x10]
mov byte [esi + ecx], al
inc esi
mov byte [esi + ecx], 0
mov al, byte [esp + 0xf]
mov ecx, dword [esp + 0x2c]
sub ecx, esi
mov dword [esp + 0x2c], ecx
test ecx, ecx
jle 0x406eb9
test al, al
jne 0x406cc9
mov eax, dword [edi + 0x10]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x2c]
cdq
mov dword [esp + 0x58], ecx
xor ecx, ecx
add dword [esp + 0x10], eax
mov eax, dword [edi + 8]
adc ecx, edx
js 0x406cb3
jg 0x406ca0
cmp dword [esp + 0x10], eax
jb 0x406cb3
mov edx, dword [esp + 0x2c]
mov ecx, edi
call fcn.00407040
mov edx, eax
test edx, edx
jle 0x406cc9
jmp 0x406cb7
mov edx, dword [esp + 0x58]
mov ecx, dword [edi + 0x10]
dec edx
mov eax, dword [edi + 4]
mov byte [ecx + eax], 0x20
inc dword [edi + 0x10]
test edx, edx
jg 0x406cb7
mov ecx, dword [edi + 0x10]
add ecx, esi
cmp ecx, dword [edi + 8]
jb 0x406ce4
mov edx, dword [esp + 0x1c]
mov ecx, edi
push esi
call fcn.004072a0
add esp, 4
jmp 0x406d00
test esi, esi
je 0x406d00
mov eax, dword [edi + 4]
push esi
push dword [esp + 0x20]
sub eax, esi
mov dword [edi + 0x10], ecx
add eax, ecx
push eax
call fcn.004e8950
add esp, 0xc
cmp byte [esp + 0xf], 0
je 0x406ef0
mov eax, dword [edi + 0x10]
xor ecx, ecx
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x10], eax
mov eax, esi
cdq
add dword [esp + 0x10], eax
mov eax, dword [edi + 8]
adc ecx, edx
js 0x406d41
jg 0x406d2e
cmp dword [esp + 0x10], eax
jb 0x406d41
mov edx, esi
mov ecx, edi
call fcn.00407040
mov esi, eax
test esi, esi
jle 0x406ef0
mov ecx, dword [edi + 0x10]
dec esi
mov eax, dword [edi + 4]
mov byte [ecx + eax], 0x20
inc dword [edi + 0x10]
test esi, esi
jg 0x406d41
jmp 0x406ef0
test byte [edi + 0x15], 1
je case.default.0x405cd9
mov ecx, dword [esp + 0x18]
add ecx, 4
mov dword [esp + 0x18], ecx
mov eax, dword [ecx - 4]
test eax, eax
je 0x406eb7
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x406eb7
mov esi, dword [edi + 0x10]
mov edx, dword [eax]
add esi, ecx
push ecx
cmp esi, dword [edi + 8]
jb 0x406d9f
mov ecx, edi
call fcn.004072a0
add esp, 4
jmp 0x406eb7
mov eax, dword [edi + 4]
sub eax, ecx
mov dword [edi + 0x10], esi
push edx
add eax, esi
push eax
call fcn.004e8950
add esp, 0xc
jmp 0x406eb7
test byte [edi + 0x15], 1
je case.default.0x405cd9
mov ecx, dword [esp + 0x18]
lea eax, [ecx + 8]
mov dword [esp + 0x70], eax
mov eax, dword [eax - 4]
lea edx, [eax + eax*4]
mov eax, dword [ecx]
shl edx, 4
mov dword [esp + 0x38], edx
mov dword [esp + 0x58], eax
mov edx, dword [edx + eax + 0xc]
test edx, edx
je 0x406e5a
mov ecx, edx
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406df0
sub ecx, esi
mov esi, dword [edi + 0x10]
and ecx, 0x3fffffff
add esi, ecx
cmp esi, dword [edi + 8]
jb 0x406e16
push ecx
mov ecx, edi
call fcn.004072a0
add esp, 4
jmp 0x406e2f
test ecx, ecx
je 0x406e2f
mov eax, dword [edi + 4]
push ecx
sub eax, ecx
mov dword [edi + 0x10], esi
push edx
add eax, esi
push eax
call fcn.004e8950
add esp, 0xc
mov ecx, dword [edi + 0x10]
inc ecx
cmp ecx, dword [edi + 8]
jb 0x406e4b
push 1
mov edx, 0x538298
mov ecx, edi
call fcn.004072a0
add esp, 4
jmp 0x406e56
mov eax, dword [edi + 4]
mov dword [edi + 0x10], ecx
mov byte [eax + ecx - 1], 0x2e
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x38]
mov edx, dword [edx + eax + 0x10]
test edx, edx
jne 0x406e6a
xor ecx, ecx
jmp 0x406e7f
mov ecx, edx
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406e70
sub ecx, esi
and ecx, 0x3fffffff
mov esi, dword [edi + 0x10]
add esi, ecx
cmp esi, dword [edi + 8]
jb 0x406e96
push ecx
mov ecx, edi
call fcn.004072a0
add esp, 4
jmp 0x406eaf
test ecx, ecx
je 0x406eaf
mov eax, dword [edi + 4]
push ecx
sub eax, ecx
mov dword [edi + 0x10], esi
push edx
add eax, esi
push eax
call fcn.004e8950
add esp, 0xc
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x18], ecx
xor esi, esi
mov ecx, dword [edi + 0x10]
add ecx, esi
cmp ecx, dword [edi + 8]
jb 0x406ed4
mov edx, dword [esp + 0x1c]
mov ecx, edi
push esi
call fcn.004072a0
add esp, 4
jmp 0x406ef0
test esi, esi
je 0x406ef0
mov eax, dword [edi + 4]
push esi
push dword [esp + 0x20]
sub eax, esi
mov dword [edi + 0x10], ecx
add eax, ecx
push eax
call fcn.004e8950
add esp, 0xc
mov esi, dword [esp + 0x68]
test esi, esi
je 0x406f3f
mov ecx, dword [edi]
test ecx, ecx
je 0x406f30
cmp dword [ecx + 0x1d0], 0
je 0x406f10
mov edx, esi
call fcn.004050c0
jmp 0x406f39
cmp esi, dword [ecx + 0x128]
jb 0x406f30
cmp esi, dword [ecx + 0x12c]
jae 0x406f30
mov eax, dword [ecx + 0x124]
mov dword [esi], eax
mov dword [ecx + 0x124], esi
jmp 0x406f39
push esi
call fcn.00405050
add esp, 4
xor eax, eax
mov dword [esp + 0x68], eax
mov edx, dword [esp + 0x50]
inc edx
movsx eax, byte [edx]
test eax, eax
je case.default.0x405cd9
mov esi, dword [esp + 0x18]
jmp 0x405926
mov byte [edi + 0x14], 1
mov dword [edi + 8], 0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.004e5962
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi + 0x10]
inc ecx
cmp ecx, dword [edi + 8]
jb 0x406fa3
push 1
mov edx, 0x53827c
mov ecx, edi
call fcn.004072a0
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.004e5962
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 4]
mov dword [edi + 0x10], ecx
mov byte [eax + ecx - 1], 0x25
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004e5962
mov esp, ebp
pop ebp
ret