Function at 0x40f510
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x104
mov al, byte [0x498e60]
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov byte [esp + 0x14], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x15]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp]
xor ebx, ebx
stosw word es:[edi], ax
push str.___TIMELEFTTOTAL_n
add ecx, 0x18fb50
stosb byte es:[edi], al
mov dword [ebp + 4], ebx
call fcn.00445d20
lea ecx, [esp + 0x14]
push 0xff
push ecx
push str.TIMELEFTTOTAL
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x40f776
mov ecx, dword [ebp]
lea edx, [esp + 0x14]
push edx
push str.___CGProtect::Load
add ecx, 0x18fb50
xor esi, esi
call fcn.00445df0
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 6
jb 0x40f776
cmp byte [esp + 0x15], 0x3a
jne 0x40f62b
cmp byte [esp + 0x18], 0x3a
jne 0x40f62b
mov al, byte [esp + 0x19]
mov cl, byte [esp + 0x1a]
lea edx, [esp + 0x10]
mov byte [esp + 0x10], al
push edx
mov byte [esp + 0x15], cl
mov byte [esp + 0x16], bl
mov byte [esp + 0x17], bl
call fcn.00479e6a
mov cl, byte [esp + 0x1b]
mov esi, eax
mov al, byte [esp + 0x1a]
lea edx, [esp + 0x14]
push edx
mov byte [esp + 0x18], al
mov byte [esp + 0x19], cl
mov byte [esp + 0x1a], bl
mov byte [esp + 0x1b], bl
call fcn.00479e6a
lea eax, [eax + eax*2]
lea ecx, [esp + 0x18]
push ecx
mov byte [esp + 0x1e], bl
lea eax, [eax + eax*4]
mov byte [esp + 0x1f], bl
lea esi, [esi + eax*4]
mov al, byte [esp + 0x20]
mov byte [esp + 0x1c], al
mov byte [esp + 0x1d], al
call fcn.00479e6a
lea eax, [eax + eax*4]
add esp, 0xc
lea eax, [eax + eax*4]
lea edx, [eax + eax*8]
shl edx, 4
add esi, edx
cmp byte [esp + 0x16], 0x3a
jne 0x40f6c3
cmp byte [esp + 0x19], 0x3a
jne 0x40f6c3
mov al, byte [esp + 0x1a]
mov cl, byte [esp + 0x1b]
lea edx, [esp + 0x10]
mov byte [esp + 0x10], al
push edx
mov byte [esp + 0x15], cl
mov byte [esp + 0x16], bl
mov byte [esp + 0x17], bl
call fcn.00479e6a
mov cl, byte [esp + 0x1c]
mov esi, eax
mov al, byte [esp + 0x1b]
lea edx, [esp + 0x14]
push edx
mov byte [esp + 0x18], al
mov byte [esp + 0x19], cl
mov byte [esp + 0x1a], bl
mov byte [esp + 0x1b], bl
call fcn.00479e6a
lea eax, [eax + eax*2]
mov cl, byte [esp + 0x1c]
mov dl, byte [esp + 0x1d]
mov byte [esp + 0x18], cl
lea eax, [eax + eax*4]
mov byte [esp + 0x19], dl
mov byte [esp + 0x1a], bl
mov byte [esp + 0x1b], bl
lea esi, [esi + eax*4]
lea eax, [esp + 0x18]
push eax
call fcn.00479e6a
lea eax, [eax + eax*4]
add esp, 0xc
lea eax, [eax + eax*4]
lea ecx, [eax + eax*8]
shl ecx, 4
add esi, ecx
cmp byte [esp + 0x17], 0x3a
jne 0x40f75f
cmp byte [esp + 0x1a], 0x3a
jne 0x40f75f
mov dl, byte [esp + 0x1b]
mov al, byte [esp + 0x1c]
lea ecx, [esp + 0x10]
mov byte [esp + 0x10], dl
push ecx
mov byte [esp + 0x15], al
mov byte [esp + 0x16], bl
mov byte [esp + 0x17], bl
call fcn.00479e6a
mov dl, byte [esp + 0x1d]
mov esi, eax
mov al, byte [esp + 0x1e]
lea ecx, [esp + 0x14]
push ecx
mov byte [esp + 0x18], dl
mov byte [esp + 0x19], al
mov byte [esp + 0x1a], bl
mov byte [esp + 0x1b], bl
call fcn.00479e6a
lea eax, [eax + eax*2]
mov cl, byte [esp + 0x1d]
mov byte [esp + 0x19], cl
mov byte [esp + 0x1b], bl
lea edx, [eax + eax*4]
mov al, byte [esp + 0x1c]
mov byte [esp + 0x18], al
lea eax, [esp + 0x18]
lea esi, [esi + edx*4]
mov dl, byte [esp + 0x1e]
push eax
mov byte [esp + 0x1e], dl
call fcn.00479e6a
lea eax, [eax + eax*4]
add esp, 0xc
lea eax, [eax + eax*4]
lea ecx, [eax + eax*8]
shl ecx, 4
add esi, ecx
mov ecx, dword [ebp]
push esi
push str.___m_TimeLeft
add ecx, 0x18fb50
mov dword [ebp + 4], esi
call fcn.00446020
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret