Function at 0x413775
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
movzx eax, byte [ebp + 0x1c]
test eax, eax
je 0x413939
lea eax, [ebp + 0x3c]
mov dword [ebp - 0x68], eax
lea eax, [ebp + 0x28]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x38]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0x68]
movzx eax, byte [eax]
test eax, eax
je 0x41390d
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x38]
movzx eax, byte [eax]
test eax, eax
je 0x4138b7
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
je 0x41384e
mov dword [ebp - 0x50], 0xbeccce1e
push dword [ebp - 0x14]
push dword [ebp - 0x88]
push 0x4486
push 0
lea eax, [ebp - 0x50]
push eax
call fcn.00414400
add esp, 0x14
jmp 0x4138b5
mov dword [ebp - 0xa8], 0x68593f9b
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x413873
push 0x17bc
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push 0x49bd
push 0x55c5
push 0
lea eax, [ebp - 0xa8]
push eax
push 0x1623
push 0x4365
push 1
push 0x695b
push 0x27b8
push 0x6957
push 1
push 0x260
push 0x6997
call fcn.00428637
add esp, 0x34
jmp 0x41390b
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
mov dword [eax], 0
jmp 0x4138ee
mov eax, dword [ebp - 8]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 3
jge 0x41390b
mov eax, dword [ebp - 8]
push dword [eax]
mov ecx, dword [ebp - 0x1c]
call fcn.00428c3e
mov dword [eax], 0xa1a4
jmp 0x4138e3
jmp 0x413934
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x70], eax
push dword [ebp - 0x70]
push 0x4281
push 0x6a9a
push 0x567e
push 0
push 0
call fcn.00420d1d
add esp, 0x18
jmp 0x413a8a
mov eax, dword [ebp + 0x40]
mov dword [ebp - 0x24], eax
lea eax, [ebp + 0x20]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x8c], eax
lea eax, [ebp + 0x44]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x2c], eax
lea eax, [ebp + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
movzx eax, byte [eax]
test eax, eax
je 0x4139fa
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
movzx eax, byte [eax]
test eax, eax
je 0x4139cb
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x6c]
add eax, dword [ecx]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx]
mov dword [ecx], eax
jmp 0x4139f5
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x84]
movzx eax, byte [eax]
test eax, eax
je 0x4139f5
push 0
push 0x4c76
call fcn.0041191d
pop ecx
pop ecx
jmp 0x413a8a
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0xa4]
movzx eax, byte [eax]
test eax, eax
je 0x413a4d
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x18]
mov dword [ecx], eax
jmp 0x413a8a
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [eax], 0
jmp 0x413a78
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0xb
jl 0x413a8a
push 0
call fcn.0041341f
pop ecx
jmp 0x413a6d
mov esp, ebp
pop ebp
ret