Function at 0x420ba0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x471a1d
mov eax, dword fs:[0]
push eax
sub esp, 0x4f8
mov eax, dword [0x493120]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor esi, esi
mov dword [ebp - 4], esi
mov ecx, dword [ebp + 8]
push 0x104
lea eax, [ebp - 0x21c]
push eax
push ecx
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor edx, edx
lea eax, [ebp - 0x21c]
mov word [ebp - 0x434], dx
mov dword [ebp - 0x420], 7
mov dword [ebp - 0x424], esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x420c12
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x438]
call fcn.00407260
mov edx, dword [ebp - 0x420]
mov ecx, dword [ebp - 0x434]
mov byte [ebp - 4], 3
mov eax, ecx
cmp edx, 8
jae 0x420c51
lea eax, [ebp - 0x434]
mov ebx, dword [ebp - 0x424]
lea edi, [eax + ebx*2]
cmp edi, esi
je 0x420c83
mov eax, ecx
cmp edx, 8
jae 0x420c6b
lea eax, [ebp - 0x434]
cmp eax, edi
ja 0x420c83
mov eax, ecx
cmp edx, 8
jae 0x420c7c
lea eax, [ebp - 0x434]
lea eax, [eax + ebx*2]
cmp edi, eax
jbe 0x420c9a
call fcn.0044fe08
mov edx, dword [ebp - 0x420]
mov ebx, dword [ebp - 0x424]
mov ecx, dword [ebp - 0x434]
cmp edx, 8
jb 0x420e0e
mov esi, ecx
test ecx, ecx
je 0x420cce
mov eax, ecx
cmp edx, 8
jae 0x420cb6
lea eax, [ebp - 0x434]
cmp eax, esi
ja 0x420cce
mov eax, ecx
cmp edx, 8
jae 0x420cc7
lea eax, [ebp - 0x434]
lea ecx, [eax + ebx*2]
cmp esi, ecx
jbe 0x420cd3
call fcn.0044fe08
mov edx, dword [ebp - 0x458]
push edx
lea eax, [ebp - 0x438]
push edi
mov ecx, eax
push ecx
push esi
mov ebx, 0xf
push eax
lea ecx, [ebp - 0x454]
mov dword [ebp - 0x43c], ebx
mov dword [ebp - 0x440], 0
mov byte [ebp - 0x450], 0
call fcn.0041e450
mov eax, dword [ebp - 0x450]
mov edi, 0x10
mov byte [ebp - 4], 4
cmp dword [ebp - 0x43c], edi
jae 0x420d2a
lea eax, [ebp - 0x450]
push 0x4788d8
push eax
lea eax, [ebp - 0x470]
push eax
call fcn.00452cb0
xor esi, esi
add esp, 0xc
cmp eax, esi
jne 0x420e20
mov ecx, dword [ebp - 0x470]
push ecx
call fcn.00451f10
mov edx, dword [ebp + 0xc]
add esp, 4
cmp dword [edx - 0xc], esi
jne 0x420e19
cmp dword [ebp - 0x43c], edi
jb 0x420d7b
mov eax, dword [ebp - 0x450]
push eax
call fcn.0042c1ba
add esp, 4
cmp dword [ebp - 0x420], 8
mov dword [ebp - 0x43c], ebx
mov dword [ebp - 0x440], esi
mov byte [ebp - 0x450], 0
jb 0x420da6
mov ecx, dword [ebp - 0x434]
push ecx
call fcn.0042c1ba
add esp, 4
mov eax, dword [ebp + 8]
xor edx, edx
add eax, 0xfffffff0
mov word [ebp - 0x434], dx
mov byte [ebp - 4], dl
mov dword [ebp - 0x420], 7
mov dword [ebp - 0x424], esi
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420de1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420e07
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
jmp 0x420eb4
lea esi, [ebp - 0x434]
jmp 0x420ca9
push esi
push esi
call fcn.0044f86a
cmp dword [ebp - 0x43c], edi
jb 0x420e37
mov ecx, dword [ebp - 0x450]
push ecx
call fcn.0042c1ba
add esp, 4
cmp dword [ebp - 0x420], 8
mov dword [ebp - 0x43c], ebx
mov dword [ebp - 0x440], esi
mov byte [ebp - 0x450], 0
jb 0x420e62
mov edx, dword [ebp - 0x434]
push edx
call fcn.0042c1ba
add esp, 4
mov dword [ebp - 4], 1
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420e8c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420eb2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0044fc9c
mov esp, ebp
pop ebp
ret