Function at 0x4b3320
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x4b3328
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x4b35e2
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4fc128], 0
je 0x4b335d
mov eax, ebx
mov edx, dword [0x4fc128]
call fcn.0040456c
jmp 0x4b35b2
call fcn.004b37e8
mov eax, dword [0x4fc158]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jne 0x4b3381
mov eax, ebx
mov edx, 0x4b35f8
call fcn.0040456c
jmp 0x4b3568
lea edx, [ebp - 0x28]
mov eax, 0x4b3610
call fcn.004b300c
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0xc]
call fcn.00408d38
cmp dword [ebp - 0xc], 0
jne 0x4b33ad
lea eax, [ebp - 0xc]
mov edx, dword [0x4fc134]
call fcn.004045b0
mov byte [0x4fc138], 0
lea eax, [ebp - 0x14]
call fcn.00404518
lea eax, [ebp - 8]
call fcn.00404518
mov eax, ebx
call fcn.00404518
lea eax, [ebp - 0x20]
mov edx, 0x2710
call fcn.00404b74
mov eax, dword [ebp - 0x20]
call fcn.004047e8
push eax
mov eax, dword [ebp - 0x20]
call fcn.004049e8
push eax
push 0x4b361c
call sub.kernel32.dll_GetEnvironmentVariableA
mov edx, eax
lea eax, [ebp - 0x20]
call fcn.00404b74
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0x20]
call fcn.00408d38
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x20]
call fcn.004045b0
mov eax, dword [ebp - 0x20]
call fcn.004047e8
mov dword [ebp - 0x1c], eax
mov eax, dword [0x4fc158]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x4b3531
inc eax
mov dword [ebp - 0x24], eax
xor esi, esi
mov edx, esi
mov eax, dword [0x4fc158]
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 4]
mov edx, esi
mov eax, dword [0x4fc158]
mov edi, dword [eax]
call dword [edi + 0xc]
cmp dword [ebp - 0x18], 0
jl 0x4b3479
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 0x18]
call fcn.00409444
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 8]
mov edx, 0x4b362c
call fcn.00404834
jmp 0x4b3489
lea eax, [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, 0x4b364c
call fcn.00404834
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 4]
call fcn.00408d38
mov eax, dword [ebp - 0x34]
push eax
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.00408d38
mov edx, dword [ebp - 0x38]
pop eax
call fcn.00404934
jne 0x4b34c5
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040456c
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 4]
call fcn.004045b0
jmp 0x4b3531
lea eax, [ebp - 0x10]
push eax
mov ecx, 0x4b366c
mov edx, dword [ebp - 8]
mov eax, 0x80000002
call fcn.004b30ec
cmp dword [ebp - 0x10], 0
je 0x4b3527
lea eax, [ebp - 0x10]
mov edx, 0x4b3680
call fcn.004b3268
lea edx, [ebp - 0x3c]
mov eax, dword [ebp - 0x10]
call fcn.00408d38
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x20]
call fcn.00404b2c
mov edi, eax
test edi, edi
jle 0x4b3527
cmp edi, dword [ebp - 0x1c]
jge 0x4b3527
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040456c
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 4]
call fcn.004045b0
mov dword [ebp - 0x1c], edi
inc esi
dec dword [ebp - 0x24]
jne 0x4b3438
cmp dword [ebx], 0
jne 0x4b354b
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040456c
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 4]
call fcn.004045b0
cmp dword [0x4fc134], 0
jne 0x4b3568
mov byte [0x4fc138], 1
mov eax, 0x4fc134
mov edx, dword [ebp - 0x14]
call fcn.0040456c
lea eax, [ebp - 0x10]
push eax
mov edx, dword [ebx]
mov ecx, 0x4b366c
mov eax, 0x80000002
call fcn.004b30ec
cmp dword [ebp - 0x10], 0
je 0x4b359f
lea eax, [ebp - 0x40]
mov ecx, 0x4b368c
mov edx, dword [ebp - 0x10]
call fcn.00404834
mov eax, dword [ebp - 0x40]
call fcn.004b2ecc
test al, al
jne 0x4b35a6
mov eax, ebx
call fcn.00404518
mov eax, 0x4fc128
mov edx, dword [ebx]
call fcn.0040456c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b35e9
lea eax, [ebp - 0x40]
mov edx, 7
call fcn.0040453c
lea eax, [ebp - 0x20]
call fcn.00404518
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.0040453c
ret