Function at 0x1002afa0
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], 0x1002b9b0
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 0x1002afec
xor ecx, ecx
test esi, esi
je 0x1002b4c6
test dl, dl
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x6c], 0
jne 0x1002b160
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
je 0x1002b5a2
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.10022550
add esp, 8
mov eax, dword [ebp - 0xa0]
lea ecx, [ebp - 0x50]
lea edx, [ebp - 0x68]
cmp eax, 0x80000000
je 0x1002b14e
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.1002a7b0
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.10029210
add esp, 8
mov eax, dword [ebp - 0x68]
cmp eax, 0x80000000
je 0x1002b020
test eax, eax
je 0x1002b020
push 1
push eax
push dword [ebp - 0x64]
call fcn.1000c290
add esp, 0xc
jmp 0x1002b020
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 0x1002b1c7
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0xc4]
push eax
call fcn.100290b0
add esp, 4
test eax, eax
je 0x1002b4ae
cmp dword [edx], 0x80000000
mov dword [ebp - 0x2c], eax
jne 0x1002b337
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x1002b1c0
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 0x1002b260
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 0x1002b220
cmp eax, 1
jne 0x1002b290
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
sub ecx, 1
jae 0x1002b272
jmp 0x1002b1c0
mov edi, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
sub ecx, 1
jb 0x1002b1c0
mov eax, dword [eax + edi*4 + 0x1ec]
mov dword [ebp - 0x28], ecx
jmp 0x1002b1fa
mov ecx, dword [ebp - 0x28]
cmp eax, 2
jne 0x1002b4dd
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.10019930
add esp, 8
mov eax, dword [ebp - 0xa0]
cmp eax, 0x80000000
je 0x1002b1c0
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 0x1002b306
push 1
push eax
push dword [ebp - 0x9c]
call fcn.1000c290
add esp, 0xc
test edi, edi
je 0x1002b318
add edi, edi
push 2
push edi
push ebx
call fcn.1000c290
add esp, 0xc
test esi, 0x7fffffff
je 0x1002b1c7
push 1
push esi
push dword [ebp - 0x2c]
call fcn.1000c290
add esp, 0xc
jmp 0x1002b1c7
mov ebx, dword [eax + 8]
mov edi, dword [eax + 4]
mov dword [ebp - 0x28], edx
test ebx, ebx
je 0x1002b365
js 0x1002b540
movzx eax, byte [0x100da049]
push 1
push ebx
call fcn.1000c280
add esp, 8
test eax, eax
jne 0x1002b36a
jmp 0x1002b536
mov eax, 1
mov dword [ebp - 0x30], eax
push ebx
push edi
push eax
call fcn.1003eb30
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 0x1002b3b9
cmp esi, 0x3fffffff
ja 0x1002b560
movzx eax, byte [0x100da049]
lea ebx, [esi + esi]
push 2
push ebx
call fcn.1000c280
add esp, 8
test eax, eax
jne 0x1002b3c0
jmp 0x1002b553
mov eax, 2
xor ebx, ebx
mov dword [ebp - 0xd8], eax
push ebx
push edi
push eax
call fcn.1003eb30
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 0x1002b43c
js 0x1002b587
movzx eax, byte [0x100da049]
push 1
push esi
call fcn.1000c280
add esp, 8
test eax, eax
je 0x1002b57d
mov ebx, eax
jmp 0x1002b441
mov ebx, 1
push esi
push edi
push ebx
call fcn.1003eb30
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.10029210
add esp, 8
mov eax, dword [ebp - 0x68]
cmp eax, 0x80000000
je 0x1002b4a2
test eax, eax
je 0x1002b4a2
push 1
push eax
push dword [ebp - 0x64]
call fcn.1000c290
add esp, 0xc
mov dword [ebp - 0x10], 0
jmp 0x1002b1c7
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], 0x100b7674
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], 0x10023b90
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], 1
push 0x100b76fc
lea eax, [ebp - 0x50]
push eax
call fcn.1004db60
add esp, 8
jmp 0x1002b611
mov eax, 1
mov dword [ebp - 0x30], ebx
jmp 0x1002b542
xor eax, eax
push dword [ebp - 0x30]
push eax
call fcn.1004da30
add esp, 8
jmp 0x1002b611
mov eax, 2
mov dword [ebp - 0xd8], ebx
jmp 0x1002b562
xor eax, eax
mov dword [ebp - 0x10], 4
push dword [ebp - 0xd8]
push eax
call fcn.1004da30
add esp, 8
jmp 0x1002b611
mov eax, 1
mov dword [ebp - 0x38], esi
jmp 0x1002b589
xor eax, eax
mov byte [ebp - 0x1e], 0
mov dword [ebp - 0x10], 3
push dword [ebp - 0x38]
push eax
call fcn.1004da30
add esp, 8
jmp 0x1002b611
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], 0x100b7d4c
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], 0x10023b90
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], 1
lea eax, [ebp - 0xa0]
push 0x100b7d54
push eax
call fcn.1004db60
add esp, 8
ud2