Function at 0x4782b0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ab11a
mov eax, dword fs:[0]
push eax
sub esp, 0x4ec
mov eax, dword [0x4de880]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4d0], ecx
mov dword [ebp - 4], 0
push 0x4b5f03
lea ecx, [ebp - 0x430]
call fcn.004021a0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x430]
push eax
mov ecx, dword [ebp + 0x24]
push ecx
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0x44c]
push eax
call fcn.00484d90
add esp, 0x10
mov dword [ebp - 0x4d4], eax
mov ecx, dword [ebp - 0x4d4]
mov dword [ebp - 0x4d8], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x4d8]
push edx
lea ecx, [ebp + 8]
call fcn.004061d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44c]
call fcn.00401e40
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x430]
call fcn.00401e40
mov dword [ebp - 0x14], 0
push 0
push 0x4ba1e8
lea ecx, [ebp + 8]
call fcn.0040db10
cmp eax, 0xffffffff
je 0x478505
push 0
push 0x4ba1ec
lea ecx, [ebp + 8]
call fcn.0040db10
push eax
push 0
lea eax, [ebp - 0x468]
push eax
lea ecx, [ebp + 8]
call fcn.0040dbc0
mov dword [ebp - 0x4dc], eax
mov ecx, dword [ebp - 0x4dc]
mov dword [ebp - 0x4e0], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x4e0]
push edx
mov ecx, dword [ebp + 0x28]
call fcn.004061d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x468]
call fcn.00401e40
push 0xffffffffffffffff
push 0
push 0x4ba1f0
lea ecx, [ebp + 8]
call fcn.0040db10
add eax, 2
push eax
lea eax, [ebp - 0x484]
push eax
lea ecx, [ebp + 8]
call fcn.0040dbc0
mov dword [ebp - 0x4e4], eax
mov ecx, dword [ebp - 0x4e4]
mov dword [ebp - 0x4e8], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x4e8]
push edx
mov ecx, dword [ebp + 0x2c]
call fcn.004061d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x484]
call fcn.00401e40
push 0
push 0x4ba1f4
lea ecx, [ebp + 8]
call fcn.0040db10
cmp eax, 0xffffffff
je 0x4784a0
push 0xffffffffffffffff
push 0
push 0x4ba1f8
lea ecx, [ebp + 8]
call fcn.0040db10
add eax, 1
push eax
lea eax, [ebp - 0x4a0]
push eax
lea ecx, [ebp + 8]
call fcn.0040dbc0
mov dword [ebp - 0x4ec], eax
mov ecx, dword [ebp - 0x4ec]
mov dword [ebp - 0x4f0], ecx
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x4f0]
push edx
lea ecx, [ebp + 8]
call fcn.004061d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4a0]
call fcn.00401e40
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
jmp 0x478429
cmp dword [ebp - 0x14], 1
jle 0x478503
movzx ecx, byte [ebp + 0x30]
test ecx, ecx
jne 0x478503
push 0
push 0x4ba1fc
mov ecx, dword [ebp + 0x2c]
call fcn.0040db10
push eax
push 0
lea edx, [ebp - 0x4bc]
push edx
mov ecx, dword [ebp + 0x2c]
call fcn.0040dbc0
mov dword [ebp - 0x4f4], eax
mov eax, dword [ebp - 0x4f4]
mov dword [ebp - 0x4f8], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x4f8]
push ecx
mov ecx, dword [ebp + 0x2c]
call fcn.004061d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4bc]
call fcn.00401e40
jmp 0x47851d
lea edx, [ebp + 8]
push edx
mov ecx, dword [ebp + 0x28]
call fcn.004061d0
lea eax, [ebp + 8]
push eax
mov ecx, dword [ebp + 0x2c]
call fcn.004061d0
push 0
push 0x4ba200
mov ecx, dword [ebp + 0x2c]
call fcn.0040db10
cmp eax, 0xffffffff
jne 0x478635
push 0
push 0x4ba208
mov ecx, dword [ebp + 0x2c]
call fcn.0040db10
cmp eax, 0xffffffff
jne 0x478635
push 0
push 0x4ba210
mov ecx, dword [ebp + 0x2c]
call fcn.0040db10
cmp eax, 0xffffffff
jne 0x478635
push 0x400
push 0
lea ecx, [ebp - 0x414]
push ecx
call fcn.0043ff60
add esp, 0xc
mov edx, dword [ebp + 0x2c]
push edx
mov ecx, dword [ebp - 0x4d0]
call fcn.004776e0
push 0x400
lea eax, [ebp - 0x414]
push eax
mov ecx, dword [ebp + 0x2c]
call fcn.00401df0
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea ecx, [ebp - 0x414]
push ecx
mov ecx, dword [ebp + 0x2c]
call fcn.00406300
cmp dword [ebp - 0x14], 1
jle 0x478614
push 0
push 0x4ba218
lea ecx, [ebp + 8]
call fcn.0040db10
cmp eax, 0xffffffff
je 0x4785f1
mov dword [ebp - 0x4c0], 3
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401e40
mov eax, dword [ebp - 0x4c0]
jmp 0x478654
mov dword [ebp - 0x4c4], 2
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401e40
mov eax, dword [ebp - 0x4c4]
jmp 0x478654
mov dword [ebp - 0x4c8], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401e40
mov eax, dword [ebp - 0x4c8]
jmp 0x478654
mov dword [ebp - 0x4cc], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401e40
mov eax, dword [ebp - 0x4cc]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043f9e9
mov esp, ebp
pop ebp
ret 0x2c