Function at 0x4092a9
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x2ee4]
mov eax, 0x2ee4
call fcn.00414690
push 0xffffffffffffffff
push 0x431907
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x43ec80]
xor eax, ebp
mov dword [ebp + 0x2ee0], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0x2ef0]
mov esi, 0x1770
push esi
mov dword [ebp - 0x18], ebx
call fcn.0041375e
mov edi, eax
push esi
push edi
push dword [ebp + 0x2eec]
mov dword [ebp - 0x1c], edi
call fcn.00403846
push edi
push str.entry__S
call fcn.0040ff78
add esp, 0x18
lea ecx, [ebp - 0x34]
call fcn.0040c918
and dword [ebp - 4], 0
mov esi, 0x433d5c
push esi
push edi
jmp 0x409363
push edi
call fcn.00414100
pop ecx
test eax, eax
je 0x409370
push edi
call fcn.00414100
inc eax
push eax
call fcn.0041375e
push edi
push eax
mov dword [ebp - 0x14], eax
call fcn.00414580
add esp, 0x10
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x34]
call fcn.00407177
push esi
push 0
call fcn.00414f90
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x40932f
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x28]
sar eax, 2
push eax
push 0x4357c4
call fcn.0040ff78
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x28]
and dword [ebp - 0x14], 0
sar eax, 2
pop ecx
pop ecx
test eax, eax
jbe 0x40957b
push dword [ebp - 0x14]
lea ecx, [ebp - 0x34]
call fcn.00407f5c
mov edi, dword [eax]
lea eax, [edi + 2]
push eax
lea eax, [ebp]
push eax
call fcn.00414580
lea eax, [ebp]
push eax
call fcn.00407c99
movsx eax, byte [edi]
add esp, 0xc
cmp byte [edi + 1], 0x31
sete byte [ebp - 0xe]
sub eax, 0x41
je 0x409509
sub eax, 3
je 0x409509
dec eax
je 0x409445
sub eax, 0xe
jne 0x409543
push eax
lea eax, [ebp]
push eax
lea eax, [ebp + 0x1770]
push eax
call fcn.00406166
add esp, 0xc
cmp dword [ebp + 0x2eec], 0x79
lea eax, [ebp + 0x1770]
jne 0x409439
push 0x4357c0
push eax
push ebx
call fcn.00408723
mov byte [ebp - 0xd], al
push 0x4357bc
lea eax, [ebp + 0x1770]
push eax
push ebx
call fcn.00408723
add esp, 0x18
or byte [ebp - 0xd], al
jmp 0x409543
push eax
call fcn.004050ae
pop ecx
jmp 0x40952a
push 0x1770
lea eax, [ebp + 0x1770]
push eax
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x4094e4
cmp byte [ebp + 0x1770], 0x22
jne 0x4094ae
lea eax, [ebp + 0x1770]
lea ebx, [ebp + 0x1770]
push eax
dec ebx
call fcn.00414100
cmp byte [eax + ebx], 0x22
pop ecx
jne 0x4094ab
lea eax, [ebp + 0x1770]
push eax
call fcn.00414100
pop ecx
mov ecx, dword [ebp - 0x18]
mov byte [eax + ebx], 0
lea eax, [ebp + 0x1771]
push eax
call fcn.00406623
mov ebx, dword [ebp - 0x18]
jmp 0x4094bc
mov ebx, dword [ebp - 0x18]
lea eax, [ebp + 0x1770]
push eax
mov ecx, ebx
call fcn.00406623
lea eax, [ebp + 0x1770]
push eax
call fcn.00414100
pop ecx
lea ecx, [ebp + 0x1770]
dec ecx
cmp byte [eax + ecx], 0x3b
je 0x4094de
push esi
mov ecx, ebx
call fcn.00406623
mov byte [ebp - 0xd], 1
jmp 0x409543
cmp byte [ebp - 0xe], 0
je 0x40955f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
jne 0x409543
lea eax, [ebp]
push eax
push 0x3f0
call fcn.00404873
pop ecx
pop ecx
jmp 0x409543
push 0
lea eax, [ebp]
push eax
lea eax, [ebp + 0x1770]
push eax
call fcn.0040634d
lea eax, [ebp + 0x1770]
push eax
call fcn.004050ae
add esp, 0x10
mov byte [ebp - 0xd], al
lea eax, [ebp + 0x1770]
push eax
mov ecx, ebx
call fcn.00406623
push esi
mov ecx, ebx
call fcn.00406623
cmp byte [ebp - 0xe], 0
je 0x40955f
cmp byte [ebp - 0xd], 0
jne 0x40955f
lea eax, [ebp]
push eax
push 0x3ee
call fcn.00404873
pop ecx
pop ecx
push edi
call fcn.00414445
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x28]
inc dword [ebp - 0x14]
sar eax, 2
pop ecx
cmp dword [ebp - 0x14], eax
jb 0x40939b
push dword [ebp - 0x1c]
call fcn.00414445
pop ecx
lea ecx, [ebp - 0x34]
call fcn.0040827c
push dword [ebp - 0x34]
call fcn.00414445
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2ee0]
xor ecx, ebp
call fcn.00414678
add ebp, 0x2ee4
leave
ret