Function at 0x1002ab6a
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10084985
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
push esi
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0x9c], 0x3817d1dc
mov dword [ebp - 0x50], 0
jmp 0x1002abaa
mov eax, dword [ebp - 0x50]
inc eax
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 1
jge 0x1002abc0
mov eax, dword [ebp - 0x50]
mov dword [ebp + eax*4 - 0x120], 0xfffffffe
jmp 0x1002aba3
mov dword [ebp - 0x1c], 0
jmp 0x1002abd0
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xf
jl 0x1002ac9c
mov dword [ebp - 0x3c], 3
mov dword [ebp - 0xfc], 0x488f4f3
mov dword [ebp - 0x3c], 0
jmp 0x1002abfb
mov eax, dword [ebp - 0x3c]
inc eax
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0x1a
jne 0x1002ac97
mov dword [ebp - 0xe0], 0
mov dword [ebp - 0xd8], 1
mov dword [ebp - 0xbc], 0x998ab545
mov eax, dword [ebp - 0xe0]
neg eax
je 0x1002ac36
mov dword [ebp - 0x7c], 1
jmp 0x1002ac3a
and dword [ebp - 0x7c], 0
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x7c]
add eax, dword [ebp - 0x1c]
je 0x1002ac4f
cmp dword [ebp - 0x1c], 0
je 0x1002ac4d
jmp 0x1002ac97
jmp 0x1002ac92
mov dword [ebp - 0xec], 0xffffffff
mov dword [ebp - 0xe4], 0x77cc4247
mov dword [ebp - 0x128], 0x795ed7c6
mov eax, dword [ebp - 0xec]
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp - 0xe4]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0x9c]
dec eax
mov dword [ebp - 0x9c], eax
jmp 0x1002abf4
jmp 0x1002abc9
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x1002acba
push 0
push 0
push 0x1b1a
push 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
jmp 0x1002b2f4
mov eax, dword [ebp + 8]
mov dword [ebp - 0xd4], eax
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x48], 0
jmp 0x1002acda
mov eax, dword [ebp - 0x48]
inc eax
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 2
jge 0x1002acf0
mov eax, dword [ebp - 0x48]
mov dword [ebp + eax*4 - 0x130], 0xfffffff7
jmp 0x1002acd3
mov eax, dword [ebp - 0x24]
dec eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x24], 0xfffffff7
jmp 0x1002ad07
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x29
jl 0x1002ad47
mov byte [ebp - 0x1e], 0
movzx eax, byte [ebp - 0x1e]
test eax, eax
je 0x1002ad28
push 0x17ce
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov byte [ebp - 0x16], 0
movzx eax, byte [ebp - 0x16]
test eax, eax
je 0x1002ad45
push 0x17c0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
jmp 0x1002ad00
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0x4c], 1
push 2
lea ecx, [ebp - 0xf8]
call fcn.10028d1f
and dword [ebp - 4], 0
mov dword [ebp - 0x44], 0
jmp 0x1002ad78
mov eax, dword [ebp - 0x44]
inc eax
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 2
jge 0x1002ad94
push dword [ebp - 0x44]
lea ecx, [ebp - 0xf8]
call fcn.10028dbd
mov dword [eax], 0xa276
jmp 0x1002ad71
mov dword [ebp - 0x4c], 0
jmp 0x1002ada4
mov eax, dword [ebp - 0x4c]
inc eax
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 3
jl 0x1002adee
mov dword [ebp - 0x28], 0x25260
mov dword [ebp - 0x28], 0
jmp 0x1002adc1
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 2
jge 0x1002adda
push dword [ebp - 0x28]
lea ecx, [ebp - 0xf8]
call fcn.10028dbd
or dword [eax], 0xffffffff
jmp 0x1002adba
push 0
lea ecx, [ebp - 0xf8]
call fcn.10028dbd
mov eax, dword [eax]
mov dword [ebp - 0x28], eax
jmp 0x1002ad9d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf8]
call fcn.10028da1
mov dword [ebp - 0x124], 0x4a8c6a53
mov byte [ebp - 0x17], 0
movzx eax, byte [ebp - 0x17]
test eax, eax
je 0x1002ae25
push 0x4ce
push 0x199e
push 0
call dword [sym.imp.GDI32.dll_PtInRegion]
mov byte [ebp - 0x1d], 0
movzx eax, byte [ebp - 0x1d]
test eax, eax
je 0x1002ae43
push 0x2381
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x10], 0x3f4f46db
mov dword [ebp - 0x14], 0x1d102278
mov dword [ebp - 0x30], 0xffffffff
mov dword [ebp - 0x60], 0x9913
mov dword [ebp - 0xc0], 0xd228
mov dword [ebp - 0xc8], 0xfffffff7
mov dword [ebp - 0x34], 0
jmp 0x1002ae8c
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 3
jge 0x1002ae9f
mov eax, dword [ebp - 0x34]
mov dword [ebp + eax*4 - 0x5c], 3
jmp 0x1002ae85
mov dword [ebp - 0x10], 0
jmp 0x1002aeaf
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 2
jg 0x1002b0ff
push 1
lea ecx, [ebp - 0xac]
call fcn.10028d1f
mov dword [ebp - 4], 1
mov dword [ebp - 0x38], 0
jmp 0x1002aedd
mov eax, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 1
jge 0x1002aef9
push dword [ebp - 0x38]
lea ecx, [ebp - 0xac]
call fcn.10028dbd
mov dword [eax], 9
jmp 0x1002aed6
mov eax, dword [ebp - 0x30]
dec eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x30]
mov dword [ebp + eax*4 - 0x5c], ecx
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*4 - 0x5c]
mov dword [ebp - 0x118], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*4 - 0x5c]
mov dword [ebp - 0x108], eax
mov eax, dword [ebp - 0x10]
cmp dword [ebp + eax*4 - 0x5c], 1
jle 0x1002af3a
mov dword [ebp - 0xc4], 1
jmp 0x1002af41
and dword [ebp - 0xc4], 0
push 4
pop eax
shl eax, 1
mov eax, dword [ebp + eax - 0x5c]
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*4 - 0x5c]
mov dword [ebp - 0x110], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
cmp dword [ebp + eax*4 - 0x5c], ecx
je 0x1002af75
mov dword [ebp - 0xa0], 1
jmp 0x1002af7c
and dword [ebp - 0xa0], 0
cmp dword [ebp - 0xa0], 0xfffffffc
jb 0x1002af8e
mov dword [ebp - 0x78], 1
jmp 0x1002af92
and dword [ebp - 0x78], 0
cmp dword [ebp - 0x78], 0xb78f
jle 0x1002afad
mov eax, 0x197b
test eax, eax
jne 0x1002afad
and dword [ebp - 0x90], 0
jmp 0x1002afb7
mov dword [ebp - 0x90], 1
push 0
lea ecx, [ebp - 0xac]
call fcn.10028dbd
mov ecx, dword [ebp - 0x90]
cmp ecx, dword [eax]
jge 0x1002afd7
mov dword [ebp - 0x80], 1
jmp 0x1002afdb
and dword [ebp - 0x80], 0
mov esi, dword [ebp - 0x80]
sub esi, 0x633e7a32
push 0
lea ecx, [ebp - 0xac]
call fcn.10028dbd
cmp esi, dword [eax]
jl 0x1002b008
mov eax, dword [ebp - 0x10]
cmp dword [ebp + eax*4 - 0x5c], 0
jne 0x1002b008
and dword [ebp - 0xe8], 0
jmp 0x1002b012
mov dword [ebp - 0xe8], 1
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*4 - 0x5c]
mov dword [ebp - 0x114], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*4 - 0x5c]
mov dword [ebp - 0x100], eax
cmp dword [ebp - 0x10], 0xca62e26a
je 0x1002b041
mov dword [ebp - 0x98], 1
jmp 0x1002b048
and dword [ebp - 0x98], 0
push 0
lea ecx, [ebp - 0xac]
call fcn.10028dbd
mov ecx, dword [ebp - 0x98]
cmp ecx, dword [eax]
jle 0x1002b06b
mov dword [ebp - 0xcc], 1
jmp 0x1002b072
and dword [ebp - 0xcc], 0
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp + eax*4 - 0x5c]
push 0
lea ecx, [ebp - 0xac]
call fcn.10028dbd
cmp esi, dword [eax]
je 0x1002b096
mov dword [ebp - 0x88], 1
jmp 0x1002b09d
and dword [ebp - 0x88], 0
push 0
lea ecx, [ebp - 0xac]
call fcn.10028dbd
mov ecx, dword [ebp - 0x88]
mov dword [eax], ecx
mov dword [ebp - 0x14], 0
jmp 0x1002b0c2
mov eax, dword [ebp - 0x14]
dec eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xfffffff9
jge 0x1002b0eb
mov byte [ebp - 0x18], 0
movzx eax, byte [ebp - 0x18]
test eax, eax
je 0x1002b0e9
push 0xbdd
push 0xe8e
push 0x20ec
call dword [sym.imp.KERNEL32.dll_HeapCreate]
jmp 0x1002b0bb
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.10028da1
jmp 0x1002aea8
mov dword [ebp - 0x10], 0x15
jmp 0x1002b10f
mov eax, dword [ebp - 0x10]
dec eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 7
jle 0x1002b2b5
mov dword [ebp - 0x40], 0xe767e792
mov dword [ebp - 0x70], 0xffffffff
mov dword [ebp - 0x14], 0x12
jmp 0x1002b137
mov eax, dword [ebp - 0x14]
dec eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x1002b2b0
mov dword [ebp - 0xb8], 0x48ec
mov dword [ebp - 0x68], 0x8781562e
mov dword [ebp - 0x64], 6
cmp dword [ebp - 0x40], 0
jne 0x1002b238
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x60]
inc ecx
mov dword [ebp - 0x60], ecx
test eax, eax
je 0x1002b209
mov eax, dword [ebp - 0x70]
cmp dword [ebp - 0x68], eax
jge 0x1002b189
push 4
pop eax
shl eax, 1
cmp dword [ebp + eax - 0x5c], 0
je 0x1002b19b
cmp dword [ebp - 0x40], 0
je 0x1002b19b
mov dword [ebp - 0xb0], 1
jmp 0x1002b1a2
and dword [ebp - 0xb0], 0
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x104], eax
mov eax, 0xfffc
test eax, eax
je 0x1002b1bd
mov eax, 0x6681
test eax, eax
jne 0x1002b1cc
cmp dword [ebp - 0x40], 0
jne 0x1002b1cc
and dword [ebp - 0xb4], 0
jmp 0x1002b1d6
mov dword [ebp - 0xb4], 1
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp - 0x10]
sub eax, 0x5f6c088c
jne 0x1002b1f8
mov eax, 0xdd35930c
test eax, eax
jne 0x1002b1f8
and dword [ebp - 0x74], 0
jmp 0x1002b1ff
mov dword [ebp - 0x74], 1
mov eax, dword [ebp - 0x70]
imul eax, dword [ebp - 0x74]
sub eax, dword [ebp - 0x64]
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x10]
cmp dword [ebp - 0xb8], eax
je 0x1002b220
mov dword [ebp - 0x6c], 1
jmp 0x1002b224
and dword [ebp - 0x6c], 0
mov eax, dword [ebp - 0x68]
imul eax, dword [ebp - 0x6c]
test eax, eax
jne 0x1002b238
and dword [ebp - 0x84], 0
jmp 0x1002b242
mov dword [ebp - 0x84], 1
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0xc0], eax
cmp dword [ebp - 0x40], 0xfffffffe
je 0x1002b260
mov dword [ebp - 0x8c], 1
jmp 0x1002b267
and dword [ebp - 0x8c], 0
imul eax, dword [ebp - 0x8c], 0xff6
mov dword [ebp - 0x94], eax
push 4
pop eax
shl eax, 0
mov ecx, dword [ebp - 0x94]
mov dword [ebp + eax - 0x5c], ecx
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0xc8], eax
mov byte [ebp - 0x15], 0
movzx eax, byte [ebp - 0x15]
test eax, eax
je 0x1002b2ab
call dword [sym.imp.KERNEL32.dll_GetOEMCP]
jmp 0x1002b130
jmp 0x1002b108
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0xdc], eax
mov eax, dword [ebp - 0x2c]
mov dword [eax], 0
jmp 0x1002b2d7
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x2c]
mov dword [ecx], eax
mov eax, dword [ebp - 0x2c]
cmp dword [eax], 3
jge 0x1002b2f4
mov eax, dword [ebp - 0x2c]
push dword [eax]
mov ecx, dword [ebp - 0xdc]
call fcn.10028dbd
and dword [eax], 0
jmp 0x1002b2cc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret