Function at 0x406f9b
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x412ecc
call fcn.0041249c
sub esp, 0x318
push ebx
push esi
lea eax, [ebp - 0x224]
push edi
push eax
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp + 8]
push eax
mov edi, ecx
push dword [ebp + 8]
call fcn.0040b63e
add esp, 0x14
lea eax, [ebp - 0x124]
lea ecx, [ebp - 0x20]
push eax
call fcn.00403b3f
lea eax, [ebp - 0x20]
xor ebx, ebx
push 0x41967c
push eax
mov dword [ebp - 4], ebx
call fcn.00405df1
pop ecx
lea eax, [ebp - 0x124]
pop ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.00403b3f
lea eax, [ebp - 0x1c]
push 0x41966c
push eax
mov byte [ebp - 4], 1
call fcn.00405df1
pop ecx
lea eax, [ebp - 0x124]
pop ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.00403b3f
lea eax, [ebp - 0x18]
push 0x41965c
push eax
mov byte [ebp - 4], 2
call fcn.00405df1
mov eax, dword [ebp - 0x20]
mov esi, dword [sym.imp.MSVCRT.dll_getenv]
add eax, 0xc
push eax
call esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
add eax, 0xc
push eax
call esi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
add eax, 0xc
push eax
call esi
add esp, 0x14
cmp dword [ebp - 0x10], ebx
mov esi, eax
je 0x4070be
cmp dword [ebp - 0x14], ebx
je 0x4070be
mov eax, dword [ebp + 0x10]
push dword [ebp - 0x10]
lea ecx, [ebp + 0x10]
mov byte [eax], bl
call fcn.00403b3f
lea eax, [edi + 0x34]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp + 0x10]
push eax
call fcn.00408da4
pop ecx
pop ecx
push dword [ebp - 0x14]
lea ecx, [edi + 0xc]
call fcn.00404084
mov ecx, dword [ebp + 0xc]
push esi
call fcn.00404084
push dword [ebp + 0x10]
mov byte [ebp - 4], 2
call fcn.00404bf6
pop ecx
mov dword [ebp + 0x10], ebx
jmp 0x4071cd
mov eax, dword [ebp + 0x10]
lea esi, [edi + 0xc]
mov byte [eax], 1
mov eax, dword [esi]
cmp dword [eax + 4], ebx
lea eax, [ebp - 0x124]
push eax
je 0x4071c6
lea ecx, [ebp - 0x10]
call fcn.00403b3f
lea eax, [ebp - 0x10]
push 0x419650
push eax
mov byte [ebp - 4], 3
call fcn.00405df1
push 0xa
lea eax, [ebp - 0x24]
push dword [edi + 0x34]
push eax
call fcn.00405f4f
push eax
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 4
call fcn.00405dd6
push dword [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.00404bf6
add esp, 0x20
lea eax, [ebp - 0x124]
lea ecx, [ebp - 0x14]
push eax
call fcn.00403b3f
push esi
lea eax, [ebp - 0x14]
push 0x419640
push eax
mov byte [ebp - 4], 5
call fcn.00405df1
pop ecx
pop ecx
push eax
call fcn.00405dd6
pop ecx
lea eax, [ebp - 0x124]
pop ecx
push eax
lea ecx, [ebp + 0x10]
call fcn.00403b3f
push dword [ebp + 0xc]
lea eax, [ebp + 0x10]
mov byte [ebp - 4], 6
push 0x419630
push eax
call fcn.00405df1
pop ecx
pop ecx
push eax
call fcn.00405dd6
mov eax, dword [ebp - 0x10]
mov esi, dword [sym.imp.MSVCRT.dll__putenv]
add eax, 0xc
push eax
call esi
mov eax, dword [ebp - 0x14]
add eax, 0xc
push eax
call esi
mov eax, dword [ebp + 0x10]
add eax, 0xc
push eax
call esi
push dword [ebp + 0x10]
mov byte [ebp - 4], 5
call fcn.00404bf6
push dword [ebp - 0x14]
mov dword [ebp + 0x10], ebx
mov byte [ebp - 4], 3
call fcn.00404bf6
push dword [ebp - 0x10]
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 2
call fcn.00404bf6
add esp, 0x20
jmp 0x4071cd
mov ecx, esi
call fcn.00404084
push dword [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00404bf6
push dword [ebp - 0x1c]
mov dword [ebp - 0x18], ebx
mov byte [ebp - 4], bl
call fcn.00404bf6
push dword [ebp - 0x20]
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x1c], ebx
call fcn.00404bf6
mov ecx, dword [ebp - 0xc]
add esp, 0xc
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0xc