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

Disassembly:
push edi
push esi
push ebx
sub esp, 0x10
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
cmp ecx, 0x13
jle 0x40b360
mov eax, 4
xor edi, edi
nop
add eax, eax
add edi, 1
lea edx, [eax + 0xf]
cmp ecx, edx
jg 0x40b310
mov dword [esp], edi
call fcn.0040d240
lea edx, [esi + 1]
mov dword [eax], edi
movzx ecx, byte [esi]
lea edi, [eax + 4]
mov byte [eax + 4], cl
mov eax, edi
test cl, cl
je 0x40b34f
lea esi, [esi]
nop
movzx ecx, byte [edx]
add eax, 1
add edx, 1
mov byte [eax], cl
test cl, cl
jne 0x40b340
test ebx, ebx
je 0x40b355
mov dword [ebx], eax
add esp, 0x10
mov eax, edi
pop ebx
pop esi
pop edi
ret
xor edi, edi
jmp 0x40b31c
push ebp
push edi
push esi
push ebx
sub esp, 0xac
mov eax, dword [esp + 0xc4]
mov esi, dword [esp + 0xd0]
mov edi, dword [esp + 0xd4]
mov edx, dword [esp + 0xc0]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0xc8]
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0xd8]
mov dword [esp + 0x30], edi
mov edi, dword [esp + 0xdc]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0xcc]
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edi
mov esi, dword [eax]
mov ecx, eax
mov dword [esp + 0x34], eax
mov eax, esi
and eax, 0xffffffcf
mov dword [ecx], eax
mov eax, esi
and eax, 7
cmp eax, 3
je 0x40b8b0
mov edi, esi
and edi, 4
mov dword [esp + 0x48], edi
jne 0x40b820
test eax, eax
je 0x40b870
mov edi, dword [edx]
xor edx, edx
mov eax, 0x20
cmp edi, 0x20
jle 0x40b659
add eax, eax
add edx, 1
cmp edi, eax
jg 0x40b650
mov dword [esp], edx
lea ebx, [edi - 1]
call fcn.0040d240
sar ebx, 5
mov ebp, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x28], ebx
lea edx, [ebp + 0x14]
lea ecx, [eax + ebx*4]
lea esi, [esi]
nop
mov ebx, dword [eax]
add eax, 4
add edx, 4
mov dword [edx - 4], ebx
cmp ecx, eax
jae 0x40b680
mov eax, dword [esp + 0x20]
add ecx, 1
mov ebx, dword [esp + 0x28]
add eax, 1
shl ebx, 2
cmp ecx, eax
mov eax, 0
cmovb ebx, eax
add ebx, 4
sar ebx, 2
jmp 0x40b6c0
test ebx, ebx
je 0x40b910
mov eax, ebx
sub ebx, 1
mov edx, dword [ebp + ebx*4 + 0x14]
test edx, edx
je 0x40b6b8
bsr edx, dword [ebp + ebx*4 + 0x14]
mov dword [ebp + 0x10], eax
shl eax, 5
xor edx, 0x1f
sub eax, edx
mov ebx, eax
mov dword [esp], ebp
call fcn.0040d0f0
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x9c], eax
mov dword [esp + 0x54], ecx
test eax, eax
jne 0x40b920
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x40b868
lea eax, [esp + 0x9c]
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.0040dbf0
fstp qword [esp + 0x40]
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x54]
and edx, 0xfffff
or edx, 0x3ff00000
mov dword [esp + 0x3c], edx
fld qword [esp + 0x38]
fsub dword [0x47c7c0]
add eax, ebx
mov dword [esp + 0x40], edx
mov dword [esp + 0x28], eax
mov edx, dword [esp + 0x28]
lea ecx, [eax - 1]
mov eax, 1
fmul qword [str.aCoc]
mov dword [esp + 0x4c], ecx
fadd qword [0x47c7d0]
fild dword [esp + 0x4c]
sub eax, edx
test ecx, ecx
fmul qword [0x47c7d8]
cmovns eax, ecx
sub eax, 0x435
test eax, eax
faddp st(1)
jle 0x40b79c
mov dword [esp + 0x4c], eax
fild dword [esp + 0x4c]
fmul qword [0x47c7e0]
faddp st(1)
fld st(0)
fisttp dword [esp + 0x4c]
fldz
fcompi st(1)
ja 0x40bd70
fstp st(0)
mov edx, dword [esp + 0x40]
mov eax, ecx
shl eax, 0x14
add eax, edx
mov dword [esp + 0x3c], eax
mov eax, ebx
sub eax, ecx
mov ecx, dword [esp + 0x4c]
lea edx, [eax - 1]
mov dword [esp + 0x50], edx
cmp ecx, 0x16
ja 0x40b948
fld qword [ecx*8 + 0x47c840]
fst qword [esp + 0x40]
fld qword [esp + 0x38]
fxch st(1)
fcompi st(1)
fstp st(0)
ja 0x40bdd0
test eax, eax
jle 0x40c77e
add edx, ecx
mov dword [esp + 0x6c], 0
mov dword [esp + 0x50], edx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
jmp 0x40b995
cmp eax, 4
jne 0x40b8f0
mov eax, dword [esp + 0x14]
mov dword [eax], 0xffff8000
mov eax, dword [esp + 0x18]
mov dword [esp + 0xc8], 3
mov dword [esp + 0xc0], 0x47c7b9
mov dword [esp + 0xc4], eax
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
jmp 0x40b2f0
mov dword [esp], ebp
call fcn.0040d330
mov eax, dword [esp + 0x14]
mov dword [eax], 1
mov eax, dword [esp + 0x18]
mov dword [esp + 8], 1
mov dword [esp], 0x47c7bd
mov dword [esp + 4], eax
call 0x40b2f0
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x28]
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x14]
mov dword [eax], 0xffff8000
mov eax, dword [esp + 0x18]
mov dword [esp + 0xc8], 8
mov dword [esp + 0xc0], str.Infinity
mov dword [esp + 0xc4], eax
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
jmp 0x40b2f0
mov dword [esp + 0x28], 0
mov eax, dword [esp + 0x28]
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp + 0x10], 0
jmp 0x40b6df
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.0040cfc0
mov eax, dword [esp + 0x9c]
mov edx, dword [esp + 0x24]
sub ebx, eax
lea ecx, [eax + edx]
mov dword [esp + 0x54], ecx
jmp 0x40b6fe
mov dword [esp + 0x6c], 1
mov edx, dword [esp + 0x50]
mov dword [esp + 0x60], 0
test edx, edx
jns 0x40b973
mov edx, 1
mov dword [esp + 0x50], 0
sub edx, eax
mov dword [esp + 0x60], edx
mov eax, dword [esp + 0x4c]
test eax, eax
jns 0x40c0b0
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x68], 0
sub dword [esp + 0x60], eax
neg eax
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x1c]
cmp eax, 9
ja 0x40bc08
cmp eax, 5
jg 0x40bd90
mov eax, dword [esp + 0x28]
add eax, 0x3fd
cmp eax, 0x7f7
setbe al
movzx eax, al
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x1c]
cmp eax, 4
je 0x40c083
cmp eax, 5
je 0x40c5bf
mov dword [esp + 0x70], 0
cmp eax, 2
je 0x40c08b
cmp eax, 3
jne 0x40bc10
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x4c]
add eax, ecx
mov dword [esp + 0x74], eax
add eax, 1
test eax, eax
mov dword [esp + 0x40], eax
mov edx, eax
jg 0x40ba18
mov edx, 1
mov eax, 1
mov dword [esp], eax
mov dword [esp + 0x9c], edx
call fcn.0040b2b0
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 0xc]
sub ecx, 1
mov dword [esp + 0x58], ecx
je 0x40ba5d
mov eax, 2
cmovns eax, ecx
and esi, 8
mov edx, eax
mov dword [esp + 0x58], eax
je 0x40bc98
mov eax, 3
sub eax, edx
mov dword [esp + 0x58], eax
mov edx, dword [esp + 0x40]
cmp edx, 0xe
setbe al
and al, byte [esp + 0x78]
mov esi, eax
je 0x40bc98
mov eax, dword [esp + 0x58]
or eax, dword [esp + 0x4c]
jne 0x40bc98
mov dword [esp + 0x9c], 0
mov ecx, dword [esp + 0x6c]
movsd xmm0, qword [esp + 0x38]
movsd qword [esp + 0x58], xmm0
test ecx, ecx
je 0x40bab0
fld qword [esp + 0x58]
fld1
fcompi st(1)
ja 0x40cae9
fstp st(0)
fld qword [esp + 0x58]
fadd st(0)
mov edx, dword [esp + 0x40]
fadd dword [0x47c7fc]
fstp qword [esp + 0x80]
mov eax, dword [esp + 0x80]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x84]
sub eax, 0x3400000
mov dword [esp + 0x7c], eax
test edx, edx
je 0x40c62d
mov dword [esp + 0x80], 0
mov edx, dword [esp + 0x40]
movsd xmm1, qword [esp + 0x58]
movsd qword [esp + 0x88], xmm1
mov eax, dword [esp + 0x70]
fld qword [esp + 0x78]
fld qword [edx*8 + 0x47c838]
test eax, eax
je 0x40c9a6
fdivr dword [0x47c804]
mov esi, dword [esp + 0x28]
lea ecx, [esi + 1]
fsubrp st(1)
fld qword [esp + 0x88]
fld st(0)
fisttp dword [esp + 0x38]
movzx eax, byte [esp + 0x38]
fild dword [esp + 0x38]
fsubp st(1)
fxch st(1)
add eax, 0x30
fcomi st(1)
mov byte [esi], al
jbe 0x40bba9
fstp st(0)
jmp 0x40cd90
mov eax, dword [esp + 0x9c]
add eax, 1
cmp eax, edx
mov dword [esp + 0x9c], eax
jge 0x40cdcc
fld dword [0x47c7f4]
add ecx, 1
fmul st(1), st(0)
fmulp st(2)
fxch st(1)
fld st(0)
fisttp dword [esp + 0x38]
movzx eax, byte [esp + 0x38]
fild dword [esp + 0x38]
fsubp st(1)
fxch st(1)
add eax, 0x30
fcomi st(1)
mov byte [ecx - 1], al
ja 0x40cd8e
fld st(1)
fsubr dword [0x47c7f0]
fxch st(1)
fcomi st(1)
fstp st(1)
jbe 0x40bb60
fstp st(0)
fstp st(0)
movzx eax, byte [ecx - 1]
mov ebx, dword [esp + 0x28]
jmp 0x40bbde
cmp edx, ebx
je 0x40cc43
movzx eax, byte [edx - 1]
mov ecx, edx
lea edx, [ecx - 1]
cmp al, 0x39
je 0x40bbd0
add eax, 1
mov byte [edx], al
mov eax, dword [esp + 0x80]
mov dword [esp + 0x48], 0x20
add eax, 1
mov dword [esp + 0x50], eax
jmp 0x40bd30
mov dword [esp + 0x1c], 0
mov dword [esp + 0x28], edi
fild dword [esp + 0x28]
fmul qword [0x47c7e8]
fisttp dword [esp + 0x28]
mov eax, dword [esp + 0x28]
add eax, 3
mov dword [esp], eax
mov dword [esp + 0x9c], eax
call fcn.0040b2b0
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x30], eax
sub eax, 1
mov dword [esp + 0x58], eax
je 0x40bde2
js 0x40c310
and esi, 8
je 0x40c321
mov esi, dword [esp + 0x58]
mov eax, 3
mov dword [esp + 0x30], 0
mov dword [esp + 0x70], 1
mov dword [esp + 0x74], 0xffffffff
mov dword [esp + 0x40], 0xffffffff
sub eax, esi
mov dword [esp + 0x58], eax
lea esi, [esi]
mov esi, dword [esp + 0x54]
test esi, esi
js 0x40bec0
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x4c]
cmp dword [eax + 0x14], esi
jl 0x40bec0
mov ebx, dword [esp + 0x30]
mov eax, dword [esp + 0x4c]
test ebx, ebx
fld qword [eax*8 + 0x47c840]
jns 0x40be12
mov eax, dword [esp + 0x40]
test eax, eax
jg 0x40be12
jne 0x40c5d4
fmul dword [0x47c800]
fld qword [esp + 0x38]
fxch st(1)
fcompi st(1)
fstp st(0)
jae 0x40c5d6
mov eax, dword [esp + 0x28]
lea ecx, [eax + 1]
mov byte [eax], 0x31
mov dword [esp], 0
mov dword [esp + 0x1c], ecx
call fcn.0040d330
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x48], 0x20
mov ecx, dword [esp + 0x1c]
add eax, 2
mov dword [esp + 0x50], eax
jmp 0x40bd30
fstp st(0)
fstp st(0)
lea esi, [esi]
nop
mov dword [esp], ebp
mov dword [esp + 0x1c], ecx
call fcn.0040d330
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x50]
mov byte [ecx], 0
mov dword [eax], esi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40bd57
mov dword [eax], ecx
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x48]
or dword [eax], esi
mov eax, dword [esp + 0x28]
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
ret
fild dword [esp + 0x4c]
fucompi st(1)
fstp st(0)
jp 0x40bd80
je 0x40b7ae
sub dword [esp + 0x4c], 1
jmp 0x40b7ae
sub eax, 4
mov dword [esp + 0x78], 0
mov dword [esp + 0x1c], eax
cmp eax, 4
je 0x40c083
cmp eax, 5
je 0x40c5bf
mov dword [esp + 0x70], 0
cmp eax, 2
je 0x40c08b
mov dword [esp + 0x1c], 3
jmp 0x40b9f3
sub dword [esp + 0x4c], 1
mov dword [esp + 0x6c], 0
jmp 0x40b950
mov eax, dword [esp + 0x54]
test eax, eax
js 0x40c7ca
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x4c]
cmp dword [eax + 0x14], esi
jl 0x40c7ca
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x40], 0xffffffff
fld qword [eax*8 + 0x47c840]
mov dword [esp + 0x9c], 1
fld qword [esp + 0x38]
fld st(0)
mov esi, dword [esp + 0x28]
fdiv st(2)
lea ecx, [esi + 1]
fisttp dword [esp + 0x1c]
fild dword [esp + 0x1c]
fmul st(2)
movzx eax, byte [esp + 0x1c]
add eax, 0x30
fsubp st(1)
mov byte [esi], al
mov eax, dword [esp + 0x4c]
fldz
fxch st(1)
add eax, 1
fucomi st(1)
fstp st(1)
mov dword [esp + 0x50], eax
jp 0x40be60
je 0x40bd27
lea esi, [esi]
mov eax, dword [esp + 0x9c]
mov esi, dword [esp + 0x40]
cmp eax, esi
je 0x40ca7a
fmul dword [0x47c7f4]
add eax, 1
add ecx, 1
mov dword [esp + 0x9c], eax
fld st(0)
fdiv st(2)
fisttp dword [esp + 0x1c]
fild dword [esp + 0x1c]
fmul st(2)
movzx eax, byte [esp + 0x1c]
add eax, 0x30
fsubp st(1)
mov byte [ecx - 1], al
fldz
fxch st(1)
fucomi st(1)
fstp st(1)
jp 0x40be60
jne 0x40be60
fstp st(0)
fstp st(0)
jmp 0x40bd30
mov ecx, dword [esp + 0x70]
test ecx, ecx
jne 0x40c360
mov eax, dword [esp + 0x60]
test eax, eax
je 0x40c058
mov eax, dword [esp + 0x50]
test eax, eax
je 0x40c058
mov edi, dword [esp + 0x60]
mov esi, dword [esp + 0x50]
cmp edi, esi
mov eax, esi
cmovle eax, edi
sub edi, eax
sub esi, eax
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x60], edi
mov dword [esp + 0x50], esi
test eax, eax
jne 0x40c060
xor esi, esi
mov dword [esp], 1
call fcn.0040d480
cmp dword [esp + 0x1c], 1
mov dword [esp + 0x38], eax
setle al
cmp ebx, 1
sete bl
and ebx, eax
mov eax, dword [esp + 0x68]
test eax, eax
jne 0x40c440
test bl, bl
jne 0x40cab3
mov ebx, 0x1f
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x60]
sub ebx, eax
sub ebx, 4
and ebx, 0x1f
add edx, ebx
mov dword [esp + 0x9c], ebx
mov eax, ebx
test edx, edx
jle 0x40bf81
mov dword [esp], ebp
mov dword [esp + 4], edx
call fcn.0040d830
mov ebp, eax
mov eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0x50]
add ecx, eax
test ecx, ecx
jle 0x40bf9f
mov eax, dword [esp + 0x38]
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.0040d830
mov dword [esp + 0x38], eax
cmp dword [esp + 0x1c], 2
mov ecx, dword [esp + 0x6c]
setg dl
test ecx, ecx
jne 0x40c480
mov eax, dword [esp + 0x40]
test eax, eax
jg 0x40c0c0
test dl, dl
je 0x40c0c0
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x40c410
mov eax, dword [esp + 0x38]
mov dword [esp + 8], 0
mov dword [esp + 4], 5
mov dword [esp], eax
call fcn.0040d3a0
mov dword [esp], ebp
mov dword [esp + 4], eax
mov dword [esp + 0x38], eax
call fcn.0040d970
test eax, eax
jle 0x40c410
mov eax, dword [esp + 0x28]
lea ecx, [eax + 1]
mov byte [eax], 0x31
mov eax, dword [esp + 0x38]
mov dword [esp + 0x1c], ecx
mov dword [esp], eax
call fcn.0040d330
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x48], 0x20
mov ecx, dword [esp + 0x1c]
add eax, 2
test esi, esi
mov dword [esp + 0x50], eax
je 0x40bd30
mov dword [esp], esi
mov dword [esp + 0x1c], ecx
call fcn.0040d330
mov ecx, dword [esp + 0x1c]
jmp 0x40bd30
mov eax, dword [esp + 0x64]
test eax, eax
je 0x40c07a
mov eax, dword [esp + 0x64]
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.0040d6b0
mov dword [esp + 0x64], 0
mov ebp, eax
mov edi, dword [esp + 0x60]
jmp 0x40bf12
mov dword [esp + 0x70], 1
mov ecx, dword [esp + 0x30]
mov eax, 1
test ecx, ecx
cmovg eax, ecx
mov edx, eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x30], eax
jmp 0x40ba18
add dword [esp + 0x50], eax
mov dword [esp + 0x68], eax
jmp 0x40b812
mov eax, dword [esp + 0x4c]
add eax, 1
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x64]
test eax, eax
je 0x40c500
add ebx, edi
test ebx, ebx
jle 0x40c0eb
mov dword [esp], esi
mov dword [esp + 4], ebx
call fcn.0040d830
mov esi, eax
mov ebx, dword [esp + 0x68]
mov dword [esp + 0x24], esi
test ebx, ebx
jne 0x40cb60
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x58], 2
mov dword [esp + 0x2c], eax
mov eax, 1
setne byte [esp + 0x60]
jmp 0x40c1e7
mov dword [esp], eax
call fcn.0040d330
mov eax, 1
test ebx, ebx
js 0x40c8c0
or ebx, dword [esp + 0x1c]
jne 0x40c148
mov ecx, dword [esp + 0x20]
test byte [ecx], 1
je 0x40c8c0
mov edi, dword [esp + 0x2c]
test eax, eax
lea ebx, [edi + 1]
mov edi, ebx
jle 0x40c160
cmp byte [esp + 0x60], 0
jne 0x40cc0a
movzx eax, byte [esp + 0x30]
mov byte [ebx - 1], al
mov eax, dword [esp + 0x40]
cmp dword [esp + 0x9c], eax
je 0x40cc38
mov dword [esp], ebp
mov dword [esp + 8], 0
mov dword [esp + 4], 0xa
call fcn.0040d3a0
mov dword [esp + 8], 0
mov ebp, eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], 0xa
mov dword [esp], esi
cmp esi, eax
je 0x40c300
call fcn.0040d3a0
mov dword [esp + 8], 0
mov esi, eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], 0xa
mov dword [esp], eax
call fcn.0040d3a0
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x2c], ebx
add eax, 1
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x38]
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.0040b3a0
mov dword [esp + 4], esi
lea ecx, [eax + 0x30]
mov dword [esp], ebp
mov edi, eax
mov dword [esp + 0x30], ecx
call fcn.0040d970
mov ecx, dword [esp + 0x24]
mov ebx, eax
mov eax, dword [esp + 0x38]
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.0040d9c0
mov ecx, dword [eax + 0xc]
test ecx, ecx
jne 0x40c120
mov dword [esp + 4], eax
mov dword [esp], ebp
mov dword [esp + 0x54], eax
call fcn.0040d970
mov edx, dword [esp + 0x54]
mov dword [esp + 0x4c], eax
mov dword [esp], edx
call fcn.0040d330
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x1c]
or eax, ecx
jne 0x40c5fd
mov ecx, dword [esp + 0x20]
mov ecx, dword [ecx]
mov edx, ecx
mov dword [esp + 0x4c], ecx
and edx, 1
or edx, dword [esp + 0x58]
jne 0x40c12d
cmp dword [esp + 0x30], 0x39
je 0x40ce08
test ebx, ebx
jle 0x40cf93
lea eax, [edi + 0x31]
mov dword [esp + 0x48], 0x20
mov dword [esp + 0x30], eax
mov edi, dword [esp + 0x2c]
mov edx, esi
movzx eax, byte [esp + 0x30]
mov esi, dword [esp + 0x24]
lea ecx, [edi + 1]
mov byte [edi], al
lea esi, [esi]
nop
mov eax, dword [esp + 0x38]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov dword [esp], eax
call fcn.0040d330
test esi, esi
mov ecx, dword [esp + 0x1c]
je 0x40bd30
mov edx, dword [esp + 0x20]
test edx, edx
je 0x40c040
cmp edx, esi
je 0x40c040
mov dword [esp], edx
call fcn.0040d330
mov ecx, dword [esp + 0x1c]
jmp 0x40c040
call fcn.0040d3a0
mov esi, eax
mov dword [esp + 0x24], eax
jmp 0x40c1d9
and esi, 8
jne 0x40ccc1
mov dword [esp + 0x58], 2
mov esi, dword [esp + 0x54]
test esi, esi
js 0x40c7ca
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x4c]
cmp dword [eax + 0x14], esi
jge 0x40bdff
mov dword [esp + 0x30], 0
mov dword [esp + 0x74], 0xffffffff
mov dword [esp + 0x40], 0xffffffff
lea esi, [esi]
lea esi, [esi]
mov esi, dword [esp + 0x2c]
sub edi, ebx
mov ecx, dword [esp + 0x54]
lea eax, [edi + 1]
mov dword [esp + 0x9c], eax
mov edx, dword [esi + 4]
sub ecx, edi
cmp ecx, edx
jge 0x40c6a7
mov eax, dword [esp + 0x1c]
sub eax, 3
and eax, 0xfffffffd
jne 0x40c803
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x64]
lea edx, [esi - 1]
cmp eax, edx
jge 0x40c7a2
mov esi, dword [esp + 0x64]
mov eax, edx
mov dword [esp + 0x54], edx
mov edi, dword [esp + 0x60]
mov dword [esp], 1
sub eax, esi
add dword [esp + 0x68], eax
mov eax, dword [esp + 0x40]
add dword [esp + 0x50], eax
lea esi, [edi + eax]
mov dword [esp + 0x9c], eax
mov dword [esp + 0x38], esi
call fcn.0040d480
test edi, edi
mov edx, dword [esp + 0x54]
mov esi, eax
jne 0x40cba6
mov eax, dword [esp + 0x38]
mov dword [esp + 0x60], eax
mov dword [esp], ebp
mov dword [esp + 4], edx
call fcn.0040d6b0
mov ebp, eax
mov dword [esp + 0x64], 1
jmp 0x40bf14
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call fcn.0040d330
mov eax, dword [esp + 0x30]
mov dword [esp + 0x48], 0x10
mov ecx, dword [esp + 0x28]
neg eax
mov dword [esp + 0x50], eax
test esi, esi
jne 0x40c040
jmp 0x40bd30
mov eax, dword [esp + 0x68]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call fcn.0040d6b0
mov dword [esp + 0x38], eax
test bl, bl
jne 0x40ccee
mov dword [esp + 0x68], 0
mov ebx, dword [esp + 0x38]
mov eax, dword [ebx + 0x10]
bsr ebx, dword [ebx + eax*4 + 0x10]
xor ebx, 0x1f
jmp 0x40bf4d
mov eax, dword [esp + 0x38]
mov dword [esp], ebp
mov byte [esp + 0x24], dl
mov dword [esp + 4], eax
call fcn.0040d970
movzx edx, byte [esp + 0x24]
test eax, eax
jns 0x40bfb3
mov eax, dword [esp + 0x4c]
mov dword [esp], ebp
mov dword [esp + 8], 0
mov dword [esp + 4], 0xa
sub eax, 1
mov dword [esp + 0x2c], eax
call fcn.0040d3a0
movzx edx, byte [esp + 0x24]
mov ebp, eax
mov eax, dword [esp + 0x74]
test eax, eax
setle al
and edx, eax
mov eax, dword [esp + 0x64]
test eax, eax
jne 0x40ce34
test dl, dl
jne 0x40cd20
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x40], eax
lea esi, [esi]
mov dword [esp + 0x1c], esi
mov edi, dword [esp + 0x28]
mov eax, 1
mov ebx, dword [esp + 0x40]
mov esi, dword [esp + 0x38]
jmp 0x40c544
mov dword [esp], ebp
mov dword [esp + 8], 0
mov dword [esp + 4], 0xa
call fcn.0040d3a0
mov ebp, eax
mov eax, dword [esp + 0x9c]
add eax, 1
mov dword [esp + 4], esi
add edi, 1
mov dword [esp], ebp
mov dword [esp + 0x9c], eax
call fcn.0040b3a0
add eax, 0x30
mov byte [edi - 1], al
cmp dword [esp + 0x9c], ebx
jl 0x40c520
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x30], eax
xor edx, edx
mov eax, dword [esp + 0x58]
test eax, eax
je 0x40c866
cmp eax, 2
je 0x40c8a5
cmp dword [ebp + 0x10], 1
jg 0x40c670
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x40c670
test eax, eax
setne al
movzx eax, al
shl eax, 4
mov dword [esp + 0x48], eax
lea esi, [esi]
mov ecx, edi
sub edi, 1
cmp byte [edi], 0x30
je 0x40c5b0
jmp 0x40c2b8
mov dword [esp + 0x1c], 5
mov dword [esp + 0x70], 1
jmp 0x40b9f3
fstp st(0)
mov dword [esp], 0
call fcn.0040d330
mov eax, dword [esp + 0x30]
mov dword [esp + 0x48], 0x10
mov ecx, dword [esp + 0x28]
neg eax
mov dword [esp + 0x50], eax
jmp 0x40bd30
mov eax, dword [esp + 0x4c]
jmp 0x40c12d
fstp st(0)
fld qword [esp + 0x58]
fadd st(0)
fadd dword [0x47c7fc]
fstp qword [esp + 0x38]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x3c]
sub eax, 0x3400000
mov dword [esp + 0x7c], eax
fld qword [esp + 0x58]
fsub dword [0x47c800]
fld qword [esp + 0x78]
fxch st(1)
fcomi st(1)
ja 0x40cbd3
fxch st(1)
fchs
fcompi st(1)
fstp st(0)
ja 0x40c5d6
jmp 0x40c653
fstp st(0)
mov eax, dword [esp + 0x58]
mov dword [esp + 0x58], 0
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edx
jmp 0x40bc98
mov ebx, dword [esp + 0x28]
jmp 0x40c688
cmp edi, ebx
je 0x40c84d
mov ecx, edi
movzx eax, byte [ecx - 1]
lea edi, [edi - 1]
cmp al, 0x39
je 0x40c680
add eax, 1
mov dword [esp + 0x48], 0x20
mov byte [edi], al
jmp 0x40c2b8
cmp dword [esp + 0x1c], 1
jg 0x40c391
mov esi, dword [esp + 0x64]
add dword [esp + 0x50], eax
mov dword [esp + 0x38], esi
mov esi, dword [esp + 0x60]
add eax, esi
mov edi, esi
mov dword [esp + 0x60], eax
mov dword [esp], 1
call fcn.0040d480
mov esi, eax
test edi, edi
je 0x40c770
mov edx, dword [esp + 0x50]
test edx, edx
jle 0x40c770
mov edx, dword [esp + 0x50]
cmp edi, edx
mov eax, edx
cmovle eax, edi
sub dword [esp + 0x60], eax
sub edx, eax
mov dword [esp + 0x9c], eax
sub edi, eax
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x64]
test edx, edx
je 0x40c3fe
mov eax, dword [esp + 0x38]
test eax, eax
je 0x40cae0
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.0040d6b0
mov dword [esp + 4], ebp
mov dword [esp], eax
mov esi, eax
call fcn.0040d530
mov dword [esp], ebp
mov dword [esp + 0x54], eax
call fcn.0040d330
mov edx, dword [esp + 0x64]
mov dword [esp + 0x64], 1
mov eax, dword [esp + 0x38]
mov ebp, dword [esp + 0x54]
sub edx, eax
je 0x40bf14
jmp 0x40c3f0
mov eax, dword [esp + 0x64]
test eax, eax
je 0x40c3fe
jmp 0x40c716
mov edx, 1
mov dword [esp + 0x6c], 0
sub edx, eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x60], edx
mov dword [esp + 0x50], eax
mov dword [esp + 0x68], eax
jmp 0x40b812
sub eax, edx
test esi, esi
mov dword [esp + 0x38], eax
jns 0x40cf28
mov dword [esp + 0x9c], 0
mov edi, dword [esp + 0x60]
mov eax, dword [esp + 0x40]
sub edi, eax
jmp 0x40c6ca
mov esi, dword [esp + 0x2c]
sub edi, ebx
mov dword [esp + 0x30], 0
mov ecx, dword [esp + 0x54]
lea eax, [edi + 1]
mov dword [esp + 0x40], 0xffffffff
mov dword [esp + 0x9c], eax
mov dword [esp + 0x74], 0xffffffff
mov edx, dword [esi + 4]
sub ecx, edi
cmp ecx, edx
jge 0x40c6b2
mov eax, dword [esp + 0x54]
mov esi, dword [esp + 0x40]
sub eax, edx
cmp dword [esp + 0x1c], 1
lea ecx, [eax + 1]
mov dword [esp + 0x9c], ecx
setg dl
test esi, esi
setg al
test dl, al
je 0x40c830
cmp ecx, esi
jg 0x40cead
mov eax, dword [esp + 0x64]
add dword [esp + 0x50], ecx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x60]
mov edi, eax
add eax, ecx
mov dword [esp + 0x60], eax
jmp 0x40c6ca
mov eax, dword [esp + 0x28]
mov dword [esp + 0x48], 0x20
add dword [esp + 0x50], 1
mov byte [eax], 0x31
jmp 0x40c2b8
mov dword [esp], ebp
mov dword [esp + 4], 1
mov dword [esp + 0x1c], edx
call fcn.0040d830
mov ebp, eax
mov eax, dword [esp + 0x38]
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.0040d970
mov edx, dword [esp + 0x1c]
test eax, eax
jg 0x40c670
jne 0x40c8a5
test byte [esp + 0x30], 1
jne 0x40c670
cmp dword [ebp + 0x10], 1
mov dword [esp + 0x48], 0x10
jg 0x40c5b0
mov eax, dword [ebp + 0x14]
jmp 0x40c59d
mov edx, dword [esp + 0x58]
test edx, edx
je 0x40cc55
cmp dword [ebp + 0x10], 1
jle 0x40cee2
cmp dword [esp + 0x58], 2
je 0x40cca7
mov edi, esi
mov ebx, dword [esp + 0x30]
mov esi, dword [esp + 0x24]
jmp 0x40c951
mov byte [ecx - 1], bl
mov dword [esp], esi
mov dword [esp + 8], 0
mov dword [esp + 4], 0xa
mov dword [esp + 0x20], ecx
call fcn.0040d3a0
cmp edi, esi
mov dword [esp], ebp
cmove edi, eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0xa
mov dword [esp + 0x1c], eax
call fcn.0040d3a0
mov ebp, eax
mov eax, dword [esp + 0x38]
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.0040b3a0
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
lea ebx, [eax + 0x30]
mov dword [esp + 0x2c], ecx
mov eax, dword [esp + 0x38]
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.0040d970
mov edx, dword [esp + 0x2c]
test eax, eax
lea ecx, [edx + 1]
jg 0x40c8f0
mov eax, ebx
mov dword [esp + 0x24], esi
mov ebx, ecx
mov esi, edi
cmp eax, 0x39
je 0x40ce0f
mov esi, dword [esp + 0x24]
add eax, 1
mov edx, edi
mov dword [esp + 0x48], 0x20
mov dword [esp + 0x30], eax
mov edi, dword [esp + 0x2c]
mov ecx, ebx
movzx eax, byte [esp + 0x30]
mov byte [edi], al
jmp 0x40c2b8
fmulp st(1)
mov dword [esp + 0x70], ebp
mov ecx, dword [esp + 0x28]
xor edi, edi
fld qword [esp + 0x38]
mov ebp, edx
mov dword [esp + 0x9c], 1
fld st(0)
jmp 0x40c9e2
fmul dword [0x47c7f4]
add edx, 1
mov edi, esi
mov dword [esp + 0x9c], edx
fld st(0)
fisttp dword [esp + 0x38]
mov eax, dword [esp + 0x38]
test eax, eax
je 0x40c9f8
fild dword [esp + 0x38]
mov edi, esi
fsubp st(1)
add ecx, 1
add eax, 0x30
mov byte [ecx - 1], al
mov edx, dword [esp + 0x9c]
cmp edx, ebp
jne 0x40c9d0
mov edx, edi
mov ebp, dword [esp + 0x70]
test dl, dl
fcmove st(0), st(1)
fstp st(1)
fld dword [0x47c804]
fld st(2)
fadd st(1)
fxch st(2)
fcomi st(2)
fstp st(2)
ja 0x40cdbd
fsubrp st(2)
fxch st(1)
fcompi st(1)
ja 0x40ce74
fstp st(0)
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x3c], edx
test eax, eax
js 0x40ce27
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 0x14]
test eax, eax
js 0x40ce27
fld qword [0x47c840]
mov dword [esp + 0x58], 0
jmp 0x40be12
mov eax, dword [esp + 0x58]
test eax, eax
je 0x40cd35
fstp st(0)
fstp st(0)
mov dword [esp + 0x48], 0x10
cmp eax, 1
jne 0x40bd30
mov esi, dword [esp + 0x4c]
movzx eax, byte [ecx - 1]
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x80], esi
jmp 0x40bbde
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x24]
mov eax, dword [eax + 4]
add eax, 1
cmp eax, ebx
jge 0x40bf48
add dword [esp + 0x60], 1
mov dword [esp + 0x68], 1
add dword [esp + 0x50], 1
jmp 0x40bf48
mov edx, dword [esp + 0x64]
jmp 0x40c3f0
test edx, edx
je 0x40c606
mov ecx, dword [esp + 0x74]
test ecx, ecx
jle 0x40c651
fmul dword [0x47c7f4]
fst qword [esp + 0x88]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x8c]
fmul dword [0x47c7f8]
fadd dword [0x47c7fc]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edx
mov edx, ecx
fstp qword [esp + 0x80]
mov eax, dword [esp + 0x80]
mov dword [esp + 0x80], 0xffffffff
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x84]
sub eax, 0x3400000
mov dword [esp + 0x7c], eax
jmp 0x40bb08
mov eax, dword [esi + 4]
mov dword [esp], eax
call fcn.0040d240
lea ecx, [eax + 0xc]
mov ebx, eax
mov eax, dword [esi + 0x10]
mov dword [esp], ecx
lea edx, [eax*4 + 8]
lea eax, [esi + 0xc]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
call sub.msvcrt.dll_memcpy
mov dword [esp + 4], 1
mov dword [esp], ebx
call fcn.0040d830
mov dword [esp + 0x24], eax
jmp 0x40c0fb
mov edi, dword [esp + 0x60]
mov ecx, dword [esp + 0x50]
cmp edi, ecx
mov eax, ecx
cmovle eax, edi
sub ecx, eax
mov dword [esp + 0x9c], eax
sub edi, eax
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x38]
sub ecx, eax
mov dword [esp + 0x60], ecx
jmp 0x40c3f0
fstp st(0)
fstp st(0)
mov eax, dword [esp + 0x28]
lea ecx, [eax + 1]
mov byte [eax], 0x31
mov dword [esp], 0
mov dword [esp + 0x1c], ecx
call fcn.0040d330
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x50], 2
mov dword [esp + 0x48], 0x20
jmp 0x40bd30
cmp dword [esp + 0x30], 0x39
je 0x40ce0f
movzx ecx, byte [esp + 0x30]
mov edx, esi
mov dword [esp + 0x48], 0x20
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x24]
add ecx, 1
mov byte [eax], cl
mov ecx, ebx
jmp 0x40c2b8
mov edx, esi
mov esi, dword [esp + 0x24]
jmp 0x40c573
add dword [esp + 0x80], 1
mov eax, 0x31
jmp 0x40bbe8
test eax, eax
jle 0x40cc9d
mov dword [esp], ebp
mov dword [esp + 4], 1
call fcn.0040d830
mov ebp, eax
mov eax, dword [esp + 0x38]
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.0040d970
test eax, eax
jle 0x40cf53
cmp dword [esp + 0x30], 0x39
je 0x40cf6d
lea eax, [edi + 0x31]
mov dword [esp + 0x58], 0x20
mov dword [esp + 0x30], eax
cmp dword [ebp + 0x10], 1
jle 0x40cf07
mov eax, dword [esp + 0x2c]
mov edx, esi
mov dword [esp + 0x48], 0x10
mov esi, dword [esp + 0x24]
lea ebx, [eax + 1]
jmp 0x40c994
mov dword [esp + 0x30], 0
mov dword [esp + 0x70], 1
mov dword [esp + 0x74], 0xffffffff
mov dword [esp + 0x40], 0xffffffff
mov dword [esp + 0x58], 1
jmp 0x40bc98
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 4]
add eax, 1
cmp dword [esp + 0x24], eax
jle 0x40c460
add dword [esp + 0x60], 1
mov dword [esp + 0x68], 1
add dword [esp + 0x50], 1
jmp 0x40c468
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x40], eax
jmp 0x40bfc7
fadd st(0)
movzx eax, byte [ecx - 1]
fcomi st(1)
ja 0x40ce95
fucompi st(1)
fstp st(0)
jp 0x40cd56
jne 0x40cd56
test byte [esp + 0x1c], 1
jne 0x40ce99
mov esi, dword [esp + 0x4c]
mov eax, ecx
mov dword [esp + 0x48], 0x10
mov dword [esp + 0x80], esi
lea esi, [esi]
nop
mov ecx, eax
cmp byte [ecx - 1], 0x30
lea eax, [eax - 1]
je 0x40cd70
mov eax, dword [esp + 0x80]
add eax, 1
mov dword [esp + 0x50], eax
jmp 0x40bd30
fstp st(0)
fldz
xor eax, eax
mov edx, 1
fucompi st(1)
fstp st(0)
setp al
cmovne eax, edx
shl eax, 4
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x80]
add eax, 1
mov dword [esp + 0x50], eax
jmp 0x40bd30
fstp st(0)
fstp st(0)
fstp st(0)
mov ebx, dword [esp + 0x28]
jmp 0x40bbde
fstp st(0)
fstp st(0)
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x3c], edx
test eax, eax
js 0x40cf46
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x58], 0
mov eax, dword [eax + 0x14]
test eax, eax
jns 0x40bcb5
jmp 0x40c360
mov eax, dword [esp + 0x2c]
lea ebx, [eax + 1]
mov edx, esi
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
mov edi, ebx
mov ebx, dword [esp + 0x28]
mov byte [eax], 0x39
jmp 0x40c688
mov dword [esp + 0x58], 0
jmp 0x40becc
mov dword [esp], esi
mov dword [esp + 8], 0
mov dword [esp + 4], 0xa
mov byte [esp + 0x24], dl
call fcn.0040d3a0
movzx edx, byte [esp + 0x24]
mov esi, eax
test dl, dl
jne 0x40cd20
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x40], eax
jmp 0x40c0d7
fldz
xor eax, eax
mov edx, 1
fucompi st(1)
fstp st(0)
setp al
cmovne eax, edx
shl eax, 4
mov dword [esp + 0x48], eax
mov eax, ecx
jmp 0x40cd70
fstp st(0)
fstp st(0)
mov esi, dword [esp + 0x4c]
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x80], esi
jmp 0x40bbde
mov eax, dword [esp + 0x40]
mov esi, dword [esp + 0x64]
lea edx, [eax - 1]
cmp esi, edx
jl 0x40c3a4
add dword [esp + 0x50], eax
sub esi, edx
mov dword [esp + 0x9c], eax
mov dword [esp + 0x38], esi
mov esi, dword [esp + 0x60]
add eax, esi
mov edi, esi
mov dword [esp + 0x60], eax
jmp 0x40c6ca
mov ebx, dword [ebp + 0x14]
test ebx, ebx
jne 0x40c8d6
test eax, eax
jg 0x40cc59
mov eax, dword [esp + 0x2c]
mov edx, esi
mov esi, dword [esp + 0x24]
lea ebx, [eax + 1]
jmp 0x40c994
mov ecx, dword [ebp + 0x14]
mov edx, esi
mov esi, dword [esp + 0x24]
test ecx, ecx
je 0x40cf7f
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x48], 0x10
lea ebx, [eax + 1]
jmp 0x40c994
add dword [esp + 0x50], esi
mov eax, esi
mov dword [esp + 0x9c], esi
mov esi, dword [esp + 0x60]
add eax, esi
mov edi, esi
mov dword [esp + 0x60], eax
jmp 0x40c6ca
mov dword [esp + 0x58], 0
jmp 0x40c360
jne 0x40cf60
test byte [esp + 0x30], 1
jne 0x40cc83
mov dword [esp + 0x58], 0x20
jmp 0x40cc9d
mov eax, dword [esp + 0x2c]
mov edx, esi
mov esi, dword [esp + 0x24]
lea ebx, [eax + 1]
jmp 0x40ce15
mov eax, dword [esp + 0x58]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x2c]
lea ebx, [eax + 1]
jmp 0x40c994
cmp dword [ebp + 0x10], 1
mov dword [esp + 0x48], 0x10
jg 0x40c29f
xor eax, eax
cmp dword [ebp + 0x14], 0
setne al
shl eax, 4
mov dword [esp + 0x48], eax
jmp 0x40c29f