Function at 0x4078e0
Capabilities:
Query environment variable

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d9a28
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x68
mov eax, dword [0x51b170]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x64], eax
xorps xmm0, xmm0
mov dword [ebp - 0x64], eax
movups xmmword [ebp - 0x60], xmm0
movq qword [ebp - 0x50], xmm0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ecx, ecx
mov dword [ebp - 0x60], 0x4135c0
xor edx, edx
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x38], eax
cmp word [eax], cx
je 0x4079ab
lea eax, [ebp - 0x38]
push eax
push edx
lea ecx, [ebp - 0x58]
call fcn.00424990
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x54]
cmp word [eax], 0
jne 0x4079a3
add eax, 2
cmp word [eax], 0
je 0x4079a8
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x50], ecx
je 0x40799c
mov dword [ecx], eax
mov ecx, dword [ebp - 0x54]
add ecx, 4
mov dword [ebp - 0x54], ecx
jmp 0x407978
lea eax, [ebp - 0x38]
push eax
push ecx
jmp 0x40796a
add eax, 2
jmp 0x407978
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x38], 0
cmp edx, ecx
je 0x4079c2
mov dword [ecx], 0
add dword [ebp - 0x54], 4
jmp 0x4079cf
lea eax, [ebp - 0x38]
push eax
push ecx
lea ecx, [ebp - 0x58]
call fcn.00424990
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 4], 1
mov edi, eax
mov dword [ebp - 0x64], str.PATH
cmp dword [eax], 0
je 0x4079f8
nop word [eax + eax]
add edi, 4
cmp dword [edi], 0
jne 0x4079f0
lea edx, [ebp - 0x60]
mov esi, eax
mov dword [ebp - 0x44], esi
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x40], edx
cmp eax, edi
je 0x407a86
nop dword [eax]
push dword [esi]
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x40]
call fcn.00422180
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x38]
call fcn.00407bf0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x20]
mov byte [ebp - 0x39], al
cmp edx, 8
jb 0x407a72
mov ecx, dword [ebp - 0x34]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x407a65
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407bdf
push edx
push ecx
call fcn.00499ae0
mov al, byte [ebp - 0x39]
add esp, 8
test al, al
jne 0x407a80
add esi, 4
mov dword [ebp - 0x44], esi
cmp esi, edi
jne 0x407a10
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x60]
cmp dword [eax], 0
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], edx
je 0x407a99
add eax, 4
cmp dword [eax], 0
jne 0x407a91
cmp esi, eax
jne 0x407ab9
mov esi, dword [ebp - 0x74]
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
jmp 0x407bb7
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x44]
call fcn.00413300
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 3
push ecx
mov ecx, eax
call fcn.00413480
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x20]
cmp edx, 8
jb 0x407b12
mov ecx, dword [ebp - 0x34]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x407b08
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407bdf
push edx
push ecx
call fcn.00499ae0
add esp, 8
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov byte [ebp - 4], 6
lea eax, [ebp - 0x70]
mov ecx, dword [ebp - 0x44]
mov esi, dword [ebp - 0x48]
sub ecx, esi
push eax
mov eax, 0x2aaaaaab
imul ecx
lea ecx, [ebp - 0x70]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
call fcn.0041e660
mov eax, dword [ebp - 0x44]
mov edi, dword [ebp - 0x70]
cmp esi, eax
je 0x407b89
nop dword [eax + eax]
cmp edi, esi
je 0x407b7c
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x407b6e
mov eax, dword [esi]
push dword [esi + 0x10]
mov ecx, edi
push eax
call fcn.00417920
mov eax, dword [ebp - 0x44]
add esi, 0x18
add edi, 0x18
cmp esi, eax
jne 0x407b60
mov edi, dword [ebp - 0x70]
mov esi, dword [ebp - 0x74]
lea ecx, [ebp - 0x48]
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x68]
mov dword [esi], edi
mov dword [esi + 8], eax
mov dword [ebp - 0x68], 0
call fcn.004169d0
lea ecx, [ebp - 0x60]
call fcn.00407830
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004996e8
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004bbc5b
int3