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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x104
mov eax, dword [0x4c2014]
xor eax, esp
mov dword [esp + 0x100], eax
push ebx
mov eax, edx
mov dword [esp + 0x34], ecx
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [esp + 0x58], eax
mov dword [esp + 0x54], edx
mov dword [esp + 0x50], edx
push esi
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x18], esi
push edi
mov edi, edx
test eax, eax
je 0x40bbce
mov dl, al
and dl, 2
mov byte [esp + 0x14], dl
je 0x40bbc6
mov eax, dword [esi]
add esi, 4
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x1c], esi
and al, 1
mov dword [esp + 0x60], eax
jmp 0x40bbd6
mov byte [esp + 0x60], dl
mov byte [esp + 0x14], dl
movsx eax, byte [ecx]
test eax, eax
je case.default.0x40bee7
movsd xmm0, qword [0x4ba130]
movsd qword [esp + 0x80], xmm0
xorps xmm0, xmm0
movsd qword [esp + 0x70], xmm0
movsd xmm0, qword [0x4ba018]
movsd qword [esp + 0x90], xmm0
movsd xmm0, qword [0x4ba010]
movsd qword [esp + 0x78], xmm0
movsd xmm0, qword [0x4ba020]
movsd qword [esp + 0x98], xmm0
movsd xmm0, qword [0x4ba0e0]
movsd qword [esp + 0xa0], xmm0
movsd xmm0, qword [0x4ba0d0]
movsd qword [esp + 0xa8], xmm0
movsd xmm0, qword [0x4ba0a8]
movsd qword [esp + 0xb0], xmm0
movsd xmm0, qword [0x4ba030]
movsd qword [esp + 0x68], xmm0
movsd xmm0, qword [0x4ba008]
movsd qword [esp + 0xb8], xmm0
cmp eax, 0x25
je 0x40bcb1
mov edi, ecx
inc ecx
mov al, byte [ecx]
test al, al
je 0x40bc8f
cmp al, 0x25
jne 0x40bc84
mov eax, ecx
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x3c]
sub eax, edi
push eax
mov edx, edi
call fcn.0040cb8e
pop ecx
mov ecx, dword [esp + 0x2c]
cmp byte [ecx], 0
je case.default.0x40bee7
inc ecx
movsx edx, byte [ecx]
test edx, edx
je 0x40c9a7
xor al, al
mov byte [esp + 0x3b], al
xor eax, eax
mov byte [esp + 0x16], al
mov byte [esp + 0x21], al
mov byte [esp + 0x3a], al
mov byte [esp + 0x17], al
mov byte [esp + 0x13], al
mov eax, edx
sub eax, 0x20
je 0x40bd1e
sub eax, 1
je 0x40bd17
dec eax
sub eax, 1
je 0x40bd10
sub eax, 8
je 0x40bd09
dec eax
sub eax, 1
je 0x40bd02
sub eax, 3
jne 0x40bd2b
mov byte [esp + 0x3b], 1
jmp 0x40bd23
mov byte [esp + 0x13], 1
jmp 0x40bd23
mov byte [esp + 0x17], 1
jmp 0x40bd23
mov byte [esp + 0x21], 1
jmp 0x40bd23
mov byte [esp + 0x16], 1
jmp 0x40bd23
mov byte [esp + 0x3a], 1
inc ecx
movsx edx, byte [ecx]
test edx, edx
jne 0x40bcd9
mov dword [esp + 0x2c], ecx
cmp edx, 0x2a
jne 0x40bd83
cmp byte [esp + 0x14], 0
je 0x40bd4a
mov ecx, dword [esp + 0x58]
call fcn.0040bb25
mov ecx, dword [esp + 0x2c]
jmp 0x40bd53
mov eax, dword [esi]
add esi, 4
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], eax
test eax, eax
jns 0x40bd79
mov ecx, eax
mov byte [esp + 0x13], 1
neg ecx
xor eax, eax
cmp dword [esp + 0x18], 0x80000001
cmovge eax, ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x18], eax
inc ecx
mov dword [esp + 0x2c], ecx
movsx edx, byte [ecx]
jmp 0x40bdad
xor eax, eax
cmp edx, 0x30
jl 0x40bda4
cmp edx, 0x39
ja 0x40bda0
imul eax, eax, 0xa
add edx, 0xffffffd0
add eax, edx
inc ecx
movsx edx, byte [ecx]
cmp edx, 0x30
jge 0x40bd8a
mov dword [esp + 0x2c], ecx
and eax, 0x7fffffff
mov dword [esp + 0x18], eax
cmp edx, 0x2e
jne 0x40be36
inc ecx
mov dword [esp + 0x2c], ecx
movsx edx, byte [ecx]
cmp edx, 0x2a
jne 0x40be0d
cmp byte [esp + 0x14], 0
je 0x40bddf
mov ecx, dword [esp + 0x58]
call fcn.0040bb25
mov ecx, dword [esp + 0x2c]
mov esi, eax
mov dword [esp + 0x24], eax
jmp 0x40bded
add esi, 4
mov dword [esp + 0x1c], esi
mov esi, dword [esi - 4]
mov dword [esp + 0x24], esi
inc ecx
mov dword [esp + 0x2c], ecx
movsx edx, byte [ecx]
test esi, esi
jns 0x40be3d
mov ecx, esi
or eax, 0xffffffff
neg ecx
cmp esi, 0x80000001
cmovge eax, ecx
mov esi, eax
jmp 0x40be39
xor esi, esi
cmp edx, 0x30
jl 0x40be2e
cmp edx, 0x39
ja 0x40be2a
imul eax, esi, 0xa
lea esi, [edx - 0x30]
add esi, eax
inc ecx
movsx edx, byte [ecx]
cmp edx, 0x30
jge 0x40be14
mov dword [esp + 0x2c], ecx
and esi, 0x7fffffff
jmp 0x40be39
or esi, 0xffffffff
mov dword [esp + 0x24], esi
mov ecx, dword [esp + 0x2c]
cmp edx, 0x6c
jne 0x40be73
mov eax, ecx
mov byte [esp + 0x23], 1
inc eax
mov dword [esp + 0x2c], eax
mov al, byte [eax]
cmp al, dl
jne 0x40be63
add ecx, 2
mov dword [esp + 0x2c], ecx
mov cl, byte [ecx]
jmp 0x40be65
mov cl, al
cmp al, 0x6c
movsx edx, cl
sete al
mov byte [esp + 0x22], al
jmp 0x40be7d
xor al, al
mov byte [esp + 0x22], al
mov byte [esp + 0x23], al
mov ecx, 0x4b36b0
mov byte [esp + 0x15], 0
xor eax, eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x30], eax
movsx eax, byte [ecx]
cmp edx, eax
je 0x40beb3
inc dword [esp + 0x30]
push 6
pop eax
add ecx, eax
cmp ecx, 0x4b373a
jl 0x40be91
mov ch, byte [esp + 0x15]
mov edx, dword [esp + 0x4c]
jmp 0x40beda
imul edx, dword [esp + 0x30], 6
add edx, 0x4b36b0
cmp byte [esp + 0x60], 0
mov dword [esp + 0x4c], edx
jne 0x40bed3
test byte [edx + 2], 2
jne case.default.0x40bee7
mov ch, byte [edx + 3]
mov byte [esp + 0x15], ch
movzx eax, ch
dec eax
cmp eax, 0xf
ja case.default.0x40bee7
jmp dword [eax*4 + 0x40c9cd]
xor al, al
mov cl, 1
jmp 0x40befc
mov al, byte [esp + 0x22]
mov cl, byte [esp + 0x23]
test byte [edx + 2], 1
je 0x40bf8e
cmp byte [esp + 0x14], 0
je 0x40bf18
mov ecx, dword [esp + 0x58]
call fcn.0040bb25
jmp 0x40bf40
mov edx, dword [esp + 0x1c]
test al, al
je 0x40bf2e
mov eax, dword [edx]
add edx, 8
mov dword [esp + 0x1c], edx
mov esi, dword [edx - 4]
jmp 0x40bf42
mov eax, dword [edx]
add edx, 4
mov dword [esp + 0x1c], edx
test cl, cl
jne 0x40bf3f
mov dword [esp + 0x1c], edx
cdq
mov esi, edx
test esi, esi
jg 0x40bf70
jl 0x40bf4c
test eax, eax
jae 0x40bf70
test eax, eax
jne 0x40bf61
mov ecx, 0x80000000
cmp esi, ecx
jne 0x40bf61
and dword [esp + 0x30], eax
mov esi, ecx
jmp 0x40bf6c
neg eax
mov dword [esp + 0x30], eax
adc esi, 0
neg esi
mov cl, 0x2d
jmp 0x40bfcd
cmp byte [esp + 0x17], 0
mov dword [esp + 0x30], eax
je 0x40bf7f
mov cl, 0x2b
jmp 0x40bfcd
cmp byte [esp + 0x3a], 0
sete cl
dec cl
and cl, 0x20
jmp 0x40bfcd
cmp byte [esp + 0x14], 0
je 0x40bfa2
mov ecx, dword [esp + 0x58]
call fcn.0040bb25
mov esi, edx
jmp 0x40bfc7
mov edx, dword [esp + 0x1c]
test al, al
je 0x40bfb4
mov eax, dword [edx]
add edx, 8
mov esi, dword [edx - 4]
jmp 0x40bfc3
mov eax, dword [edx]
add edx, 4
xor esi, esi
mov dword [esp + 0x1c], edx
test cl, cl
jne 0x40bfc7
mov dword [esp + 0x1c], edx
mov dword [esp + 0x30], eax
xor cl, cl
mov edx, dword [esp + 0x30]
mov eax, edx
or eax, esi
mov byte [esp + 0x16], cl
jne 0x40bfdf
mov byte [esp + 0x21], al
cmp byte [esp + 0x3b], 0
je 0x40c002
xor eax, eax
test cl, cl
mov ecx, dword [esp + 0x18]
setne al
sub ecx, eax
mov eax, dword [esp + 0x24]
cmp eax, ecx
cmovl eax, ecx
mov dword [esp + 0x24], eax
jmp 0x40c006
mov eax, dword [esp + 0x24]
cmp eax, 0x3c
jge 0x40c01f
push 0x46
pop edi
lea eax, [esp + 0xc0]
mov dword [esp + 0x54], edi
mov dword [esp + 0x64], eax
jmp 0x40c048
lea edi, [eax + 0xa]
mov eax, edi
mov dword [esp + 0x54], edi
cdq
push edx
push eax
call fcn.0040b444
pop ecx
pop ecx
mov ecx, eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x5c], ecx
test ecx, ecx
je 0x40c999
mov edx, dword [esp + 0x30]
dec edi
add edi, eax
cmp byte [esp + 0x15], 0x10
jne 0x40c0aa
push 0
push 0xa
pop eax
push eax
push esi
push edx
call fcn.0049d610
mov dword [esp + 0x28], eax
cmp eax, 4
jge 0x40c08c
push 0
push 0xa
pop eax
push eax
push esi
push dword [esp + 0x3c]
call fcn.0045b730
push 0
push 0xa
push edx
push eax
call fcn.0049d610
cmp eax, 1
jne 0x40c090
test edx, edx
jne 0x40c090
xor ecx, ecx
jmp 0x40c094
mov ecx, dword [esp + 0x28]
mov al, byte [ecx*2 + 0x4b3775]
mov byte [edi - 1], al
sub edi, 2
mov al, byte [ecx*2 + str.thstndrd]
mov byte [edi], al
mov ecx, dword [esp + 0x4c]
movzx eax, byte [ecx + 4]
add eax, str.0123456789ABCDEF0123456789abcdef
mov dword [esp + 0x40], eax
movzx eax, byte [ecx + 1]
cdq
mov ecx, eax
mov dword [esp + 0x50], edx
mov eax, dword [esp + 0x30]
mov dword [esp + 0x28], ecx
push ebx
push edx
push ecx
push esi
push eax
dec edi
call fcn.0049d530
mov dword [esp + 0x38], ebx
pop ebx
mov dword [esp + 0x30], eax
mov esi, edx
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x50]
mov al, byte [ecx + eax]
mov ecx, dword [esp + 0x28]
mov byte [edi], al
mov eax, dword [esp + 0x30]
test esi, esi
ja 0x40c0ce
jb 0x40c103
test eax, eax
jne 0x40c0ce
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x64]
sub eax, edx
mov esi, dword [esp + 0x54]
sub eax, esi
inc eax
add eax, edi
jmp 0x40c11d
dec edi
dec eax
mov byte [edi], 0x30
test eax, eax
jg 0x40c118
mov al, byte [esp + 0x16]
test al, al
je 0x40c12c
dec edi
mov byte [edi], al
cmp byte [esp + 0x21], 0
je 0x40c152
mov eax, dword [esp + 0x4c]
mov al, byte [eax + 5]
test al, al
je 0x40c152
movzx eax, al
add eax, 0x4b0f18
jmp 0x40c14c
dec edi
inc eax
mov byte [edi], cl
mov cl, byte [eax]
test cl, cl
jne 0x40c148
sub edx, edi
dec esi
add esi, edx
jmp 0x40c89b
cmp byte [esp + 0x14], 0
je 0x40c190
mov edi, dword [esp + 0x58]
mov edx, dword [edi + 4]
cmp dword [edi], edx
jg 0x40c176
movsd xmm1, qword [esp + 0x70]
jmp 0x40c1a0
mov eax, dword [edi + 8]
mov ecx, dword [eax + edx*4]
lea eax, [edx + 1]
mov dword [edi + 4], eax
call fcn.00420056
mov ch, byte [esp + 0x15]
movaps xmm1, xmm0
jmp 0x40c1a0
mov edx, dword [esp + 0x1c]
add edx, 8
mov dword [esp + 0x1c], edx
movsd xmm1, qword [edx - 8]
movsd xmm2, qword [esp + 0x70]
test esi, esi
push 6
pop eax
cmovs esi, eax
movsd qword [esp + 0x40], xmm1
comisd xmm2, xmm1
mov dword [esp + 0x24], esi
jbe 0x40c1d0
xorps xmm1, xmmword [esp + 0x80]
mov cl, 0x2d
movsd qword [esp + 0x40], xmm1
jmp 0x40c1e8
cmp byte [esp + 0x17], 0
je 0x40c1db
mov cl, 0x2b
jmp 0x40c1e8
cmp byte [esp + 0x3a], 0
sete cl
dec cl
and cl, 0x20
mov byte [esp + 0x17], cl
cmp ch, 4
jne 0x40c1fa
test esi, esi
je 0x40c1fa
dec esi
mov dword [esp + 0x24], esi
movsd xmm3, qword [esp + 0x90]
mov eax, esi
movsd xmm7, qword [esp + 0x78]
and eax, 0xfff
jbe 0x40c21b
dec eax
mulsd xmm3, xmm7
test eax, eax
jg 0x40c212
cmp ch, 2
jne 0x40c22d
movaps xmm0, xmm3
addsd xmm1, xmm0
movsd qword [esp + 0x40], xmm1
xor edx, edx
movaps xmm0, xmm1
mov dword [esp + 0x30], edx
call fcn.0040d689
test eax, eax
je 0x40c24c
push 3
mov edi, 0x4b4fec
pop esi
jmp 0x40c89b
comisd xmm1, xmm2
jbe 0x40c392
movsd xmm4, qword [esp + 0xa0]
mov eax, 0x15e
comisd xmm1, xmm4
movsd xmm5, qword [esp + 0x98]
movaps xmm2, xmm5
jb 0x40c294
push 0x64
pop esi
cmp edx, eax
jg 0x40c290
mulsd xmm2, xmm4
add edx, esi
movaps xmm0, xmm2
mulsd xmm0, xmm4
comisd xmm1, xmm0
jae 0x40c279
mov dword [esp + 0x30], edx
movsd xmm4, qword [esp + 0xa8]
movaps xmm0, xmm2
mulsd xmm0, xmm4
comisd xmm1, xmm0
jb 0x40c2c2
cmp edx, eax
jg 0x40c2be
movaps xmm2, xmm0
add edx, 0x40
mulsd xmm0, xmm4
comisd xmm1, xmm0
jae 0x40c2aa
mov dword [esp + 0x30], edx
movsd xmm6, qword [esp + 0xb0]
movaps xmm0, xmm2
mulsd xmm0, xmm6
comisd xmm1, xmm0
jb 0x40c2f0
cmp edx, eax
jg 0x40c2ec
movaps xmm2, xmm0
add edx, 8
mulsd xmm0, xmm6
comisd xmm1, xmm0
jae 0x40c2d8
mov dword [esp + 0x30], edx
movsd xmm4, qword [esp + 0x68]
movaps xmm0, xmm2
mulsd xmm0, xmm4
comisd xmm1, xmm0
jb 0x40c319
cmp edx, eax
jg 0x40c315
movaps xmm2, xmm0
inc edx
mulsd xmm0, xmm4
comisd xmm1, xmm0
jae 0x40c303
mov dword [esp + 0x30], edx
divsd xmm1, xmm2
movsd xmm0, qword [esp + 0xb8]
comisd xmm0, xmm1
movsd qword [esp + 0x40], xmm1
jbe 0x40c349
mulsd xmm1, xmm6
sub edx, 8
comisd xmm0, xmm1
ja 0x40c332
mov dword [esp + 0x30], edx
movsd qword [esp + 0x40], xmm1
comisd xmm5, xmm1
jbe 0x40c364
mulsd xmm1, xmm4
dec edx
comisd xmm5, xmm1
ja 0x40c34f
mov dword [esp + 0x30], edx
movsd qword [esp + 0x40], xmm1
cmp edx, eax
jle 0x40c398
cmp cl, 0x2d
jne 0x40c374
mov edi, str._Inf
jmp 0x40c384
cmp cl, 0x2b
mov edi, str.Inf
mov eax, 0x4b5000
cmovne edi, eax
mov ecx, edi
call fcn.0040d6b7
mov esi, eax
jmp 0x40c89b
movsd xmm4, qword [esp + 0x68]
lea esi, [esp + 0xc0]
cmp ch, 2
je 0x40c3f1
addsd xmm1, xmm3
comisd xmm1, xmm4
movsd qword [esp + 0x40], xmm1
jb 0x40c3c3
mulsd xmm1, xmm7
inc edx
mov dword [esp + 0x30], edx
movsd qword [esp + 0x40], xmm1
cmp ch, 4
jne 0x40c3f1
cmp byte [esp + 0x21], 0
sete byte [esp + 0x23]
cmp edx, 0xfffffffc
jl 0x40c3e9
mov eax, dword [esp + 0x24]
cmp edx, eax
jg 0x40c3e9
sub eax, edx
mov dword [esp + 0x24], eax
mov al, 2
jmp 0x40c3eb
mov al, 3
mov byte [esp + 0x15], al
jmp 0x40c3fd
mov al, byte [esp + 0x16]
mov byte [esp + 0x23], al
mov al, byte [esp + 0x15]
xor ecx, ecx
cmp al, 3
cmovne ecx, edx
xor eax, eax
test ecx, ecx
mov dword [esp + 0x28], ecx
cmovg eax, ecx
cdq
mov edi, eax
mov dword [esp + 0x50], edx
mov eax, dword [esp + 0x24]
cdq
add edi, eax
mov eax, dword [esp + 0x18]
adc dword [esp + 0x50], edx
cdq
add edi, eax
mov eax, dword [esp + 0x50]
adc eax, edx
js 0x40c458
jg 0x40c437
cmp edi, 0x37
jbe 0x40c458
add edi, 0xf
adc eax, 0
push eax
push edi
call fcn.0040b444
mov dword [esp + 0x64], eax
mov esi, eax
pop ecx
pop ecx
test eax, eax
je 0x40c999
mov ecx, dword [esp + 0x28]
movzx eax, byte [esp + 0x16]
mov edi, esi
imul edx, eax, 0xa
mov ah, byte [esp + 0x17]
add edx, 0x10
cmp dword [esp + 0x24], 0
mov dword [esp + 0x54], edx
setg al
or al, byte [esp + 0x16]
or al, byte [esp + 0x21]
mov byte [esp + 0x22], al
test ah, ah
je 0x40c488
mov byte [esi], ah
inc esi
test ecx, ecx
jns 0x40c492
mov byte [esi], 0x30
inc esi
jmp 0x40c4d3
movsd xmm1, qword [esp + 0x40]
movsd xmm2, qword [esp + 0x68]
test edx, edx
jg 0x40c4a6
mov al, 0x30
jmp 0x40c4bd
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
sub ecx, 1
jns 0x40c49e
mov al, byte [esp + 0x22]
mov dword [esp + 0x54], edx
movsd qword [esp + 0x40], xmm1
test al, al
je 0x40c4db
mov byte [esi], 0x2e
inc esi
add ecx, 1
jns 0x40c504
neg ecx
push ecx
push 0x30
push esi
mov dword [esp + 0x34], ecx
call fcn.00479330
mov ecx, dword [esp + 0x30]
add esp, 0xc
add esi, dword [esp + 0x28]
sub ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x54]
jmp 0x40c53b
mov ecx, dword [esp + 0x24]
jmp 0x40c53b
dec ecx
test edx, edx
jg 0x40c513
mov al, 0x30
jmp 0x40c538
movsd xmm1, qword [esp + 0x40]
dec edx
cvttsd2si eax, xmm1
movd xmm0, eax
add al, 0x30
cvtdq2pd xmm0, xmm0
subsd xmm1, xmm0
mulsd xmm1, qword [esp + 0x68]
movsd qword [esp + 0x40], xmm1
mov byte [esi], al
inc esi
test ecx, ecx
jg 0x40c50a
cmp byte [esp + 0x23], 0
je 0x40c573
cmp byte [esp + 0x22], 0
je 0x40c573
jmp 0x40c554
mov esi, eax
mov byte [esi], 0
lea eax, [esi - 1]
cmp byte [eax], 0x30
je 0x40c54f
cmp byte [esi - 1], 0x2e
jne 0x40c573
cmp byte [esp + 0x16], 0
je 0x40c56f
mov byte [esi], 0x30
inc esi
jmp 0x40c573
dec esi
mov byte [esi], 0
cmp byte [esp + 0x15], 3
jne 0x40c5e1
mov eax, dword [esp + 0x4c]
push 0x64
movzx eax, byte [eax + 4]
mov al, byte [eax + str.0123456789ABCDEF0123456789abcdef]
mov byte [esi], al
lea eax, [esi + 2]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x34]
cdq
mov ecx, eax
xor ecx, edx
sub ecx, edx
cmp dword [esp + 0x34], 0
setl al
lea eax, [eax*2 + 0x2b]
mov byte [esi + 1], al
mov esi, dword [esp + 0x58]
pop eax
cmp ecx, eax
jl 0x40c5cc
mov eax, ecx
push 0x64
cdq
pop ecx
idiv ecx
mov ecx, edx
add al, 0x30
mov edx, esi
mov byte [edx], al
lea esi, [edx + 1]
mov eax, ecx
push 0xa
cdq
pop ecx
idiv ecx
add al, 0x30
add dl, 0x30
mov byte [esi], al
mov byte [esi + 1], dl
add esi, 2
mov byte [esi], 0
sub esi, edi
cmp byte [esp + 0x3b], 0
je 0x40c89b
mov al, byte [esp + 0x13]
mov edx, dword [esp + 0x18]
test al, al
jne 0x40c8a3
cmp esi, edx
jge 0x40c8a3
mov ecx, edx
sub ecx, esi
mov esi, edx
cmp esi, ecx
jl 0x40c626
mov esi, edi
sub esi, ecx
mov al, byte [esi + edx]
mov byte [edx + edi], al
dec edx
cmp edx, ecx
jge 0x40c617
mov esi, dword [esp + 0x18]
xor eax, eax
cmp byte [esp + 0x17], al
setne al
test ecx, ecx
je 0x40c89b
push ecx
add eax, edi
push 0x30
push eax
call fcn.00479330
add esp, 0xc
jmp 0x40c89b
cmp byte [esp + 0x14], 0
jne 0x40c940
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x3c]
add edx, 4
mov ecx, dword [edx - 4]
mov eax, dword [eax + 0xc]
mov dword [ecx], eax
jmp 0x40c93c
xor esi, esi
mov byte [esp + 0xc0], 0x25
lea edi, [esp + 0xc0]
inc esi
jmp 0x40c89b
cmp byte [esp + 0x14], 0
je 0x40c6a1
mov ecx, dword [esp + 0x58]
call fcn.0040bb47
test eax, eax
je 0x40c69d
movsx eax, byte [eax]
jmp 0x40c6af
xor eax, eax
jmp 0x40c6af
mov edx, dword [esp + 0x1c]
add edx, 4
mov dword [esp + 0x1c], edx
mov eax, dword [edx - 4]
mov dword [esp + 0x28], eax
cmp esi, 1
jle 0x40c6fc
mov edi, dword [esp + 0x18]
sub edi, esi
mov edx, edi
inc edi
mov dword [esp + 0x18], edi
cmp edi, 1
jle 0x40c6e2
cmp byte [esp + 0x13], 0
jne 0x40c6e2
mov ecx, dword [esp + 0x3c]
push 0x20
call fcn.0040cb0a
and dword [esp + 0x1c], 0
pop ecx
mov al, byte [esp + 0x28]
lea edx, [esi - 1]
mov ecx, dword [esp + 0x3c]
push eax
mov dword [esp + 0x44], eax
call fcn.0040cb0a
mov eax, dword [esp + 0x44]
pop ecx
xor esi, esi
mov byte [esp + 0xc0], al
inc esi
lea edi, [esp + 0xc0]
jmp 0x40c89b
mov al, byte [esp + 0x14]
test al, al
je 0x40c72f
mov ecx, dword [esp + 0x58]
call fcn.0040bb47
mov ch, byte [esp + 0x15]
mov edi, eax
mov al, byte [esp + 0x14]
jmp 0x40c73d
mov edx, dword [esp + 0x1c]
add edx, 4
mov dword [esp + 0x1c], edx
mov edi, dword [edx - 4]
test edi, edi
jne 0x40c748
mov edi, 0x4b435b
jmp 0x40c75a
cmp ch, 7
jne 0x40c75a
mov ecx, dword [esp + 0x5c]
test al, al
cmove ecx, edi
mov dword [esp + 0x5c], ecx
test esi, esi
js 0x40c384
mov eax, dword [esp + 0x24]
xor esi, esi
test eax, eax
jle 0x40c89b
cmp byte [esi + edi], 0
je 0x40c89b
inc esi
cmp esi, eax
jl 0x40c770
jmp 0x40c89b
push 0x27
pop eax
push 0x22
cmp ch, 0xf
pop edx
cmove eax, edx
cmp byte [esp + 0x14], 0
mov dword [esp + 0x30], eax
je 0x40c7a6
mov ecx, dword [esp + 0x58]
call fcn.0040bb47
jmp 0x40c7b4
mov edx, dword [esp + 0x1c]
add edx, 4
mov dword [esp + 0x1c], edx
mov eax, dword [edx - 4]
mov dword [esp + 0x4c], eax
mov ecx, eax
mov dword [esp + 0x40], ecx
test eax, eax
jne 0x40c7d8
cmp byte [esp + 0x15], 0xb
mov eax, str.NULL
mov edx, str._NULL_
cmovne eax, edx
mov dword [esp + 0x4c], eax
xor edx, edx
xor edi, edi
mov dword [esp + 0x28], edx
test esi, esi
je 0x40c809
mov cl, byte [edx + eax]
test cl, cl
je 0x40c801
inc edx
lea eax, [edi + 1]
cmp cl, byte [esp + 0x30]
cmovne eax, edi
mov edi, eax
mov eax, dword [esp + 0x4c]
sub esi, 1
jne 0x40c7e4
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x28], edx
test ecx, ecx
je 0x40c819
cmp byte [esp + 0x15], 0xb
jne 0x40c819
xor eax, eax
inc eax
jmp 0x40c81b
xor eax, eax
mov dword [esp + 0x50], eax
lea eax, [eax*2 + 1]
add eax, edx
add eax, edi
cmp eax, 0x46
jle 0x40c84d
cdq
push edx
push eax
call fcn.0040b444
mov dword [esp + 0x64], eax
mov edi, eax
pop ecx
pop ecx
test eax, eax
je 0x40c999
mov edx, dword [esp + 0x28]
jmp 0x40c854
lea edi, [esp + 0xc0]
mov eax, dword [esp + 0x50]
xor esi, esi
test eax, eax
je 0x40c865
mov ecx, dword [esp + 0x30]
inc esi
mov byte [edi], cl
xor ecx, ecx
test edx, edx
jle 0x40c88b
mov eax, dword [esp + 0x4c]
mov dl, byte [ecx + eax]
mov byte [esi + edi], dl
inc esi
cmp dl, byte [esp + 0x30]
jne 0x40c880
mov byte [esi + edi], dl
inc esi
inc ecx
cmp ecx, dword [esp + 0x28]
jl 0x40c86f
mov eax, dword [esp + 0x50]
test eax, eax
je 0x40c897
mov eax, dword [esp + 0x30]
mov byte [esi + edi], al
inc esi
mov byte [esi + edi], 0
mov al, byte [esp + 0x13]
mov edx, dword [esp + 0x18]
sub edx, esi
mov dword [esp + 0x18], edx
test edx, edx
jle 0x40c946
test al, al
jne 0x40c946
mov ecx, dword [esp + 0x3c]
push 0x20
call fcn.0040cb0a
pop ecx
jmp 0x40c946
mov edx, dword [esp + 0x1c]
add edx, 4
mov dword [esp + 0x1c], edx
mov edx, dword [edx - 4]
test edx, edx
je 0x40c940
cmp dword [edx + 4], 0
je 0x40c940
push dword [edx + 4]
mov edx, dword [edx]
mov ecx, dword [esp + 0x40]
call fcn.0040cb8e
pop ecx
jmp 0x40c940
mov edx, dword [esp + 0x1c]
lea eax, [edx + 8]
imul esi, dword [eax - 4], 0x50
mov dword [esp + 0x54], eax
mov eax, dword [edx]
mov dword [esp + 0x40], eax
mov edx, dword [esi + eax + 0xc]
test edx, edx
je 0x40c92b
mov ecx, dword [esp + 0x3c]
call fcn.0040cbc6
mov ecx, dword [esp + 0x3c]
mov edx, 0x4b4d88
push 1
call fcn.0040cb8e
mov eax, dword [esp + 0x44]
pop ecx
mov edx, dword [esi + eax + 0x10]
mov ecx, dword [esp + 0x3c]
call fcn.0040cbc6
mov edx, dword [esp + 0x54]
mov dword [esp + 0x1c], edx
xor esi, esi
and dword [esp + 0x18], esi
push esi
mov esi, dword [esp + 0x40]
mov edx, edi
mov ecx, esi
call fcn.0040cb8e
mov eax, dword [esp + 0x1c]
pop ecx
test eax, eax
jle 0x40c970
cmp byte [esp + 0x13], 0
je 0x40c970
push 0x20
mov edx, eax
mov ecx, esi
call fcn.0040cb0a
pop ecx
mov edx, dword [esp + 0x5c]
test edx, edx
je 0x40c984
push edx
call fcn.0040b681
and dword [esp + 0x60], 0
pop ecx
mov ecx, dword [esp + 0x2c]
inc ecx
movsx eax, byte [ecx]
test eax, eax
je case.default.0x40bee7
mov esi, dword [esp + 0x1c]
jmp 0x40bc7d
mov eax, dword [esp + 0x3c]
and dword [eax + 0x10], 0
mov byte [eax + 0x18], 1
jmp case.default.0x40bee7
mov ecx, dword [esp + 0x3c]
mov edx, 0x4b4fe8
push 1
call fcn.0040cb8e
pop ecx
mov ecx, dword [esp + 0x10c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0045ae81
mov esp, ebp
pop ebp
ret