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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x124
mov edx, dword [ebp + 8]
xor eax, eax
and dword [esp + 0x40], eax
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
mov dword [esp + 0x58], eax
test byte [edx + 0x15], 2
mov dword [esp + 0x30], edi
je 0x40523f
mov eax, dword [esi]
add esi, 4
mov dword [esp + 0x4c], eax
mov byte [esp + 0xf], 1
jmp 0x405243
mov byte [esp + 0xf], al
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x28], esi
movsx eax, byte [ecx]
test eax, eax
je case.default.0x40566f
movsd xmm0, qword [0x496570]
movsd qword [esp + 0xf0], xmm0
xorps xmm0, xmm0
movsd qword [esp + 0x80], xmm0
movsd xmm0, qword [0x496428]
movsd qword [esp + 0xd0], xmm0
movsd xmm0, qword [0x496420]
movsd qword [esp + 0xd8], xmm0
movsd xmm0, qword [0x496470]
movsd qword [esp + 0xe0], xmm0
movsd xmm0, qword [0x496528]
movsd qword [esp + 0xe8], xmm0
movsd xmm0, qword [0x4964f8]
movsd qword [esp + 0x120], xmm0
movsd xmm0, qword [0x496480]
movsd qword [esp + 0x70], xmm0
movsd xmm0, qword [0x496430]
movsd qword [esp + 0x108], xmm0
movsd xmm0, qword [0x4964d8]
movsd qword [esp + 0x110], xmm0
movsd xmm0, qword [0x496460]
mov dword [esp + 0x78], 0x488ee0
mov dword [esp + 0x6c], 6
mov dword [esp + 0x7c], 0x80000000
mov dword [esp + 0x50], 0xa
mov dword [esp + 0x54], 3
mov dword [esp + 0x68], 0x15e
mov dword [esp + 0x64], 0x64
movsd qword [esp + 0x118], xmm0
cmp eax, 0x25
je 0x405379
mov edi, ecx
mov dword [esp + 0x30], edi
inc ecx
mov al, byte [ecx]
test al, al
je 0x405356
cmp al, 0x25
jne 0x40534b
mov eax, ecx
mov dword [esp + 0x10], ecx
sub eax, edi
push eax
push edi
push edx
call fcn.004065ba
mov ecx, dword [esp + 0x1c]
add esp, 0xc
cmp byte [ecx], 0
je case.default.0x40566f
mov edx, dword [ebp + 8]
inc ecx
mov dword [esp + 0x10], ecx
movsx ecx, byte [ecx]
test ecx, ecx
je 0x4063e9
xor eax, eax
or dword [esp + 0x2c], 0xffffffff
mov dl, al
mov byte [esp + 0x37], al
mov byte [esp + 0x1f], al
mov byte [esp + 0x27], al
mov byte [esp + 0x17], al
mov byte [esp + 0xe], al
mov byte [esp + 0xc], al
mov dword [esp + 0x20], eax
mov byte [esp + 0x36], al
mov eax, dword [esp + 0x10]
mov byte [esp + 0xd], dl
cmp ecx, 0x31
jg 0x40556d
je 0x4055a5
cmp ecx, 0x2b
jg 0x40548f
je 0x405485
mov eax, ecx
sub eax, 0x20
je 0x40547e
sub eax, 1
je 0x405477
dec eax
sub eax, 1
je 0x405469
sub eax, 7
jne 0x405622
cmp byte [esp + 0xf], al
je 0x405412
mov ecx, dword [esp + 0x4c]
call fcn.00405155
mov esi, eax
mov dword [esp + 0x20], eax
jmp 0x405420
add esi, 4
mov dword [esp + 0x28], esi
mov esi, dword [esi - 4]
mov dword [esp + 0x20], esi
test esi, esi
jns 0x40543c
mov ecx, esi
mov byte [esp + 0xc], 1
neg ecx
xor eax, eax
cmp esi, 0x80000001
cmovge eax, ecx
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x10]
mov al, byte [edx + 1]
movsx ecx, al
cmp al, 0x2e
je 0x40545c
cmp al, 0x6c
je 0x40545c
lea eax, [edx + 1]
mov dl, 1
mov byte [esp + 0xd], dl
jmp 0x4055dd
mov dl, byte [esp + 0xd]
mov eax, dword [esp + 0x10]
jmp 0x4055e1
mov byte [esp + 0x27], 1
mov eax, dword [esp + 0x10]
jmp 0x4055e5
mov byte [esp + 0x1f], 1
jmp 0x40546e
mov byte [esp + 0xe], 0x20
jmp 0x40546e
mov byte [esp + 0xe], 0x2b
jmp 0x4055e5
mov eax, ecx
sub eax, 0x2c
je 0x405563
sub eax, 1
je 0x405559
sub eax, 1
je 0x4054b9
dec eax
sub eax, 1
jne 0x405622
mov byte [esp + 0x37], 1
jmp 0x40546e
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
movsx ecx, byte [eax]
cmp ecx, 0x2a
jne 0x40551e
cmp byte [esp + 0xf], 0
je 0x4054ea
mov ecx, dword [esp + 0x4c]
call fcn.00405155
mov dl, byte [esp + 0xd]
mov esi, eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x10]
jmp 0x4054f8
add esi, 4
mov dword [esp + 0x28], esi
mov esi, dword [esi - 4]
mov dword [esp + 0x2c], esi
test esi, esi
jns 0x405514
mov ecx, esi
or eax, 0xffffffff
neg ecx
cmp esi, 0x80000001
cmovge eax, ecx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
movsx ecx, byte [eax]
jmp 0x40554a
xor esi, esi
jmp 0x40553b
cmp ecx, 0x39
ja 0x405540
imul eax, esi, 0xa
lea esi, [ecx - 0x30]
add esi, eax
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
movsx ecx, byte [eax]
cmp ecx, 0x30
jge 0x405522
and esi, 0x7fffffff
mov dword [esp + 0x2c], esi
cmp ecx, 0x6c
jne 0x405622
dec eax
jmp 0x4055e5
mov byte [esp + 0xc], 1
jmp 0x40546e
mov byte [esp + 0x17], 0x2c
jmp 0x40546e
cmp ecx, 0x36
jg 0x405590
je 0x4055a5
mov eax, ecx
sub eax, 0x32
je 0x4055a1
sub eax, 1
je 0x4055a1
sub eax, 1
je 0x4055a1
sub eax, 1
jne 0x405622
jmp 0x4055a1
mov eax, ecx
sub eax, 0x37
je 0x4055a1
sub eax, 1
je 0x4055a1
sub eax, 1
jne 0x4055fa
mov eax, dword [esp + 0x10]
lea esi, [ecx - 0x30]
jmp 0x4055bb
cmp ecx, 0x39
ja 0x4055c8
imul eax, esi, 0xa
lea esi, [ecx - 0x30]
add esi, eax
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
movsx ecx, byte [eax]
cmp ecx, 0x30
jge 0x4055aa
and esi, 0x7fffffff
mov dword [esp + 0x20], esi
cmp ecx, 0x2e
je 0x4055dc
cmp ecx, 0x6c
jne 0x405622
dec eax
mov dword [esp + 0x10], eax
test dl, dl
jne 0x405622
inc eax
mov dword [esp + 0x10], eax
movsx ecx, byte [eax]
test ecx, ecx
je 0x405622
mov esi, dword [esp + 0x28]
jmp 0x4053ba
sub eax, 0x33
jne 0x405622
mov eax, dword [esp + 0x10]
inc eax
mov byte [esp + 0x36], 1
mov dword [esp + 0x10], eax
movsx ecx, byte [eax]
cmp ecx, 0x6c
jne 0x405622
inc eax
mov byte [esp + 0x36], 2
mov dword [esp + 0x10], eax
movsx ecx, byte [eax]
mov edx, dword [esp + 0x78]
xor esi, esi
mov dword [esp + 0x3c], edx
mov byte [esp + 0xd], 0x11
movsx eax, byte [edx]
cmp ecx, eax
je 0x40564f
add edx, dword [esp + 0x6c]
inc esi
cmp edx, 0x488f6a
jl 0x405631
mov cl, byte [esp + 0xd]
mov edx, dword [esp + 0x3c]
jmp 0x405663
imul edx, esi, 6
add edx, 0x488ee0
mov dword [esp + 0x3c], edx
mov cl, byte [edx + 3]
mov byte [esp + 0xd], cl
movzx eax, cl
cmp eax, 0x10
ja case.default.0x40566f
jmp dword [eax*4 + 0x406400]
mov byte [esp + 0x36], 1
mov byte [esp + 0x17], 0
test byte [edx + 2], 1
je 0x4056f4
cmp byte [esp + 0xf], 0
je 0x405698
mov ecx, dword [esp + 0x4c]
call fcn.00405155
jmp 0x4056c5
mov al, byte [esp + 0x36]
test al, al
je 0x4056b6
cmp al, 2
mov eax, dword [esp + 0x28]
jne 0x4056ba
mov edi, dword [eax]
add eax, 8
mov dword [esp + 0x28], eax
mov esi, dword [eax - 4]
jmp 0x4056c9
mov eax, dword [esp + 0x28]
add eax, 4
mov dword [esp + 0x28], eax
mov eax, dword [eax - 4]
cdq
mov edi, eax
mov esi, edx
test esi, esi
jg 0x4056ee
jl 0x4056d3
test edi, edi
jae 0x4056ee
test edi, edi
jne 0x4056e3
mov eax, dword [esp + 0x7c]
cmp esi, eax
jne 0x4056e3
mov esi, eax
jmp 0x4056ea
neg edi
adc esi, 0
neg esi
mov cl, 0x2d
jmp 0x405735
mov cl, byte [esp + 0xe]
jmp 0x405739
cmp byte [esp + 0xf], 0
je 0x40570a
mov ecx, dword [esp + 0x4c]
call fcn.00405155
mov edi, eax
mov esi, edx
jmp 0x405733
mov al, byte [esp + 0x36]
test al, al
je 0x405724
cmp al, 2
mov eax, dword [esp + 0x28]
jne 0x405728
mov edi, dword [eax]
add eax, 8
mov esi, dword [eax - 4]
jmp 0x40572f
mov eax, dword [esp + 0x28]
mov edi, dword [eax]
add eax, 4
xor esi, esi
mov dword [esp + 0x28], eax
xor cl, cl
mov byte [esp + 0xe], cl
mov eax, edi
or eax, esi
jne 0x405743
mov byte [esp + 0x27], al
cmp byte [esp + 0x37], 0
je 0x405766
xor eax, eax
test cl, cl
mov ecx, dword [esp + 0x20]
setne al
sub ecx, eax
mov eax, dword [esp + 0x2c]
cmp eax, ecx
cmovl eax, ecx
mov dword [esp + 0x2c], eax
jmp 0x40576a
mov eax, dword [esp + 0x2c]
cmp eax, 0x25
jge 0x405783
push 0x46
pop eax
lea ecx, [esp + 0x88]
mov dword [esp + 0x18], eax
mov dword [esp + 0x38], ecx
jmp 0x4057ce
cdq
add eax, dword [esp + 0x50]
mov ecx, edx
mov dword [esp + 0x18], eax
adc ecx, 0
cmp byte [esp + 0x17], 0
je 0x4057ac
mov eax, dword [esp + 0x2c]
cdq
idiv dword [esp + 0x54]
cdq
add dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
adc ecx, edx
push ecx
mov ecx, dword [ebp + 8]
push eax
call fcn.00405199
mov dword [esp + 0x60], eax
pop ecx
pop ecx
mov ecx, eax
mov dword [esp + 0x38], ecx
test eax, eax
je case.default.0x40566f
mov eax, dword [esp + 0x18]
dec eax
add eax, ecx
cmp byte [esp + 0xd], 0xf
mov dword [esp + 0x30], eax
jne 0x40583b
push 0
push dword [esp + 0x54]
push esi
push edi
call fcn.004790c0
mov dword [esp + 0x5c], eax
cmp eax, 4
jge 0x405815
push 0
push dword [esp + 0x54]
push esi
push edi
call fcn.00479050
push 0
push dword [esp + 0x54]
push edx
push eax
call fcn.004790c0
cmp eax, 1
jne 0x405819
test edx, edx
jne 0x405819
xor ecx, ecx
jmp 0x40581d
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x30]
mov al, byte [ecx*2 + 0x48607d]
mov byte [edx - 1], al
sub edx, 2
mov al, byte [ecx*2 + str.thstndrd]
mov dword [esp + 0x30], edx
mov byte [edx], al
mov ecx, dword [esp + 0x3c]
movzx eax, byte [ecx + 4]
add eax, str.0123456789ABCDEF0123456789abcdef
mov dword [esp + 0x40], eax
movzx eax, byte [ecx + 1]
cdq
mov ecx, edx
mov dword [esp + 0x5c], eax
mov edx, dword [esp + 0x30]
mov dword [esp + 0x60], ecx
push ecx
push eax
push esi
dec edx
push edi
mov dword [esp + 0x40], edx
call fcn.00478fa0
mov edi, eax
mov dword [esp + 0x12c], ebx
mov eax, dword [esp + 0x40]
mov esi, edx
mov edx, dword [esp + 0x30]
mov al, byte [ecx + eax]
mov ecx, dword [esp + 0x60]
mov byte [edx], al
mov eax, dword [esp + 0x5c]
test esi, esi
ja 0x40585f
jb 0x405897
test edi, edi
jne 0x40585f
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x38]
mov eax, esi
mov edi, dword [esp + 0x30]
sub eax, edi
lea ecx, [edx - 1]
add ecx, eax
mov eax, dword [esp + 0x2c]
cmp ecx, eax
jge 0x4058c7
sub eax, ecx
mov ecx, dword [esp + 0x2c]
dec edi
mov byte [edi], 0x30
sub eax, 1
jne 0x4058ba
mov dword [esp + 0x30], edi
cmp byte [esp + 0x17], 0
je 0x40590b
lea eax, [ecx - 1]
cdq
idiv dword [esp + 0x54]
mov esi, eax
inc edx
sub edi, esi
xor ecx, ecx
mov dword [esp + 0x30], edi
test esi, esi
jle 0x405903
lea eax, [esi + ecx]
mov al, byte [eax + edi]
mov byte [ecx + edi], al
sub edx, 1
jne 0x405900
mov al, byte [esp + 0x17]
inc ecx
mov edx, dword [esp + 0x54]
dec esi
mov byte [ecx + edi], al
inc ecx
jmp 0x4058e1
mov esi, dword [esp + 0x38]
mov edx, dword [esp + 0x18]
mov al, byte [esp + 0xe]
test al, al
je 0x40591a
dec edi
mov dword [esp + 0x30], edi
mov byte [edi], al
cmp byte [esp + 0x27], 0
je 0x405948
mov eax, dword [esp + 0x3c]
mov al, byte [eax + 5]
test al, al
je 0x405948
movzx eax, al
add eax, 0x484bc0
mov cl, byte [eax]
test cl, cl
je 0x405948
dec edi
inc eax
mov byte [edi], cl
mov cl, byte [eax]
test cl, cl
jne 0x40593a
mov dword [esp + 0x30], edi
sub esi, edi
dec esi
add esi, edx
jmp 0x4062c9
cmp byte [esp + 0xf], 0
je 0x405989
mov esi, dword [esp + 0x4c]
mov edx, dword [esi + 4]
cmp dword [esi], edx
jg 0x40596f
movsd xmm1, qword [esp + 0x80]
jmp 0x405999
mov eax, dword [esi + 8]
mov ecx, dword [eax + edx*4]
lea eax, [edx + 1]
mov dword [esi + 4], eax
call fcn.0041aaac
mov cl, byte [esp + 0xd]
movaps xmm1, xmm0
jmp 0x405999
mov eax, dword [esp + 0x28]
add eax, 8
mov dword [esp + 0x28], eax
movsd xmm1, qword [eax - 8]
mov esi, dword [esp + 0x2c]
test esi, esi
movsd xmm2, qword [esp + 0x80]
cmovs esi, dword [esp + 0x6c]
comisd xmm2, xmm1
mov dword [esp + 0x2c], esi
movsd qword [esp + 0x40], xmm1
jbe 0x4059d0
xorps xmm1, xmmword [esp + 0xf0]
movsd qword [esp + 0x40], xmm1
mov byte [esp + 0xe], 0x2d
cmp cl, 3
jne 0x4059de
test esi, esi
je 0x4059de
dec esi
mov dword [esp + 0x2c], esi
mov edi, dword [esp + 0x50]
mov ecx, esi
and ecx, 0xfff
xor edx, edx
mov eax, ecx
div edi
movsd xmm3, qword [edx*8 + 0x489b70]
cmp ecx, edi
jb 0x405a15
movsd xmm0, qword [esp + 0xd0]
mov eax, ecx
xor edx, edx
div edi
mulsd xmm3, xmm0
sub eax, 1
jne 0x405a0c
cmp byte [esp + 0xd], 1
jne 0x405a5c
movsd qword [esp + 0x40], xmm1
mov eax, dword [esp + 0x44]
shr eax, 0x14
and eax, 0x7ff
sub eax, 0x3ff
cdq
idiv dword [esp + 0x54]
add eax, esi
cmp eax, 0xf
jge 0x405a4f
movaps xmm0, xmm1
mulsd xmm0, qword [esp + 0xd8]
addsd xmm3, xmm0
movaps xmm0, xmm3
addsd xmm1, xmm0
movsd qword [esp + 0x40], xmm1
xor edi, edi
movaps xmm0, xmm1
mov dword [esp + 0x18], edi
call fcn.00407053
test eax, eax
je 0x405a80
mov esi, dword [esp + 0x54]
mov edi, 0x48ef5c
mov dword [esp + 0x30], edi
jmp 0x4062c9
comisd xmm1, xmm2
jbe 0x405baa
movsd xmm4, qword [esp + 0xe8]
comisd xmm1, xmm4
mov ecx, dword [esp + 0x68]
movsd xmm5, qword [esp + 0xe0]
movaps xmm2, xmm5
jb 0x405ac8
mov eax, dword [esp + 0x64]
cmp edi, ecx
jg 0x405ac4
mulsd xmm2, xmm4
add edi, eax
movaps xmm0, xmm2
mulsd xmm0, xmm4
comisd xmm1, xmm0
jae 0x405aad
mov dword [esp + 0x18], edi
movsd xmm4, qword [esp + 0x120]
movaps xmm0, xmm2
mulsd xmm0, xmm4
comisd xmm1, xmm0
jb 0x405af9
mov eax, dword [esp + 0x50]
cmp edi, ecx
jg 0x405af5
movaps xmm2, xmm0
add edi, eax
mulsd xmm0, xmm4
comisd xmm1, xmm0
jae 0x405ae2
mov dword [esp + 0x18], edi
movsd xmm4, qword [esp + 0x70]
movaps xmm0, xmm2
mulsd xmm0, xmm4
comisd xmm1, xmm0
jb 0x405b22
cmp edi, ecx
jg 0x405b1e
movaps xmm2, xmm0
inc edi
mulsd xmm0, xmm4
comisd xmm1, xmm0
jae 0x405b0c
mov dword [esp + 0x18], edi
divsd xmm1, xmm2
movsd xmm0, qword [esp + 0x108]
comisd xmm0, xmm1
movsd qword [esp + 0x40], xmm1
jbe 0x405b5b
movsd xmm2, qword [esp + 0x110]
mulsd xmm1, xmm2
sub edi, 8
comisd xmm0, xmm1
ja 0x405b44
mov dword [esp + 0x18], edi
movsd qword [esp + 0x40], xmm1
comisd xmm5, xmm1
jbe 0x405b76
mulsd xmm1, xmm4
dec edi
comisd xmm5, xmm1
ja 0x405b61
mov dword [esp + 0x18], edi
movsd qword [esp + 0x40], xmm1
cmp edi, ecx
jle 0x405bb0
mov cl, byte [esp + 0xe]
lea edi, [esp + 0x88]
xor eax, eax
mov byte [esp + 0x88], cl
test cl, cl
mov dword [esp + 0x30], edi
setne al
mov dword [esp + eax + 0x88], 0x666e49
lea esi, [eax + 3]
jmp 0x4062c9
movsd xmm4, qword [esp + 0x70]
mov al, byte [esp + 0xd]
lea esi, [esp + 0x88]
cmp al, 1
je 0x405c10
addsd xmm1, xmm3
comisd xmm1, xmm4
movsd qword [esp + 0x40], xmm1
jb 0x405be3
mulsd xmm1, qword [esp + 0x118]
inc edi
mov dword [esp + 0x18], edi
movsd qword [esp + 0x40], xmm1
cmp al, 3
jne 0x405c10
cmp byte [esp + 0x27], 0
sete byte [esp + 0x17]
cmp edi, 0xfffffffc
jl 0x405c08
mov eax, dword [esp + 0x2c]
cmp edi, eax
jg 0x405c08
sub eax, edi
mov dword [esp + 0x2c], eax
mov al, 1
jmp 0x405c0a
mov al, 2
mov byte [esp + 0xd], al
jmp 0x405c18
mov dl, byte [esp + 0x1f]
mov byte [esp + 0x17], dl
xor edi, edi
cmp al, 2
cmovne edi, dword [esp + 0x18]
xor eax, eax
test edi, edi
cmovg eax, edi
cdq
mov ecx, eax
mov dword [esp + 0x38], edx
mov eax, dword [esp + 0x2c]
cdq
add ecx, eax
mov eax, dword [esp + 0x20]
adc dword [esp + 0x38], edx
cdq
add ecx, eax
mov eax, dword [esp + 0x38]
adc eax, edx
add ecx, 0xf
adc eax, 0
js 0x405c70
jg 0x405c56
cmp ecx, 0x46
jbe 0x405c70
push eax
push ecx
mov ecx, dword [ebp + 8]
call fcn.00405199
mov dword [esp + 0x60], eax
mov esi, eax
pop ecx
pop ecx
test eax, eax
je case.default.0x40566f
movzx eax, byte [esp + 0x1f]
mov dh, byte [esp + 0xe]
imul ecx, eax, 0xa
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x30], esi
add ecx, 0x10
test eax, eax
mov dword [esp + 0x60], ecx
setg dl
or dl, byte [esp + 0x1f]
or dl, byte [esp + 0x27]
mov byte [esp + 0x27], dl
test dh, dh
je 0x405ca3
mov byte [esi], dh
inc esi
test edi, edi
jns 0x405cad
mov byte [esi], 0x30
inc esi
jmp 0x405cee
movsd xmm1, qword [esp + 0x40]
movsd xmm2, qword [esp + 0x70]
test ecx, ecx
jg 0x405cc1
mov al, 0x30
jmp 0x405cd8
cvttsd2si eax, xmm1
dec ecx
movd xmm0, eax
add al, 0x30
cvtdq2pd xmm0, xmm0
subsd xmm1, xmm0
mulsd xmm1, xmm2
mov byte [esi], al
inc esi
sub edi, 1
jns 0x405cb9
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x60], ecx
movsd qword [esp + 0x40], xmm1
test dl, dl
je 0x405cf6
mov byte [esi], 0x2e
inc esi
add edi, 1
jns 0x405d54
neg edi
push edi
push 0x30
push esi
call fcn.00461a70
mov eax, dword [esp + 0x38]
add esp, 0xc
mov ecx, dword [esp + 0x60]
add esi, edi
mov dl, byte [esp + 0x27]
sub eax, edi
jmp 0x405d54
dec eax
mov dword [esp + 0x2c], eax
test ecx, ecx
jg 0x405d28
mov al, 0x30
jmp 0x405d4d
movsd xmm1, qword [esp + 0x40]
dec ecx
cvttsd2si eax, xmm1
movd xmm0, eax
add al, 0x30
cvtdq2pd xmm0, xmm0
subsd xmm1, xmm0
mulsd xmm1, qword [esp + 0x70]
movsd qword [esp + 0x40], xmm1
mov byte [esi], al
inc esi
mov eax, dword [esp + 0x2c]
test eax, eax
jg 0x405d1b
cmp byte [esp + 0x17], 0
je 0x405d89
test dl, dl
je 0x405d89
jmp 0x405d6a
mov esi, eax
mov byte [esi], 0
lea eax, [esi - 1]
cmp byte [eax], 0x30
je 0x405d65
cmp byte [esi - 1], 0x2e
jne 0x405d89
cmp byte [esp + 0x1f], 0
je 0x405d85
mov byte [esi], 0x30
inc esi
jmp 0x405d89
dec esi
mov byte [esi], 0
cmp byte [esp + 0xd], 2
jne 0x405dec
mov eax, dword [esp + 0x3c]
lea edi, [esi + 2]
movzx eax, byte [eax + 4]
mov al, byte [eax + str.0123456789ABCDEF0123456789abcdef]
mov byte [esi], al
mov eax, dword [esp + 0x18]
cdq
mov ecx, eax
xor ecx, edx
sub ecx, edx
cmp dword [esp + 0x18], 0
setl al
lea eax, [eax*2 + 0x2b]
mov byte [esi + 1], al
mov esi, edi
cmp ecx, dword [esp + 0x64]
jl 0x405dd8
mov eax, ecx
lea esi, [edi + 1]
cdq
idiv dword [esp + 0x64]
add al, 0x30
mov ecx, edx
mov byte [edi], al
mov eax, ecx
cdq
idiv dword [esp + 0x50]
add al, 0x30
add dl, 0x30
mov byte [esi], al
mov byte [esi + 1], dl
add esi, 2
mov edi, dword [esp + 0x30]
mov cl, byte [esp + 0xc]
mov eax, dword [esp + 0x20]
mov byte [esi], 0
sub esi, edi
cmp byte [esp + 0x37], 0
je 0x4062d1
test cl, cl
jne 0x4062d1
cmp esi, eax
jge 0x4062d1
mov ecx, eax
sub ecx, esi
mov esi, eax
mov edx, esi
cmp esi, ecx
jl 0x405e37
mov esi, edi
sub esi, ecx
mov al, byte [esi + edx]
mov byte [edx + edi], al
dec edx
cmp edx, ecx
jge 0x405e28
mov esi, dword [esp + 0x20]
xor eax, eax
cmp byte [esp + 0xe], al
setne al
test ecx, ecx
je 0x4062c9
push ecx
add eax, edi
push 0x30
push eax
call fcn.00461a70
add esp, 0xc
jmp 0x4062c9
cmp byte [esp + 0xf], 0
jne 0x4063aa
mov eax, dword [esp + 0x28]
add eax, 4
mov dword [esp + 0x28], eax
mov ecx, dword [eax - 4]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov dword [ecx], eax
jmp 0x4063aa
lea edi, [esp + 0x88]
mov byte [esp + 0x88], 0x25
xor esi, esi
mov dword [esp + 0x30], edi
inc esi
jmp 0x4062c9
cmp byte [esp + 0xf], 0
je 0x405f07
mov ecx, dword [esp + 0x4c]
call fcn.00405177
xor esi, esi
mov edx, eax
inc esi
mov dword [esp + 0x18], esi
test edx, edx
je 0x405efa
mov cl, byte [edx]
inc edx
mov byte [esp + 0x88], cl
movsx ecx, cl
and ecx, 0xc0
cmp cl, 0xc0
jne 0x405fcc
mov cl, byte [edx]
mov al, cl
and al, 0xc0
cmp al, 0x80
jne 0x405fcc
mov byte [esp + esi + 0x88], cl
inc esi
inc edx
mov dword [esp + 0x18], esi
cmp esi, 4
jl 0x405ed5
jmp 0x405fcc
mov byte [esp + 0x88], 0
jmp 0x405fcc
mov eax, dword [esp + 0x28]
add eax, 4
mov dword [esp + 0x28], eax
mov ecx, dword [eax - 4]
cmp ecx, 0x80
jae 0x405f2c
xor esi, esi
mov byte [esp + 0x88], cl
inc esi
jmp 0x405fc8
mov eax, ecx
cmp ecx, 0x800
jae 0x405f55
shr eax, 6
and cl, 0x3f
and al, 0x1f
sub al, 0x40
add cl, 0x80
mov byte [esp + 0x88], al
mov byte [esp + 0x89], cl
push 2
jmp 0x405fc7
mov dl, cl
and dl, 0x3f
add dl, 0x80
cmp ecx, 0x10000
jae 0x405f90
mov esi, dword [esp + 0x54]
shr eax, 0xc
shr ecx, 6
and al, 0xf
sub al, 0x20
mov byte [esp + 0x8a], dl
and cl, 0x3f
mov byte [esp + 0x88], al
add cl, 0x80
mov byte [esp + 0x89], cl
jmp 0x405fc8
shr eax, 0x12
and al, 7
mov byte [esp + 0x8b], dl
sub al, 0x10
mov byte [esp + 0x88], al
mov eax, ecx
shr eax, 0xc
shr ecx, 6
and al, 0x3f
add al, 0x80
and cl, 0x3f
add cl, 0x80
mov byte [esp + 0x89], al
mov byte [esp + 0x8a], cl
push 4
pop esi
mov dword [esp + 0x18], esi
mov edi, dword [esp + 0x2c]
cmp edi, 1
jle 0x40601c
mov ecx, dword [esp + 0x20]
sub ecx, edi
mov eax, ecx
inc ecx
mov dword [esp + 0x20], ecx
cmp ecx, 1
jle 0x406002
cmp byte [esp + 0xc], 0
jne 0x406002
push 0x20
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00406545
add esp, 0xc
and dword [esp + 0x20], 0
dec edi
push esi
lea eax, [esp + 0x8c]
push eax
push dword [ebp + 8]
call fcn.004065ba
add esp, 0xc
sub edi, 1
jne 0x406003
lea edi, [esp + 0x88]
mov dword [esp + 0x30], edi
jmp 0x40629a
cmp byte [esp + 0xf], 0
je 0x406046
mov ecx, dword [esp + 0x4c]
call fcn.00405177
mov edi, eax
mov dword [esp + 0x30], eax
mov cl, 5
jmp 0x406058
mov eax, dword [esp + 0x28]
add eax, 4
mov dword [esp + 0x28], eax
mov edi, dword [eax - 4]
mov dword [esp + 0x30], edi
test edi, edi
jne 0x406067
mov edi, 0x48ef60
mov dword [esp + 0x30], edi
jmp 0x4060c4
cmp cl, 6
jne 0x4060c4
mov esi, dword [ebp + 8]
cmp dword [esi + 0x10], 0
jne 0x4060c0
cmp dword [esi + 0xc], 0
je 0x4060c0
cmp dword [esp + 0x20], 0
jne 0x4060c0
cmp dword [esp + 0x2c], 0
jge 0x4060c0
cmp byte [esi + 0x14], 0
jne 0x4060c0
mov ecx, dword [esi]
mov edx, edi
mov dword [esi + 4], edi
call fcn.00404bd9
mov ecx, edi
mov dword [esi + 8], eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4060a3
or byte [esi + 0x15], 4
sub ecx, edx
and ecx, 0x7fffffff
mov dword [esi + 0x10], ecx
xor esi, esi
jmp 0x4062c9
mov dword [esp + 0x58], edi
mov ecx, dword [esp + 0x2c]
test ecx, ecx
js 0x40611b
cmp byte [esp + 0x1f], 0
je 0x4060fd
mov esi, edi
jmp 0x4060ee
mov al, byte [esi]
dec ecx
test al, al
je 0x4060f2
inc esi
cmp al, 0xc0
jb 0x4060ee
jmp 0x4060e6
inc esi
mov al, byte [esi]
and al, 0xc0
cmp al, 0x80
je 0x4060e5
test ecx, ecx
jg 0x4060d7
sub esi, edi
mov dword [esp + 0x18], esi
jmp 0x40629a
xor esi, esi
test ecx, ecx
jle 0x4062c9
cmp byte [esi + edi], 0
je 0x4062c9
inc esi
cmp esi, ecx
jl 0x406107
jmp 0x4062c9
mov esi, edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x406120
sub esi, ecx
and esi, 0x7fffffff
mov dword [esp + 0x18], esi
jmp 0x406293
push 0x27
pop eax
push 0x22
cmp cl, 0xe
pop edx
cmove eax, edx
cmp byte [esp + 0xf], 0
mov dword [esp + 0x38], eax
je 0x406164
mov ecx, dword [esp + 0x4c]
call fcn.00405177
mov cl, byte [esp + 0xd]
mov edx, eax
mov dword [esp + 0x3c], eax
jmp 0x406176
mov eax, dword [esp + 0x28]
add eax, 4
mov dword [esp + 0x28], eax
mov edx, dword [eax - 4]
mov dword [esp + 0x3c], edx
mov eax, edx
mov dword [esp + 0x40], eax
test edx, edx
jne 0x406194
cmp cl, 0xa
mov edx, str.NULL
mov esi, str._NULL_
cmovne edx, esi
mov dword [esp + 0x3c], edx
xor esi, esi
xor edi, edi
cmp dword [esp + 0x2c], esi
je 0x4061dd
mov cl, byte [edi + edx]
test cl, cl
je 0x4061d9
cmp cl, byte [esp + 0x38]
lea eax, [esi + 1]
cmovne eax, esi
cmp byte [esp + 0x1f], 0
mov esi, eax
je 0x4061d1
and cl, 0xc0
cmp cl, 0xc0
jne 0x4061d1
lea ecx, [edx + 1]
add ecx, edi
jmp 0x4061c9
inc edi
inc ecx
mov al, byte [ecx]
and al, 0xc0
cmp al, 0x80
je 0x4061c7
inc edi
sub dword [esp + 0x2c], 1
jne 0x40619e
mov eax, dword [esp + 0x40]
test eax, eax
je 0x4061f2
cmp byte [esp + 0xd], 0xa
jne 0x4061f2
mov dword [esp + 0x2c], 1
jmp 0x4061f7
and dword [esp + 0x2c], 0
lea eax, [edi + 3]
add eax, esi
cmp eax, 0x46
jle 0x406222
mov ecx, dword [ebp + 8]
cdq
push edx
push eax
call fcn.00405199
mov dword [esp + 0x60], eax
mov dword [esp + 0x38], eax
pop ecx
pop ecx
mov ecx, eax
test eax, eax
je case.default.0x40566f
jmp 0x40622d
lea ecx, [esp + 0x88]
mov dword [esp + 0x30], ecx
xor esi, esi
mov dword [esp + 0x18], esi
cmp dword [esp + 0x2c], esi
je 0x406244
mov eax, dword [esp + 0x38]
inc esi
mov byte [ecx], al
mov dword [esp + 0x18], esi
xor eax, eax
test edi, edi
jle 0x406278
mov edx, dword [esp + 0x3c]
mov cl, byte [eax + edx]
mov edx, dword [esp + 0x30]
mov byte [esi + edx], cl
inc esi
mov edx, dword [esp + 0x3c]
cmp cl, byte [esp + 0x38]
jne 0x40626f
mov edx, dword [esp + 0x30]
mov byte [esi + edx], cl
inc esi
mov edx, dword [esp + 0x3c]
inc eax
cmp eax, edi
jl 0x40624e
mov dword [esp + 0x18], esi
cmp dword [esp + 0x2c], 0
mov edi, dword [esp + 0x30]
je 0x40628f
mov eax, dword [esp + 0x38]
mov byte [esi + edi], al
inc esi
mov dword [esp + 0x18], esi
mov byte [esi + edi], 0
cmp byte [esp + 0x1f], 0
je 0x4062c9
mov eax, dword [esp + 0x20]
test eax, eax
jle 0x4062cd
lea edx, [esi - 1]
test edx, edx
js 0x4062cd
mov esi, eax
lea eax, [edx + edi]
mov al, byte [eax]
lea ecx, [esi + 1]
and al, 0xc0
cmp al, 0x80
cmovne ecx, esi
sub edx, 1
mov esi, ecx
jns 0x4062ab
mov dword [esp + 0x20], esi
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
mov cl, byte [esp + 0xc]
sub eax, esi
mov dword [esp + 0x20], eax
test eax, eax
jle 0x4063ac
test cl, cl
jne 0x4062f1
push 0x20
push eax
push dword [ebp + 8]
call fcn.00406545
add esp, 0xc
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.004065ba
add esp, 0xc
cmp byte [esp + 0xc], 0
je 0x4063ba
push 0x20
push dword [esp + 0x24]
push esi
call fcn.00406545
jmp 0x4063b7
mov ecx, dword [ebp + 8]
test byte [ecx + 0x15], 1
je case.default.0x40566f
mov eax, dword [esp + 0x28]
add eax, 4
mov dword [esp + 0x28], eax
mov eax, dword [eax - 4]
test eax, eax
je 0x4063aa
cmp dword [eax + 4], 0
je 0x4063aa
push dword [eax + 4]
push dword [eax]
push ecx
call fcn.004065ba
add esp, 0xc
jmp 0x4063aa
mov ecx, dword [ebp + 8]
test byte [ecx + 0x15], 1
je case.default.0x40566f
mov eax, dword [esp + 0x28]
lea edi, [eax + 8]
mov eax, dword [eax]
imul esi, dword [edi - 4], 0x48
mov dword [esp + 0x40], eax
mov eax, dword [esi + eax + 0xc]
test eax, eax
je 0x406392
push eax
push ecx
call fcn.004065fe
push 1
push 0x48ef74
push dword [ebp + 8]
call fcn.004065ba
mov ecx, dword [ebp + 8]
add esp, 0x14
mov eax, dword [esp + 0x40]
push dword [esi + eax + 0x10]
push ecx
call fcn.004065fe
pop ecx
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x34]
pop ecx
xor esi, esi
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.004065ba
add esp, 0xc
mov eax, dword [esp + 0x58]
test eax, eax
je 0x4063d0
mov ecx, dword [esi]
mov edx, eax
call fcn.00404c57
and dword [esp + 0x58], 0
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x28]
inc ecx
mov edx, dword [ebp + 8]
movsx eax, byte [ecx]
test eax, eax
jne 0x405340
jmp case.default.0x40566f
push 1
push 0x48ef58
push edx
call fcn.004065ba
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret