Function at 0x1002aba0
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], 0x1002b5b0
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 0x1002abec
xor ecx, ecx
test esi, esi
je 0x1002b0c6
test dl, dl
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x6c], 0
jne 0x1002ad60
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
je 0x1002b1a2
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.10022170
add esp, 8
mov eax, dword [ebp - 0xa0]
lea ecx, [ebp - 0x50]
lea edx, [ebp - 0x68]
cmp eax, 0x80000000
je 0x1002ad4e
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.1002a3b0
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.10028e10
add esp, 8
mov eax, dword [ebp - 0x68]
cmp eax, 0x80000000
je 0x1002ac20
test eax, eax
je 0x1002ac20
push 1
push eax
push dword [ebp - 0x64]
call fcn.1000be70
add esp, 0xc
jmp 0x1002ac20
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 0x1002adc7
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0xc4]
push eax
call fcn.10028cb0
add esp, 4
test eax, eax
je 0x1002b0ae
cmp dword [edx], 0x80000000
mov dword [ebp - 0x2c], eax
jne 0x1002af37
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x1002adc0
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 0x1002ae60
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 0x1002ae20
cmp eax, 1
jne 0x1002ae90
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
sub ecx, 1
jae 0x1002ae72
jmp 0x1002adc0
mov edi, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
sub ecx, 1
jb 0x1002adc0
mov eax, dword [eax + edi*4 + 0x1ec]
mov dword [ebp - 0x28], ecx
jmp 0x1002adfa
mov ecx, dword [ebp - 0x28]
cmp eax, 2
jne 0x1002b0dd
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.10019560
add esp, 8
mov eax, dword [ebp - 0xa0]
cmp eax, 0x80000000
je 0x1002adc0
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 0x1002af06
push 1
push eax
push dword [ebp - 0x9c]
call fcn.1000be70
add esp, 0xc
test edi, edi
je 0x1002af18
add edi, edi
push 2
push edi
push ebx
call fcn.1000be70
add esp, 0xc
test esi, 0x7fffffff
je 0x1002adc7
push 1
push esi
push dword [ebp - 0x2c]
call fcn.1000be70
add esp, 0xc
jmp 0x1002adc7
mov ebx, dword [eax + 8]
mov edi, dword [eax + 4]
mov dword [ebp - 0x28], edx
test ebx, ebx
je 0x1002af65
js 0x1002b140
movzx eax, byte [0x100ef049]
push 1
push ebx
call fcn.1000be60
add esp, 8
test eax, eax
jne 0x1002af6a
jmp 0x1002b136
mov eax, 1
mov dword [ebp - 0x30], eax
push ebx
push edi
push eax
call fcn.1003e760
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 0x1002afb9
cmp esi, 0x3fffffff
ja 0x1002b160
movzx eax, byte [0x100ef049]
lea ebx, [esi + esi]
push 2
push ebx
call fcn.1000be60
add esp, 8
test eax, eax
jne 0x1002afc0
jmp 0x1002b153
mov eax, 2
xor ebx, ebx
mov dword [ebp - 0xd8], eax
push ebx
push edi
push eax
call fcn.1003e760
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 0x1002b03c
js 0x1002b187
movzx eax, byte [0x100ef049]
push 1
push esi
call fcn.1000be60
add esp, 8
test eax, eax
je 0x1002b17d
mov ebx, eax
jmp 0x1002b041
mov ebx, 1
push esi
push edi
push ebx
call fcn.1003e760
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.10028e10
add esp, 8
mov eax, dword [ebp - 0x68]
cmp eax, 0x80000000
je 0x1002b0a2
test eax, eax
je 0x1002b0a2
push 1
push eax
push dword [ebp - 0x64]
call fcn.1000be70
add esp, 0xc
mov dword [ebp - 0x10], 0
jmp 0x1002adc7
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], 0x100cbd24
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], 0x10023780
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], 1
push 0x100cbdac
lea eax, [ebp - 0x50]
push eax
call fcn.1004d790
add esp, 8
jmp 0x1002b211
mov eax, 1
mov dword [ebp - 0x30], ebx
jmp 0x1002b142
xor eax, eax
push dword [ebp - 0x30]
push eax
call fcn.1004d660
add esp, 8
jmp 0x1002b211
mov eax, 2
mov dword [ebp - 0xd8], ebx
jmp 0x1002b162
xor eax, eax
mov dword [ebp - 0x10], 4
push dword [ebp - 0xd8]
push eax
call fcn.1004d660
add esp, 8
jmp 0x1002b211
mov eax, 1
mov dword [ebp - 0x38], esi
jmp 0x1002b189
xor eax, eax
mov byte [ebp - 0x1e], 0
mov dword [ebp - 0x10], 3
push dword [ebp - 0x38]
push eax
call fcn.1004d660
add esp, 8
jmp 0x1002b211
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], 0x100cc3fc
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], 0x10023780
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], 1
lea eax, [ebp - 0xa0]
push 0x100cc404
push eax
call fcn.1004d790
add esp, 8
ud2