Function at 0x1002bfe8
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10083bb6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x13c
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x1002c884
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xd4], eax
lea eax, [ebp + 8]
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xd4]
add ecx, dword [eax]
mov dword [ebp - 0xe8], ecx
mov dword [ebp - 0x10], 0xd386cce5
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x11c], 0xfffffff7
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x10], 1
jb 0x1002c0ad
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x20]
jl 0x1002c08c
mov dword [ebp - 0x9c], 1
jmp 0x1002c093
and dword [ebp - 0x9c], 0
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x9c]
lea eax, [ecx + eax + 4]
test eax, eax
jne 0x1002c0ad
and dword [ebp - 0xc4], 0
jmp 0x1002c0b7
mov dword [ebp - 0xc4], 1
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x18], 0
jmp 0x1002c0d0
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xe
jl 0x1002c1c7
mov dword [ebp - 0x40], 0x11
jmp 0x1002c0ea
mov eax, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0x13
jle 0x1002c1ae
mov dword [ebp - 0x20], 0x19
jmp 0x1002c104
mov eax, dword [ebp - 0x20]
dec eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x13
jge 0x1002c1a9
mov dword [ebp - 0x10], 0x12
jmp 0x1002c11e
mov eax, dword [ebp - 0x10]
dec eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffe8
jge 0x1002c17e
mov dword [ebp - 0x5c], 0x3cf81320
mov dword [ebp - 0x5c], 0
jmp 0x1002c13b
mov eax, dword [ebp - 0x5c]
dec eax
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0xfffffff4
jl 0x1002c162
mov dword [ebp - 0xf0], 2
lea eax, [ebp - 0xf0]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
call fcn.1002bbce
add esp, 0xc
jmp 0x1002c134
mov byte [ebp - 0x19], 0
movzx eax, byte [ebp - 0x19]
test eax, eax
je 0x1002c17c
push 0
push 0x604e
call fcn.1002bfb6
pop ecx
pop ecx
jmp 0x1002c117
mov dword [ebp - 0x10], 0
jmp 0x1002c18e
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x11
jg 0x1002c1a4
push 0x41f2
push 1
call fcn.1002bc44
pop ecx
pop ecx
jmp 0x1002c187
jmp 0x1002c0fd
jmp 0x1002c0e3
push 0
push 0x701c
push 0x1a64
call fcn.1002c8a1
add esp, 0xc
jmp 0x1002c0c9
mov eax, dword [ebp - 0x38]
mov eax, dword [eax]
add eax, 8
mov dword [ebp - 0x44], eax
push 1
push 0x53dc
push 0x4328
call fcn.1002bcb5
add esp, 0xc
and dword [ebp - 0x64], 0
jmp 0x1002c1fb
mov eax, dword [ebp - 0x64]
inc eax
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x44]
inc eax
inc eax
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x38]
mov eax, dword [eax]
mov eax, dword [eax + 4]
sub eax, 8
shr eax, 1
cmp dword [ebp - 0x64], eax
jae 0x1002c7de
mov dword [ebp - 0x3c], 0x5b9b55bb
mov dword [ebp - 0x6c], 1
mov dword [ebp - 0x4c], 0
jmp 0x1002c22f
mov eax, dword [ebp - 0x4c]
inc eax
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 4
jge 0x1002c245
mov eax, dword [ebp - 0x4c]
mov dword [ebp + eax*4 - 0x148], 1
jmp 0x1002c228
mov dword [ebp - 0x3c], 0xffffffee
jmp 0x1002c255
mov eax, dword [ebp - 0x3c]
inc eax
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0x14
jg 0x1002c46a
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x24], 3
jmp 0x1002c276
mov eax, dword [ebp - 0x24]
dec eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jl 0x1002c465
mov dword [ebp - 0xec], 1
mov dword [ebp - 0x58], 0
jmp 0x1002c29a
mov eax, dword [ebp - 0x58]
inc eax
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 2
jge 0x1002c2b0
mov eax, dword [ebp - 0x58]
mov dword [ebp + eax*4 - 0xc0], 0xfffffff7
jmp 0x1002c293
push 4
pop eax
imul eax, eax, 0
mov dword [ebp + eax - 0xc0], 0
jmp 0x1002c2de
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0xc0]
inc eax
push 4
pop ecx
imul ecx, ecx, 0
mov dword [ebp + ecx - 0xc0], eax
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0xc0], 3
jg 0x1002c460
mov dword [ebp - 0x2c], 0x1c3a23fe
mov dword [ebp - 0x110], 0x79facd4a
mov dword [ebp - 0x2c], 3
jmp 0x1002c313
mov eax, dword [ebp - 0x2c]
dec eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jl 0x1002c45b
push 3
lea ecx, [ebp - 0x108]
call fcn.1001770e
and dword [ebp - 4], 0
push 1
push 0x3f3c
push 0x5d18
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x108]
push eax
push 0x769d
call fcn.1002bd60
add esp, 0x18
mov eax, dword [ebp - 0x24]
mov eax, dword [ebp + eax*4 - 0x148]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [ebp + eax*4 - 0x148]
cmp eax, dword [ebp - 0x6c]
jge 0x1002c37d
mov dword [ebp - 0xa4], 1
jmp 0x1002c384
and dword [ebp - 0xa4], 0
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x10c], eax
push 1
lea ecx, [ebp - 0x108]
call fcn.1001779a
cmp dword [ebp - 0x3c], 0
je 0x1002c3be
cmp dword [ebp - 0xec], 0
je 0x1002c3be
mov eax, 0xb34c266d
test eax, eax
je 0x1002c3be
mov dword [ebp - 0xb8], 1
jmp 0x1002c3c5
and dword [ebp - 0xb8], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0xc0]
cmp dword [ebp - 0xb8], eax
jge 0x1002c3e6
mov dword [ebp - 0x84], 1
jmp 0x1002c3ed
and dword [ebp - 0x84], 0
cmp dword [ebp - 0x84], 0xffffffff
je 0x1002c402
mov dword [ebp - 0x8c], 1
jmp 0x1002c409
and dword [ebp - 0x8c], 0
mov eax, dword [ebp - 0xa4]
cmp eax, dword [ebp - 0x8c]
jg 0x1002c430
lea eax, [ebp - 0x6c]
push eax
push 0x44ea
push 0
lea eax, [ebp - 0x2c]
push eax
call fcn.1002cbf5
add esp, 0x10
jmp 0x1002c447
mov dword [ebp - 0xb4], 0
mov eax, dword [ebp - 0xb4]
inc eax
mov dword [ebp - 0xb4], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x108]
call fcn.10017795
jmp 0x1002c30c
jmp 0x1002c2c3
jmp 0x1002c26f
jmp 0x1002c24e
lea eax, [ebp - 0x44]
push eax
push 1
lea eax, [ebp - 0xe4]
push eax
push 0x1af3
push 0x3650
call fcn.1002be0d
add esp, 0x14
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 0x34], 0xc3414b5
mov dword [ebp - 0x30], 0xffffffff
mov dword [ebp - 0x90], 0x5e07
mov dword [ebp - 0xa0], 9
push 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.1002ea66
add esp, 0x18
mov dword [ebp - 0x34], 0x11
jmp 0x1002c4e6
mov eax, dword [ebp - 0x34]
dec eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xfffffff6
jl 0x1002c77c
mov dword [ebp - 0x28], 1
mov dword [ebp - 0xe0], 0xffffffff
mov dword [ebp - 0x54], 0
jmp 0x1002c511
mov eax, dword [ebp - 0x54]
inc eax
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 2
jge 0x1002c524
mov eax, dword [ebp - 0x54]
mov dword [ebp + eax*4 - 0x74], 0x7af2
jmp 0x1002c50a
mov dword [ebp - 0x14], 0
jmp 0x1002c534
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
jg 0x1002c777
mov dword [ebp - 0x60], 6
mov dword [ebp - 0x124], 0x4a1d
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x118], 0xffffffff
push 1
lea ecx, [ebp - 0xfc]
call fcn.1001770e
mov dword [ebp - 4], 1
mov dword [ebp - 0x68], 6
push 0x5769
push 0x7a
lea eax, [ebp - 0xfc]
push eax
push 0
lea eax, [ebp - 0x128]
push eax
call fcn.1002bee3
add esp, 0x14
mov eax, dword [ebp - 0x68]
inc eax
mov dword [ebp - 0x68], eax
push 0
lea ecx, [ebp - 0xfc]
call fcn.1001779a
mov eax, dword [eax]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x94]
imul ecx, dword [ebp + eax*4 - 0x74]
mov eax, dword [ebp - 0x68]
add eax, ecx
push 4
pop ecx
imul ecx, ecx, 0
cmp dword [ebp + ecx - 0x74], eax
jg 0x1002c5ee
mov dword [ebp - 0xac], 1
jmp 0x1002c5f5
and dword [ebp - 0xac], 0
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0x74]
add eax, dword [ebp - 0xac]
cmp eax, dword [ebp - 0x34]
jle 0x1002c613
mov dword [ebp - 0x78], 1
jmp 0x1002c617
and dword [ebp - 0x78], 0
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0x78], eax
jge 0x1002c632
mov eax, dword [ebp - 0x14]
cmp dword [ebp + eax*4 - 0x74], 0
je 0x1002c632
mov dword [ebp - 0x7c], 1
jmp 0x1002c636
and dword [ebp - 0x7c], 0
cmp dword [ebp - 0x7c], 0xffff
jae 0x1002c648
mov dword [ebp - 0x80], 1
jmp 0x1002c64c
and dword [ebp - 0x80], 0
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp + eax*4 - 0x74]
cmp eax, dword [ebp - 0x80]
jle 0x1002c664
mov dword [ebp - 0x88], 1
jmp 0x1002c66b
and dword [ebp - 0x88], 0
push 0
lea ecx, [ebp - 0xfc]
call fcn.1001779a
mov ecx, dword [ebp - 0x88]
mov dword [eax], ecx
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0x74]
push 4
pop ecx
imul ecx, ecx, 0
add eax, dword [ebp + ecx - 0x74]
cmp eax, dword [ebp - 0x90]
jle 0x1002c6a8
mov dword [ebp - 0x98], 1
jmp 0x1002c6af
and dword [ebp - 0x98], 0
mov eax, dword [ebp - 0x98]
sub eax, dword [ebp - 0xe0]
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x28], 1
jmp 0x1002c6d1
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 6
jg 0x1002c763
mov dword [ebp - 0xc8], 1
mov dword [ebp - 0x60], 2
jmp 0x1002c6f5
mov eax, dword [ebp - 0x60]
dec eax
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0xfffffff2
jne 0x1002c75e
mov dword [ebp - 0x30], 0
jmp 0x1002c70b
mov eax, dword [ebp - 0x30]
dec eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffec
je 0x1002c75c
mov dword [ebp - 0xa8], 0xe942fafe
cmp dword [ebp - 0x28], 0
jne 0x1002c738
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x30]
push eax
push 1
call fcn.1002be94
add esp, 0xc
jmp 0x1002c75a
lea eax, [ebp - 0xc8]
push eax
lea eax, [ebp - 0xa8]
push eax
push 0x207f
push 1
push 0x1dd8
call fcn.1002bee3
add esp, 0x14
jmp 0x1002c704
jmp 0x1002c6ee
jmp 0x1002c6ca
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xfc]
call fcn.10017795
jmp 0x1002c52d
jmp 0x1002c4df
lea eax, [ebp - 0x44]
push eax
push 0x43e8
push 1
lea eax, [ebp - 0xcc]
push eax
call fcn.1002bf61
add esp, 0x10
mov eax, dword [ebp - 0xe4]
mov dword [ebp - 0xdc], eax
cmp dword [ebp - 0xdc], 3
je 0x1002c7af
jmp 0x1002c7d9
mov eax, dword [ebp - 0xe8]
add eax, dword [ebp - 0xcc]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0xb0]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xd0]
add eax, dword [ecx]
mov ecx, dword [ebp - 0xb0]
mov dword [ecx], eax
jmp 0x1002c1ec
push 3
lea ecx, [ebp - 0x134]
call fcn.1001770e
mov dword [ebp - 4], 2
mov dword [ebp - 0x50], 0x39beb064
mov dword [ebp - 0x120], 0x4cdb8faa
mov dword [ebp - 0x48], 0
jmp 0x1002c813
mov eax, dword [ebp - 0x48]
inc eax
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 3
jge 0x1002c82f
push dword [ebp - 0x48]
lea ecx, [ebp - 0x134]
call fcn.1001779a
mov dword [eax], 0xbbca6318
jmp 0x1002c80c
mov dword [ebp - 0x50], 2
jmp 0x1002c83f
mov eax, dword [ebp - 0x50]
dec eax
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jl 0x1002c861
mov dword [ebp - 0xd8], 0x3921ded6
push 1
lea eax, [ebp - 0xd8]
push eax
call fcn.1002bfb6
pop ecx
pop ecx
jmp 0x1002c838
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x134]
call fcn.10017795
mov eax, dword [ebp - 0x38]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x38]
mov ecx, dword [ecx]
add ecx, dword [eax + 4]
mov eax, dword [ebp - 0x38]
mov dword [eax], ecx
jmp 0x1002c893
push 0x2134
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret