Function at 0x42b0f0
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x45a198
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
xor edi, edi
cmp eax, edi
mov dword [esp + 8], edi
jne 0x42b18c
mov edi, dword [esp + 0x1c]
mov eax, dword [0x4631a0]
mov ecx, 0x468dac
test ecx, ecx
mov dword [edi], eax
je 0x42b179
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x42b179
lea edx, [esi + esi + 0xe]
push edx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x42b179
mov dword [eax], 1
mov word [eax + esi*2 + 0xc], 0
mov dword [eax + 4], esi
mov dword [eax + 8], esi
add eax, 0xc
inc esi
push esi
push 0x468dac
push eax
mov dword [edi], eax
call fcn.0042b310
add esp, 0xc
mov ecx, edi
push 0xffffffffffffffff
call fcn.004055c0
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
mov eax, dword [0x4631a0]
push ebx
push ebp
mov dword [esp + 0x10], eax
mov ecx, dword [eax - 0xc]
lea ebx, [eax - 0xc]
cmp ecx, 1
mov dword [esp + 0x1c], edi
mov esi, 0x1000
jg 0x42b1b0
cmp dword [eax - 4], esi
jge 0x42b210
mov ebp, dword [eax - 8]
cmp ebp, esi
jle 0x42b1b9
mov esi, ebp
push esi
lea ecx, [esp + 0x14]
call fcn.00404720
test eax, eax
je 0x42b210
lea ecx, [ebp + ebp + 2]
lea eax, [esi + esi + 2]
cmp eax, ecx
jb 0x42b1e8
mov edi, dword [esp + 0x10]
mov edx, ecx
lea esi, [ebx + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x10]
mov dword [eax - 8], ebp
mov eax, dword [0x4631a4]
cmp ebx, eax
je 0x42b20c
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x42b20c
push ebx
call fcn.0044bf22
add esp, 4
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x28]
push 0x1000
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edx, dword [esp + 0x10]
mov esi, eax
dec esi
mov eax, dword [edx - 0xc]
lea edi, [edx - 0xc]
cmp eax, 1
jle 0x42b26e
lea ecx, [esp + 0x10]
call fcn.00405b60
mov eax, dword [edi + 4]
lea ecx, [esp + 0x10]
push eax
call fcn.00404720
test eax, eax
je 0x42b26e
mov ecx, dword [edi + 4]
mov eax, dword [esp + 0x10]
add edi, 0xc
lea edx, [ecx + ecx + 2]
mov ecx, dword [eax - 4]
push edx
push edi
lea edx, [ecx + ecx + 2]
push edx
push eax
call fcn.00401bc0
add esp, 0x10
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp esi, 0xffffffff
jne 0x42b282
mov eax, dword [esp + 0x10]
push eax
call ebx
mov esi, eax
mov ecx, dword [esp + 0x10]
mov dword [ecx - 8], esi
mov edx, dword [esp + 0x10]
mov word [edx + esi*2], 0
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x24]
mov edx, dword [eax - 0xc]
lea ecx, [eax - 0xc]
test edx, edx
jl 0x42b2b0
push ecx
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x42b2ca
mov ecx, dword [0x4631a0]
mov edi, eax
test eax, eax
mov dword [esi], ecx
je 0x42b2c1
push eax
call ebx
push edi
push eax
mov ecx, esi
call fcn.00408770
mov eax, dword [esp + 0x10]
mov ecx, dword [0x4631a4]
pop ebp
pop ebx
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x42b2fb
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x42b2fb
mov eax, dword [esp + 8]
add eax, 0xfffffff4
push eax
call fcn.0044bf22
add esp, 4
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret