Function at 0x640011c0
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x64022359
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x6402c09c]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6402c09c]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
push ecx
pop esi
sub ebx, ebx
mov dword [esp + 0x1c], ebx
push edx
pop edi
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], edi
mov byte [esi + 4], bl
mov dword [esp + 0x4c], ebx
mov ebp, 1
mov dword [esp + 0x1c], ebp
call dword [sym.imp.kernel32.dll_GetEnvironmentStringsW]
sub ecx, ecx
cmp ecx, ebx
jle 0x64001237
cmp word [eax + ecx*2 - 2], bx
jne 0x64001237
cmp word [eax + ecx*2], bx
je 0x6400123b
add ecx, ebp
jmp 0x64001226
shl ecx, 1
push ecx
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
call fcn.64001860
push ebx
lea edx, [esp + 0x28]
push edx
or eax, 0xffffffff
mov dword [esp + 0x54], ebp
call fcn.640019d0
mov byte [esp + 0x4c], bl
cmp dword [esp + 0x3c], 0x10
jb 0x64001282
mov eax, dword [esp + 0x28]
push eax
call fcn.64011d22
add esp, 4
mov edx, dword [0x6402d560]
mov eax, dword [edx + 0xc]
mov ecx, 0x6402d560
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x4c], 2
mov eax, dword [edi]
push eax
lea ecx, [esp + 0x18]
push 0x64026618
push ecx
call fcn.64001d40
mov edi, dword [esp + 0x20]
mov ebp, dword [edi - 0xc]
add esp, 0xc
cmp dword [edi - 4], 1
jle 0x640012d3
mov edx, ebp
push edx
lea ecx, [esp + 0x18]
call fcn.64001950
mov edi, dword [esp + 0x14]
lea eax, [ebp + ebp + 2]
push eax
push edi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
call fcn.64001860
push ebx
lea ecx, [esp + 0x28]
push ecx
or eax, 0xffffffff
mov byte [esp + 0x54], 3
call fcn.640019d0
cmp dword [esp + 0x3c], 0x10
jb 0x64001319
mov edx, dword [esp + 0x28]
push edx
call fcn.64011d22
add esp, 4
add edi, 0xfffffff0
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
mov byte [esp + 0x4c], bl
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
or ecx, ecx
jg 0x64001349
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov edx, dword [0x6402d560]
mov eax, dword [edx + 0xc]
mov ecx, 0x6402d560
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x4c], 4
mov eax, dword [ecx + 0xc]
push eax
lea edx, [esp + 0x18]
push 0x64026624
push edx
call fcn.64001d40
mov edi, dword [esp + 0x20]
mov ebp, dword [edi - 0xc]
add esp, 0xc
cmp dword [edi - 4], 1
jle 0x6400139f
mov eax, ebp
push eax
lea ecx, [esp + 0x18]
call fcn.64001950
mov edi, dword [esp + 0x14]
lea ecx, [ebp + ebp + 2]
push ecx
push edi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
call fcn.64001860
push ebx
lea edx, [esp + 0x28]
push edx
or eax, 0xffffffff
mov byte [esp + 0x54], 5
call fcn.640019d0
cmp dword [esp + 0x3c], 0x10
jb 0x640013e5
mov eax, dword [esp + 0x28]
push eax
call fcn.64011d22
add esp, 4
mov ebp, 0xf
add edi, 0xfffffff0
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
mov byte [esp + 0x4c], bl
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
or edx, edx
jg 0x64001416
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
push 2
push 0x64026630
lea eax, [esp + 0x30]
push ebp
push eax
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
call fcn.64011ed8
mov eax, dword [esp + 0x38]
push 0x10
pop edi
nop
nop
add esp, 0x10
cmp dword [esp + 0x3c], edi
mov dword [esp + 0x38], 2
jae 0x64001452
lea eax, [esp + 0x28]
mov byte [eax + 2], bl
push ebx
lea ecx, [esp + 0x28]
push ecx
or eax, 0xffffffff
mov dword [esp + 0x54], 6
call fcn.640019d0
cmp dword [esp + 0x3c], edi
jb 0x6400147e
mov edx, dword [esp + 0x28]
push edx
call fcn.64011d22
add esp, 4
push esi
pop eax
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.6401257c
add esp, 0x3c
ret