Function at 0x470350
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c4dcc
mov eax, dword fs:[0]
push eax
sub esp, 0x298
mov eax, dword [0x4f2008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x270], ecx
mov dword [ebp - 0x274], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x230]
call fcn.00402693
mov dword [ebp - 4], 0
mov edx, str.__r_t_n
lea ecx, [ebp - 0x230]
call fcn.00405a80
lea ecx, [ebp - 0x230]
call fcn.00402620
movzx ecx, al
test ecx, ecx
je 0x4703e7
mov byte [ebp - 0x24d], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.0040192c
mov al, byte [ebp - 0x24d]
jmp 0x47073e
push 0x208
push 0
lea edx, [ebp - 0x218]
push edx
call fcn.00497aa0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00401921
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jbe 0x470431
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x230]
call fcn.00401cde
lea ecx, [ebp - 0x230]
call fcn.0040d9a0
movzx edx, al
test edx, edx
je 0x470476
lea eax, [ebp - 0x230]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00401cfd
mov byte [ebp - 0x24e], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.0040192c
mov al, byte [ebp - 0x24e]
jmp 0x47073e
push 0
push 0x22
lea ecx, [ebp - 0x230]
call fcn.004713f0
mov dword [ebp - 0x24c], eax
cmp dword [ebp - 0x24c], 0
jne 0x470555
mov ecx, dword [ebp - 0x24c]
add ecx, 1
push ecx
push 0x22
lea ecx, [ebp - 0x230]
call fcn.004713f0
mov dword [ebp - 0x25c], eax
cmp dword [ebp - 0x25c], 0xffffffff
je 0x470555
mov edx, dword [ebp - 0x25c]
sub edx, dword [ebp - 0x24c]
sub edx, 1
push edx
mov eax, dword [ebp - 0x24c]
add eax, 1
push eax
lea ecx, [ebp - 0x28c]
push ecx
lea ecx, [ebp - 0x230]
call fcn.004030d0
mov dword [ebp - 0x260], eax
mov edx, dword [ebp - 0x260]
mov dword [ebp - 0x264], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x264]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00402646
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28c]
call fcn.0040192c
mov ecx, dword [ebp + 0xc]
call fcn.0040d9a0
movzx ecx, al
test ecx, ecx
je 0x470555
mov byte [ebp - 0x24f], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.0040192c
mov al, byte [ebp - 0x24f]
jmp 0x47073e
mov dword [ebp - 0x24c], 0
lea ecx, [ebp - 0x248]
call fcn.00401bd5
mov byte [ebp - 4], 2
mov edx, 1
test edx, edx
je 0x470710
mov eax, dword [ebp - 0x24c]
add eax, 1
push eax
push 0x20
lea ecx, [ebp - 0x230]
call fcn.004025ba
mov dword [ebp - 0x258], eax
cmp dword [ebp - 0x258], 0xffffffff
jne 0x4705d6
mov byte [ebp - 0x250], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x248]
call fcn.0040192c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.0040192c
mov al, byte [ebp - 0x250]
jmp 0x47073e
mov ecx, dword [ebp - 0x24c]
add ecx, 1
cmp dword [ebp - 0x258], ecx
jne 0x4705f8
mov edx, dword [ebp - 0x258]
mov dword [ebp - 0x24c], edx
jmp 0x47056e
mov eax, dword [ebp - 0x258]
mov dword [ebp - 0x24c], eax
mov ecx, dword [ebp - 0x258]
push ecx
push 0
lea edx, [ebp - 0x2a4]
push edx
lea ecx, [ebp - 0x230]
call fcn.004030d0
mov dword [ebp - 0x268], eax
mov eax, dword [ebp - 0x268]
mov dword [ebp - 0x26c], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x26c]
push ecx
lea ecx, [ebp - 0x248]
call fcn.00402646
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2a4]
call fcn.0040192c
lea ecx, [ebp - 0x248]
call fcn.0040c880
movzx edx, al
test edx, edx
je 0x4706aa
lea eax, [ebp - 0x248]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00401cfd
mov byte [ebp - 0x251], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x248]
call fcn.0040192c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.0040192c
mov al, byte [ebp - 0x251]
jmp 0x47073e
push str..exe
lea ecx, [ebp - 0x248]
call fcn.00401cb6
lea ecx, [ebp - 0x248]
call fcn.0040c880
movzx ecx, al
test ecx, ecx
je 0x47070b
lea edx, [ebp - 0x248]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.00401cfd
mov byte [ebp - 0x252], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x248]
call fcn.0040192c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.0040192c
mov al, byte [ebp - 0x252]
jmp 0x47073e
jmp 0x47056e
mov byte [ebp - 0x253], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x248]
call fcn.0040192c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.0040192c
mov al, byte [ebp - 0x253]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00495ca5
mov esp, ebp
pop ebp
ret 8