Function at 0x1002b440
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xcc
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x1002be50
mov edi, dword [ebp + 0xc]
lea edx, [ebp - 0x18]
mov eax, dword [ebp + 8]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], edx
movzx edx, byte [edi + 0xc]
mov esi, dword [edi + 8]
test dl, dl
jne 0x1002b48c
xor ecx, ecx
test esi, esi
je 0x1002b966
test dl, dl
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x6c], 0
jne 0x1002b600
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
je 0x1002ba42
mov dword [ebp - 0x58], eax
mov dword [ebp - 0xc8], esi
mov dword [ebp - 0x54], eax
nop dword [eax]
lea eax, [ebp - 0x54]
mov dword [ebp - 0x10], 5
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.10022a60
add esp, 8
mov eax, dword [ebp - 0xa0]
lea ecx, [ebp - 0x50]
lea edx, [ebp - 0x68]
cmp eax, 0x80000000
je 0x1002b5ee
movq xmm0, qword [ebp - 0x98]
mov edi, dword [ebp - 0x9c]
mov esi, dword [ebp - 0x90]
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x84]
mov dword [ebp - 0x10], 7
movd eax, xmm0
mov dword [ebp - 0x2c], esi
mov esi, dword [ebp - 0x8c]
mov dword [ebp - 0x50], edi
movdqu xmmword [ebp - 0xd8], xmm0
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], edi
add eax, edi
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x88]
mov word [ebp - 0x48], 0
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x38], eax
push ecx
push edx
call fcn.1002ac50
add esp, 8
mov eax, dword [ebp - 0x24]
movups xmm0, xmmword [ebp - 0xd8]
lea ecx, [ebp - 0xb4]
mov byte [ebp - 0x1d], 0
mov dword [ebp - 0x10], 6
lea edx, [ebp - 0x74]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0x60]
movlps qword [ebp - 0xbc], xmm0
movq xmm0, qword [ebp - 0x68]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x2c]
movq qword [ecx], xmm0
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0xc4]
push eax
call fcn.100296b0
add esp, 8
mov eax, dword [ebp - 0x68]
cmp eax, 0x80000000
je 0x1002b4c0
test eax, eax
je 0x1002b4c0
push 1
push eax
push dword [ebp - 0x64]
call fcn.1000c750
add esp, 0xc
jmp 0x1002b4c0
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov esi, dword [ebp - 0xc8]
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
mov ecx, dword [edi + 4]
xor edx, edx
mov dword [ebp - 0x10], 0
test eax, eax
setne dl
cmove esi, eax
mov dword [ebp - 0xc4], edx
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xb8], ecx
mov dword [ebp - 0xb4], edx
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xa8], ecx
mov dword [ebp - 0xa4], esi
jmp 0x1002b667
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0xc4]
push eax
call fcn.10029550
add esp, 4
test eax, eax
je 0x1002b94e
cmp dword [edx], 0x80000000
mov dword [ebp - 0x2c], eax
jne 0x1002b7d7
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x1002b660
mov ecx, dword [ebp - 0x70]
mov dword [ebp - 0x28], ecx
movzx edx, word [eax + 0x1ea]
lea ecx, [eax + 0xb4]
mov dword [ebp - 0x24], eax
mov edi, 0xffffffff
lea eax, [edx + edx*8]
mov dword [ebp - 0x34], edx
lea ebx, [eax + eax*2]
add ebx, edx
nop word [eax + eax]
test ebx, ebx
je 0x1002b700
lea esi, [ecx + 0x1c]
push 1
push dword [ecx + 0x18]
push dword [ecx + 0x14]
mov eax, dword [ebp - 0x2c]
push dword [eax + 0x18]
push dword [eax + 0x14]
call dword [sym.imp.KERNEL32.dll_CompareStringOrdinal]
add ebx, 0xffffffe4
inc edi
cmp eax, 3
mov ecx, esi
je 0x1002b6c0
cmp eax, 1
jne 0x1002b730
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
sub ecx, 1
jae 0x1002b712
jmp 0x1002b660
mov edi, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
sub ecx, 1
jb 0x1002b660
mov eax, dword [eax + edi*4 + 0x1ec]
mov dword [ebp - 0x28], ecx
jmp 0x1002b69a
mov ecx, dword [ebp - 0x28]
cmp eax, 2
jne 0x1002b97d
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x74]
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.10019e50
add esp, 8
mov eax, dword [ebp - 0xa0]
cmp eax, 0x80000000
je 0x1002b660
mov ecx, dword [ebp - 0x80]
mov edi, dword [ebp - 0x90]
mov ebx, dword [ebp - 0x8c]
mov esi, dword [ebp - 0x84]
test eax, eax
mov dword [ebp - 0x2c], ecx
je 0x1002b7a6
push 1
push eax
push dword [ebp - 0x9c]
call fcn.1000c750
add esp, 0xc
test edi, edi
je 0x1002b7b8
add edi, edi
push 2
push edi
push ebx
call fcn.1000c750
add esp, 0xc
test esi, 0x7fffffff
je 0x1002b667
push 1
push esi
push dword [ebp - 0x2c]
call fcn.1000c750
add esp, 0xc
jmp 0x1002b667
mov ebx, dword [eax + 8]
mov edi, dword [eax + 4]
mov dword [ebp - 0x28], edx
test ebx, ebx
je 0x1002b805
js 0x1002b9e0
movzx eax, byte [0x100eb049]
push 1
push ebx
call fcn.1000c740
add esp, 8
test eax, eax
jne 0x1002b80a
jmp 0x1002b9d6
mov eax, 1
mov dword [ebp - 0x30], eax
push ebx
push edi
push eax
call fcn.1003efd0
add esp, 0xc
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x24], ebx
mov esi, dword [eax + 0x18]
movzx ecx, byte [eax + 0xc]
mov edi, dword [eax + 0x14]
test esi, esi
mov byte [ebp - 0x34], cl
je 0x1002b859
cmp esi, 0x3fffffff
ja 0x1002ba00
movzx eax, byte [0x100eb049]
lea ebx, [esi + esi]
push 2
push ebx
call fcn.1000c740
add esp, 8
test eax, eax
jne 0x1002b860
jmp 0x1002b9f3
mov eax, 2
xor ebx, ebx
mov dword [ebp - 0xd8], eax
push ebx
push edi
push eax
call fcn.1003efd0
add esp, 0xc
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x30]
movzx ebx, byte [ebp - 0x34]
mov edx, dword [ebp - 0xd8]
mov dword [ebp - 0xa0], ecx
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x98], ecx
mov ecx, dword [ebp - 0x28]
mov byte [ebp - 0x94], bl
mov dword [ebp - 0x90], esi
mov dword [ebp - 0x8c], edx
mov dword [ebp - 0x88], esi
mov esi, dword [ecx + 8]
mov edi, dword [ecx + 4]
test esi, esi
je 0x1002b8dc
js 0x1002ba27
movzx eax, byte [0x100eb049]
push 1
push esi
call fcn.1000c740
add esp, 8
test eax, eax
je 0x1002ba1d
mov ebx, eax
jmp 0x1002b8e1
mov ebx, 1
push esi
push edi
push ebx
call fcn.1003efd0
add esp, 0xc
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x38], ebx
lea ecx, [ebp - 0x68]
lea edx, [ebp - 0x74]
movzx eax, byte [eax + 0xc]
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], esi
mov byte [ebp - 0x1e], 1
mov dword [ebp - 0x10], 3
mov byte [ebp - 0x44], al
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.100296b0
add esp, 8
mov eax, dword [ebp - 0x68]
cmp eax, 0x80000000
je 0x1002b942
test eax, eax
je 0x1002b942
push 1
push eax
push dword [ebp - 0x64]
call fcn.1000c750
add esp, 0xc
mov dword [ebp - 0x10], 0
jmp 0x1002b667
mov ecx, dword [ebp - 0x6c]
mov eax, dword [ebp + 8]
movsd xmm0, qword [ebp - 0x74]
mov dword [eax + 0xc], ecx
mov ecx, 1
movsd qword [eax + 4], xmm0
mov edx, dword [ebp - 0x18]
mov dword [eax], ecx
mov dword fs:[0], edx
add esp, 0xcc
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [ebp - 0x68], 0
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x68]
mov dword [ebp - 0x50], 0x100c8824
mov dword [ebp - 0x4c], 1
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x54], 0x10024050
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], 1
push 0x100c88ac
lea eax, [ebp - 0x50]
push eax
call fcn.1004dff0
add esp, 8
jmp 0x1002bab1
mov eax, 1
mov dword [ebp - 0x30], ebx
jmp 0x1002b9e2
xor eax, eax
push dword [ebp - 0x30]
push eax
call fcn.1004dec0
add esp, 8
jmp 0x1002bab1
mov eax, 2
mov dword [ebp - 0xd8], ebx
jmp 0x1002ba02
xor eax, eax
mov dword [ebp - 0x10], 4
push dword [ebp - 0xd8]
push eax
call fcn.1004dec0
add esp, 8
jmp 0x1002bab1
mov eax, 1
mov dword [ebp - 0x38], esi
jmp 0x1002ba29
xor eax, eax
mov byte [ebp - 0x1e], 0
mov dword [ebp - 0x10], 3
push dword [ebp - 0x38]
push eax
call fcn.1004dec0
add esp, 8
jmp 0x1002bab1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [ebp - 0xc4], 0
mov dword [ebp - 0xc0], eax
lea eax, [ebp - 0xc4]
mov dword [ebp - 0xa0], 0x100c8efc
mov dword [ebp - 0x9c], 1
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x10], 2
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x4c], 0x10024050
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], 1
lea eax, [ebp - 0xa0]
push 0x100c8f04
push eax
call fcn.1004dff0
add esp, 8
ud2