Function at 0x416bf1
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0x80000004
push 0
push 0x43939b
push 1
mov ebx, 0x168
call fcn.0041dc60
add esp, 0x10
mov dword [ebp - 0xc], eax
push 0x80000004
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x416c3c
mov eax, 0x4372a0
push eax
push 1
mov ebx, 0x198
call fcn.0041e210
add esp, 0x10
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x416c62
push ebx
call fcn.0041d3bc
add esp, 4
call fcn.0040618c
mov dword [ebp - 0x14], eax
push 0x80000004
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x416c7d
mov eax, 0x4372a0
push eax
push 1
mov ebx, 0x168
call fcn.0041dc60
add esp, 0x10
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x416ca3
push ebx
call fcn.0041d3bc
add esp, 4
push 2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00406664
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x416cc8
push ebx
call fcn.0041d3bc
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x416cd8
push ebx
call fcn.0041d3bc
add esp, 4
push 0x80000005
push 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x416ceb
mov eax, 0x4372e6
push eax
push 1
mov ebx, 0x168
call fcn.0041dc60
add esp, 0x10
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x416d11
push ebx
call fcn.0041d3bc
add esp, 4
lea eax, [ebp - 0x20]
push eax
call fcn.00406237
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x416d2d
push ebx
call fcn.0041d3bc
add esp, 4
push 0
push 0x4372a0
push dword [ebp - 0x24]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
nop
nop
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x416d57
push ebx
call fcn.0041d3bc
add esp, 4
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
xor ecx, ecx
inc ecx
push ecx
push eax
cmp ecx, eax
jg 0x416da1
push 0x4393b2
push dword [ebp - 8]
mov ecx, 2
call fcn.0040128a
add esp, 8
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x416d99
push ebx
call fcn.0041d3bc
add esp, 4
pop eax
mov dword [ebp - 8], eax
pop eax
pop ecx
jmp 0x416d62
add esp, 8
push 0x80000004
push 0
push 0x43939b
push 1
mov ebx, 0x168
call fcn.0041dc60
add esp, 0x10
mov dword [ebp - 0xc], eax
push 0x80000004
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x416dd8
mov eax, 0x4372a0
push eax
push 1
mov ebx, 0x198
call fcn.0041e210
add esp, 0x10
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x416dfe
push ebx
call fcn.0041d3bc
add esp, 4
call fcn.0040618c
mov dword [ebp - 0x14], eax
push 0x80000004
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x416e19
mov eax, 0x4372a0
push eax
push 1
mov ebx, 0x168
call fcn.0041dc60
add esp, 0x10
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x416e3f
push ebx
call fcn.0041d3bc
add esp, 4
push 2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00406664
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x416e64
push ebx
call fcn.0041d3bc
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x416e74
push ebx
call fcn.0041d3bc
add esp, 4
push 0x80000005
push 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x416e87
mov eax, 0x4372e6
push eax
push 1
mov ebx, 0x168
call fcn.0041dc60
add esp, 0x10
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x416ead
push ebx
call fcn.0041d3bc
add esp, 4
lea eax, [ebp - 0x20]
push eax
call fcn.00406237
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x416ec9
push ebx
call fcn.0041d3bc
add esp, 4
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp - 0x24]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
nop
nop
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x416eec
push ebx
call fcn.0041d3bc
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x416f08
push eax
mov ebx, eax
call fcn.0040121f
inc eax
push eax
call fcn.0041d3c8
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x416f0d
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x416f1e
push ebx
call fcn.0041d3bc
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret