Function at 0x791c60
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xd
push 0
push 0
dec ecx
jne 0x791c69
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov byte [ebp - 0x15], cl
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
call fcn.00405738
mov eax, dword [ebp + 0x10]
call fcn.00405738
mov eax, dword [ebp + 0xc]
call fcn.00405738
xor eax, eax
push ebp
push 0x791f1f
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x16], 0
xor eax, eax
push ebp
push 0x791ed8
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x41c338]
call fcn.00404418
mov dword [ebp - 0x24], eax
call sub.kernel32.dll_GetEnvironmentStringsA
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
jmp 0x791cfa
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
call fcn.0040b624
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_lstrlenA_1
inc eax
add dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp byte [eax], 0
jne 0x791cd7
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_FreeEnvironmentStringsA
call fcn.0040d300
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x34]
mov eax, 0x791f3c
call fcn.0040dfd0
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x30]
mov edx, 0x791f54
call fcn.00405594
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
call dword [ecx + 0x38]
call fcn.0040d300
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x3c]
mov eax, 0x791f6c
call fcn.0040dfd0
mov ecx, dword [ebp - 0x3c]
lea eax, [ebp - 0x38]
mov edx, 0x791f80
call fcn.00405594
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x44]
call fcn.004c54e8
mov ecx, dword [ebp - 0x44]
lea eax, [ebp - 0x40]
mov edx, 0x791f9c
call fcn.00405594
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
call dword [ecx + 0x38]
push ebp
lea eax, [ebp - 0x4c]
call fcn.00791b14
pop ecx
mov ecx, dword [ebp - 0x4c]
lea eax, [ebp - 0x48]
mov edx, 0x791fb0
call fcn.00405594
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
call dword [ecx + 0x38]
push ebp
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 4]
lea edx, [ebp - 8]
lea eax, [ebp - 0xc]
call fcn.00791628
pop ecx
lea eax, [ebp - 0x50]
mov ecx, dword [ebp - 0xc]
mov edx, 0x791fc4
call fcn.00405594
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
call dword [ecx + 0x38]
cmp dword [ebp - 0x28], 0
je 0x791e0b
lea eax, [ebp - 0x54]
mov ecx, dword [ebp - 0x28]
mov edx, 0x791fd8
call fcn.00405594
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea edx, [ebp - 0x58]
mov eax, dword [ebp - 0x28]
call fcn.0049e038
mov eax, dword [ebp - 0x58]
call fcn.00405548
test eax, eax
jle 0x791e48
lea edx, [ebp - 0x60]
mov eax, dword [ebp - 0x28]
call fcn.0049e038
mov ecx, dword [ebp - 0x60]
lea eax, [ebp - 0x5c]
mov edx, 0x791ff0
call fcn.00405594
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
call dword [ecx + 0x38]
cmp dword [ebp - 8], 0
je 0x791e69
lea eax, [ebp - 0x64]
mov ecx, dword [ebp - 8]
mov edx, 0x79200c
call fcn.00405594
mov edx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
call dword [ecx + 0x38]
cmp dword [ebp - 4], 0
je 0x791e8a
lea eax, [ebp - 0x68]
mov ecx, dword [ebp - 4]
mov edx, 0x792020
call fcn.00405594
mov edx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea edx, [ebp - 0x70]
mov eax, dword [ebp + 8]
call fcn.0040a83c
mov ecx, dword [ebp - 0x70]
lea eax, [ebp - 0x6c]
mov edx, 0x792038
call fcn.00405594
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov ecx, dword [ebp - 0x24]
mov dl, byte [ebp - 0x15]
mov eax, dword [ebp - 0x14]
call fcn.004a946c
test eax, eax
jne 0x791ec6
mov byte [ebp - 0x16], 1
lea eax, [ebp - 0x24]
call fcn.00411344
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x791ee2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x791f26
lea eax, [ebp - 0x70]
mov edx, 0x13
call fcn.0040529c
lea eax, [ebp - 0x14]
call fcn.00405278
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040529c
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.0040529c
ret