Function at 0x4276e0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [ebp + 0xc]
test eax, eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], esi
je 0x42781a
push eax
push 0x44e364
mov byte [ebp - 0x34], 0x7c
mov byte [ebp - 0x33], 0
call fcn.00426090
add esp, 8
mov edi, eax
mov eax, edi
xor ebx, ebx
jmp 0x42771d
inc ebx
inc eax
push 0x7c
push eax
call fcn.0043c150
add esp, 8
test eax, eax
jne 0x42771b
lea eax, [ebx*8 + 8]
push eax
call dword [0x4594cc]
add esp, 4
mov esi, eax
test esi, esi
je 0x4277b6
lea eax, [ebp - 0x40]
push eax
lea ebx, [ebp - 0x34]
push ebx
push edi
call fcn.00426670
add esp, 0xc
mov edx, eax
xor eax, eax
test edx, edx
je 0x42779e
mov dword [ebp - 0x44], edi
lea ecx, [ebp - 0x3c]
mov ebx, eax
mov eax, edx
mov edi, ecx
lea edx, [ebp - 0x38]
push edx
push edi
push 0x3d
push eax
call fcn.00426620
mov edx, dword [ebp - 0x3c]
mov dword [esi + ebx*8], edx
mov edx, dword [ebp - 0x38]
mov dword [esi + ebx*8 + 4], edx
lea edx, [ebp - 0x40]
push edx
inc ebx
lea edx, [ebp - 0x34]
push edx
push 0
call fcn.00426670
add esp, 0x1c
test eax, eax
jne 0x427768
mov edi, dword [ebp - 0x44]
mov eax, ebx
mov edx, dword [ebp + 8]
mov dword [edx], edi
mov dword [edx + 4], esi
mov dword [edx + 8], eax
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
push 0x4006e
lea eax, [ebp - 0x54]
push eax
call fcn.00416410
add esp, 8
mov ecx, dword [ebp - 0x54]
lea edx, [esp + 4]
mov dword [esp], 2
mov dword [edx], ecx
mov ebx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x48]
mov dword [edx + 4], ebx
mov dword [edx + 8], eax
lea eax, [esp + 0x14]
mov dword [edx + 0xc], ecx
mov edx, dword [0x4e0ea0]
mov dword [eax], edx
mov ebx, dword [0x4e0ea4]
mov edx, dword [0x4e0ea8]
mov ecx, dword [0x4e0eac]
mov dword [eax + 4], ebx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
call fcn.00416830
jmp 0x427743
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov edi, eax
test edi, edi
je 0x427a1e
mov ecx, edi
mov ebx, edi
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x427845
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x427830
dec eax
xor esi, esi
test eax, eax
mov dword [ebp - 0x50], esi
je 0x42787f
mov dword [ebp - 0x54], edi
mov edi, esi
inc edi
lea ebx, [eax + ebx + 1]
mov ecx, ebx
lea esi, [esi + eax + 1]
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x427875
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x427860
dec eax
test eax, eax
jne 0x427853
mov dword [ebp - 0x50], edi
mov edi, dword [ebp - 0x54]
inc esi
push esi
call dword [0x4594cc]
mov dword [ebp - 0x4c], eax
add esp, 4
cmp dword [ebp - 0x4c], 0
je 0x4279ba
push esi
push edi
mov ebx, dword [ebp - 0x4c]
push ebx
call fcn.00418820
mov eax, dword [ebp - 0x50]
shl eax, 3
push eax
call dword [0x4594cc]
add esp, 0x10
mov esi, eax
test esi, esi
je 0x427956
mov ecx, ebx
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x4278d5
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x4278c0
dec eax
mov edx, eax
xor eax, eax
test edx, edx
je 0x42793f
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x50], ebx
mov ebx, eax
mov dword [ebp - 0x48], esi
mov esi, edx
mov edi, dword [ebp - 0x4c]
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push 0x3d
push edi
call fcn.00426620
add esp, 0x10
mov eax, dword [ebp - 0x48]
lea edi, [edi + esi + 1]
mov ecx, dword [ebp - 0x14]
mov dword [eax + ebx*8], ecx
mov ecx, dword [ebp - 0x10]
mov dword [eax + ebx*8 + 4], ecx
mov ecx, edi
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x42792d
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x427918
dec eax
mov esi, eax
inc ebx
test esi, esi
jne 0x4278ed
mov esi, dword [ebp - 0x48]
mov eax, ebx
mov ebx, dword [ebp - 0x50]
mov edi, dword [ebp - 0x54]
mov edx, dword [ebp + 8]
push edi
mov dword [edx], ebx
mov dword [edx + 4], esi
mov dword [edx + 8], eax
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x4277a9
push 0x4006e
lea eax, [ebp - 0x24]
push eax
call fcn.00416410
add esp, 8
mov ecx, dword [ebp - 0x24]
lea edx, [esp + 4]
mov eax, dword [ebp - 0x20]
mov dword [esp], 2
mov dword [edx], ecx
mov dword [edx + 4], eax
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
mov dword [edx + 8], ecx
mov dword [edx + 0xc], eax
lea eax, [esp + 0x14]
mov edx, dword [0x4e0ea0]
mov dword [eax], edx
mov edx, dword [0x4e0ea4]
mov dword [eax + 4], edx
mov ecx, dword [0x4e0ea8]
mov edx, dword [0x4e0eac]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
call fcn.00416830
jmp 0x4278bc
push 0x4006e
lea eax, [ebp - 0x34]
push eax
call fcn.00416410
add esp, 8
mov ecx, dword [ebp - 0x34]
lea edx, [esp + 4]
mov dword [esp], 2
mov dword [edx], ecx
mov ebx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
mov dword [edx + 4], ebx
mov dword [edx + 8], eax
lea eax, [esp + 0x14]
mov dword [edx + 0xc], ecx
mov edx, dword [0x4e0ea0]
mov dword [eax], edx
mov ebx, dword [0x4e0ea4]
mov edx, dword [0x4e0ea8]
mov ecx, dword [0x4e0eac]
mov dword [eax + 4], ebx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
call fcn.00416830
jmp 0x427897
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push 0x40013
lea eax, [ebp - 0x54]
push eax
call fcn.00416410
push ebx
lea eax, [ebp - 0x44]
push eax
call fcn.00418700
add esp, 0x10
mov eax, dword [ebp - 0x54]
lea esi, [esp + 4]
mov edx, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x4c]
mov ebx, dword [ebp - 0x48]
mov dword [esp], 2
mov dword [esi], eax
mov dword [esi + 4], edx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ebx
lea esi, [esp + 0x14]
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x38]
mov dword [esi], eax
mov dword [esi + 4], edx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ebx
lea esi, [esp + 0x24]
mov eax, dword [0x4e0ea0]
mov edx, dword [0x4e0ea4]
mov ecx, dword [0x4e0ea8]
mov ebx, dword [0x4e0eac]
mov dword [esi], eax
mov dword [esi + 4], edx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ebx
call fcn.00416830
xor ebx, ebx
xor esi, esi
xor eax, eax
jmp 0x42793f