Function at 0x43a080
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d19c5
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x5080f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, edx
mov dword [ebp - 0x4c], eax
mov esi, ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x50], ecx
cmp eax, 1
je 0x43a0c1
cmp eax, 2
jne 0x43a0ce
mov ecx, dword [esi + 4]
mov eax, ecx
mov edx, dword [esi]
sub eax, edx
test al, 1
je 0x43a0d8
mov eax, 0xd
jmp 0x43a2cc
mov dword [ebp - 0x28], 0
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
sub ecx, edx
mov dword [ebp - 4], 1
shr ecx, 1
jne 0x43a10a
mov dword [ebp - 0x18], ecx
mov word [ebp + ecx*2 - 0x28], ax
jmp 0x43a115
push 0
push ecx
lea ecx, [ebp - 0x28]
call fcn.00411a90
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x43a13c
mov edx, dword [esi]
lea eax, [ebp - 0x28]
mov ecx, dword [esi + 4]
sub ecx, edx
cmp dword [ebp - 0x14], 8
push ecx
cmovae eax, dword [ebp - 0x28]
push edx
push eax
call fcn.004a0330
mov edi, dword [ebp - 0x18]
add esp, 0xc
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
setae byte [ebp - 0x41]
mov dword [ebp - 0x48], eax
test edi, edi
je 0x43a1af
mov edx, edi
xor ecx, ecx
mov esi, eax
test edx, edx
je 0x43a17b
movzx eax, word [eax]
test ax, ax
je 0x43a176
cmp edx, 1
je 0x43a178
movzx eax, word [esi + 2]
add esi, 2
dec edx
test ax, ax
jne 0x43a164
mov ecx, esi
mov eax, dword [ebp - 0x48]
test ecx, ecx
je 0x43a1af
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
je 0x43a1af
cmp ecx, edi
ja 0x43a1a2
cmp byte [ebp - 0x41], 0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], ecx
cmovne eax, dword [ebp - 0x28]
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x43a1af
sub ecx, edi
push 0
push ecx
lea ecx, [ebp - 0x28]
call fcn.00411a90
cmp dword [ebp - 0x4c], 2
jne 0x43a28a
mov dword [ebp - 0x40], 0
xor edx, edx
mov eax, 7
xor ecx, ecx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], eax
mov word [ebp - 0x40], cx
mov byte [ebp - 4], 3
cmp eax, 8
lea ecx, [ebp - 0x40]
push edx
cmovae ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
push ecx
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ecx, dword [ebp - 0x30]
cmp eax, ecx
jbe 0x43a211
sub eax, ecx
lea ecx, [ebp - 0x40]
push 0
push eax
call fcn.00411a90
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x30]
jmp 0x43a1d7
test eax, eax
jne 0x43a22a
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x40]
mov esi, eax
call fcn.004127e0
jmp 0x43a2c2
lea edx, [eax - 1]
cmp edx, ecx
ja 0x43a247
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
mov dword [ebp - 0x30], edx
cmovae eax, dword [ebp - 0x40]
xor ecx, ecx
mov word [eax + edx*2], cx
jmp 0x43a254
sub edx, ecx
lea ecx, [ebp - 0x40]
push 0
push edx
call fcn.00411a90
lea ecx, [ebp - 0x28]
call fcn.004127e0
movups xmm0, xmmword [ebp - 0x40]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [ebp - 0x30]
movq qword [ebp - 0x18], xmm0
xor eax, eax
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.004127e0
mov esi, dword [ebp - 0x50]
lea eax, [ebp - 0x28]
cmp esi, eax
je 0x43a2c0
mov ecx, esi
call fcn.004127e0
movups xmm0, xmmword [ebp - 0x28]
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [esi + 0x10], xmm0
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
xor esi, esi
lea ecx, [ebp - 0x28]
call fcn.004127e0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00484d55
mov esp, ebp
pop ebp
ret