Function at 0x1002ddd8
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x1002de27
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x140], eax
mov eax, dword [ebp - 0x140]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
lea eax, [eax*4 + 4]
push eax
mov eax, dword [ebp - 0x58]
mov eax, dword [eax]
push dword [eax + 8]
call fcn.1006f50c
pop ecx
pop ecx
mov ecx, dword [ebp - 0x58]
mov ecx, dword [ecx]
mov dword [ecx + 8], eax
jmp 0x1002e9a8
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x104], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x54], 0x1f7e2799
mov dword [ebp - 0x148], 0xfffffffe
mov dword [ebp - 0x10c], 0xb7e280bf
mov dword [ebp - 0x48], 0
jmp 0x1002de67
mov eax, dword [ebp - 0x48]
inc eax
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 3
jge 0x1002de7d
mov eax, dword [ebp - 0x48]
mov dword [ebp + eax*4 - 0x1c0], 5
jmp 0x1002de60
mov dword [ebp - 0x54], 0
jmp 0x1002de8d
mov eax, dword [ebp - 0x54]
dec eax
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0xffffffe2
jg 0x1002e0d2
mov dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 0x3c], 0
jmp 0x1002deae
mov eax, dword [ebp - 0x3c]
inc eax
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 1
jge 0x1002dec1
mov eax, dword [ebp - 0x3c]
mov dword [ebp + eax*4 - 0x60], 0x678e045
jmp 0x1002dea7
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x1c0]
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x24], 0xd
jmp 0x1002dee4
mov eax, dword [ebp - 0x24]
dec eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffee
jne 0x1002e0cd
mov dword [ebp - 0x10], 0
jmp 0x1002defe
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 2
jge 0x1002df11
mov eax, dword [ebp - 0x10]
mov dword [ebp + eax*4 - 0x70], 0x48214d2f
jmp 0x1002def7
mov dword [ebp - 0x10], 0
jmp 0x1002df21
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 4
jge 0x1002df37
mov eax, dword [ebp - 0x10]
mov dword [ebp + eax*4 - 0x1e0], 1
jmp 0x1002df1a
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x70], 0
je 0x1002e08f
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x70], 0
jae 0x1002df61
mov dword [ebp - 0x94], 1
jmp 0x1002df68
and dword [ebp - 0x94], 0
push 4
pop eax
shl eax, 0
mov ecx, dword [ebp - 0x24]
cmp dword [ebp + eax - 0x70], ecx
jl 0x1002df83
mov dword [ebp - 0x108], 1
jmp 0x1002df8a
and dword [ebp - 0x108], 0
mov eax, dword [ebp - 0x94]
cmp eax, dword [ebp - 0x108]
jge 0x1002dfa4
mov dword [ebp - 0x128], 1
jmp 0x1002dfab
and dword [ebp - 0x128], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x70]
mov dword [ebp - 0x174], eax
mov eax, dword [ebp - 0x10c]
mov dword [ebp - 0x168], eax
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x60]
mov dword [ebp - 0x170], eax
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x60], 2
jle 0x1002dfed
mov dword [ebp - 0x80], 1
jmp 0x1002dff1
and dword [ebp - 0x80], 0
cmp dword [ebp - 0x80], 0
jl 0x1002e003
mov dword [ebp - 0xcc], 1
jmp 0x1002e00a
and dword [ebp - 0xcc], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x70]
cmp dword [ebp - 0xcc], eax
jg 0x1002e025
mov dword [ebp - 0x68], 1
jmp 0x1002e029
and dword [ebp - 0x68], 0
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x68]
mov dword [ebp + eax - 0x60], ecx
cmp dword [ebp - 0x68], 0xfffffffe
je 0x1002e048
mov dword [ebp - 0x88], 1
jmp 0x1002e04f
and dword [ebp - 0x88], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x70]
cmp dword [ebp - 0x88], eax
jge 0x1002e06a
mov dword [ebp - 0x5c], 1
jmp 0x1002e06e
and dword [ebp - 0x5c], 0
push 4
pop eax
shl eax, 1
mov ecx, dword [ebp - 0x5c]
mov dword [ebp + eax - 0x1e0], ecx
cmp dword [ebp - 0x5c], 0
je 0x1002e08f
mov dword [ebp - 0xd0], 1
jmp 0x1002e096
and dword [ebp - 0xd0], 0
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0xd0], eax
jle 0x1002e0ad
mov dword [ebp - 0x90], 1
jmp 0x1002e0b4
and dword [ebp - 0x90], 0
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x148], eax
cmp dword [ebp - 0x24], 0
je 0x1002e0c8
jmp 0x1002e0cd
jmp 0x1002dedd
jmp 0x1002de86
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x64]
mov ecx, dword [ecx + 0x10]
mov dword [eax], ecx
mov dword [ebp - 0x13c], 4
mov dword [ebp - 0x1b4], 0
mov dword [ebp - 0x154], 6
mov dword [ebp - 0x1a8], 0
mov dword [ebp - 0x15c], 0x8a11015a
mov dword [ebp - 0x1a0], 0xe4f1f13b
mov dword [ebp - 0x164], 6
mov dword [ebp - 0x1b0], 0xf97812a3
mov dword [ebp - 0x16c], 0x4e1c2e93
mov dword [ebp - 0x188], 0xffffffff
mov dword [ebp - 0x14c], 0x3af7806a
mov dword [ebp - 0x18], 0
jmp 0x1002e15b
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 4
jge 0x1002e171
mov eax, dword [ebp - 0x18]
mov dword [ebp + eax*4 - 0x1fc], 0
jmp 0x1002e154
mov dword [ebp - 0x18], 0
jmp 0x1002e181
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 4
jge 0x1002e197
mov eax, dword [ebp - 0x18]
mov dword [ebp + eax*4 - 0x20c], 0xfffffffd
jmp 0x1002e17a
push 0
lea eax, [ebp - 0x13c]
push eax
call fcn.10029534
pop ecx
pop ecx
mov eax, dword [ebp - 0x40]
cmp dword [eax], 0
jne 0x1002e9a8
mov dword [ebp - 0x2c], 0xffffffff
mov dword [ebp - 0x44], 0xffffffff
mov dword [ebp - 0x2c], 0
jmp 0x1002e1d1
mov eax, dword [ebp - 0x2c]
dec eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xffffffe4
jl 0x1002e505
mov dword [ebp - 4], 0xeec5
mov dword [ebp - 0x11c], 0x74aa0d72
mov dword [ebp - 0x118], 0x74aa0d72
mov dword [ebp - 0x114], 0x74aa0d72
mov dword [ebp - 0x110], 0x74aa0d72
cmp dword [ebp - 0x2c], 0xd1b9849b
jae 0x1002e21f
mov dword [ebp - 0xf0], 1
jmp 0x1002e226
and dword [ebp - 0xf0], 0
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xf0]
jne 0x1002e23d
mov dword [ebp - 0x98], 1
jmp 0x1002e244
and dword [ebp - 0x98], 0
mov eax, dword [ebp - 4]
mov dword [ebp - 0xd8], eax
push 4
pop eax
shl eax, 1
mov ecx, dword [ebp - 0xd8]
mov dword [ebp + eax - 0x11c], ecx
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0x98]
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0xd8]
sub ecx, eax
cmp ecx, 0xeea5
je 0x1002e287
mov dword [ebp - 0xa0], 1
jmp 0x1002e28e
and dword [ebp - 0xa0], 0
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0xa0], eax
jle 0x1002e4b7
mov dword [ebp - 0xc], 0xfffffffd
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0x11c]
mov dword [ebp - 0x19c], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x184], eax
or eax, 0xffffffff
sub eax, 0x5922
imul eax, eax, 0xf2d
imul eax, dword [ebp - 4]
test eax, eax
jae 0x1002e2e2
mov dword [ebp - 0x100], 1
jmp 0x1002e2e9
and dword [ebp - 0x100], 0
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x100]
jl 0x1002e300
mov dword [ebp - 0xa8], 1
jmp 0x1002e307
and dword [ebp - 0xa8], 0
cmp dword [ebp - 0xa8], 0x7c71
jle 0x1002e31f
mov dword [ebp - 0xe0], 1
jmp 0x1002e326
and dword [ebp - 0xe0], 0
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xe0]
jg 0x1002e36b
mov dword [ebp - 0x138], 0x1718bc69
mov dword [ebp - 0xc], 0
jmp 0x1002e34b
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 3
jg 0x1002e369
push 0
push 0x167f
lea eax, [ebp - 0x138]
push eax
call fcn.1002ef9e
add esp, 0xc
jmp 0x1002e344
jmp 0x1002e3e3
mov dword [ebp - 0xc], 0
jmp 0x1002e37b
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 3
jg 0x1002e3e3
mov dword [ebp - 4], 0
jmp 0x1002e391
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 3
jg 0x1002e3c7
mov dword [ebp - 0x50], 0xf19716e2
mov dword [ebp - 0x50], 0
jmp 0x1002e3ae
mov eax, dword [ebp - 0x50]
inc eax
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 3
jg 0x1002e3c5
mov eax, dword [ebp - 4]
cmp dword [ebp + eax*4 - 0x11c], 0
je 0x1002e3c3
jmp 0x1002e3c5
jmp 0x1002e3a7
jmp 0x1002e38a
mov byte [ebp - 0x2d], 0
movzx eax, byte [ebp - 0x2d]
test eax, eax
je 0x1002e3e1
push 1
push 0x56ad
call fcn.10027ece
pop ecx
pop ecx
jmp 0x1002e374
cmp dword [ebp - 0x44], 0
jne 0x1002e453
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x44], eax
jne 0x1002e3fd
mov dword [ebp - 0xb0], 1
jmp 0x1002e404
and dword [ebp - 0xb0], 0
cmp dword [ebp - 0xb0], 0xb8f3be
jle 0x1002e41c
mov dword [ebp - 0xf8], 1
jmp 0x1002e423
and dword [ebp - 0xf8], 0
cmp dword [ebp - 0xf8], 0xffffffff
je 0x1002e438
mov dword [ebp - 0xb8], 1
jmp 0x1002e43f
and dword [ebp - 0xb8], 0
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 0xb8], eax
je 0x1002e453
and dword [ebp - 0xe8], 0
jmp 0x1002e45d
mov dword [ebp - 0xe8], 1
push 4
pop eax
imul eax, eax, 3
mov eax, dword [ebp + eax - 0x11c]
cmp eax, dword [ebp - 0xe8]
jg 0x1002e47e
mov dword [ebp - 0xc0], 1
jmp 0x1002e485
and dword [ebp - 0xc0], 0
mov eax, dword [ebp - 0x44]
cmp dword [ebp - 0xc0], eax
jge 0x1002e49c
mov dword [ebp - 0xc8], 1
jmp 0x1002e4a3
and dword [ebp - 0xc8], 0
push 4
pop eax
shl eax, 1
mov ecx, dword [ebp - 0xc8]
mov dword [ebp + eax - 0x11c], ecx
jmp 0x1002e4da
mov byte [ebp - 0x35], 0
movzx eax, byte [ebp - 0x35]
test eax, eax
je 0x1002e4d2
push 0xc57
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp dword [ebp - 0x44], 0
je 0x1002e4da
jmp 0x1002e505
mov dword [ebp - 4], 0
jmp 0x1002e4ea
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 4
jge 0x1002e500
mov eax, dword [ebp - 4]
mov dword [ebp + eax*4 - 0x11c], 0xffffffff
jmp 0x1002e4e3
jmp 0x1002e1ca
mov eax, dword [ebp - 0x64]
mov eax, dword [eax + 0x24]
and eax, 0x40
je 0x1002e909
mov dword [ebp - 0x1c], 0xeaa32b1c
mov dword [ebp - 8], 0
jmp 0x1002e52b
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 2
jge 0x1002e541
mov eax, dword [ebp - 8]
mov dword [ebp + eax*4 - 0x124], 0xfffffffe
jmp 0x1002e524
mov dword [ebp - 8], 0
jmp 0x1002e551
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 4
jge 0x1002e567
mov eax, dword [ebp - 8]
mov dword [ebp + eax*4 - 0x1d0], 5
jmp 0x1002e54a
mov dword [ebp - 8], 0
jmp 0x1002e577
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 3
jge 0x1002e58d
mov eax, dword [ebp - 8]
mov dword [ebp + eax*4 - 0x180], 0x7cec
jmp 0x1002e570
mov dword [ebp - 0x1c], 0
jmp 0x1002e59d
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 1
jg 0x1002e8ef
mov dword [ebp - 0x14], 0xabbf9acf
mov dword [ebp - 0x34], 4
mov dword [ebp - 0x12c], 1
mov dword [ebp - 0x144], 0x66969e96
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1a4], eax
mov eax, dword [ebp - 0x14]
sub eax, 0x52a5ae63
cmp eax, dword [ebp - 0x1c]
jl 0x1002e5e8
mov dword [ebp - 0x78], 1
jmp 0x1002e5ec
and dword [ebp - 0x78], 0
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0x124]
cmp dword [ebp - 0x78], eax
jne 0x1002e607
mov dword [ebp - 0x7c], 1
jmp 0x1002e60b
and dword [ebp - 0x7c], 0
mov eax, dword [ebp - 0x14]
imul eax, dword [ebp - 0x7c]
cmp eax, 0xc1464f16
je 0x1002e625
mov dword [ebp - 0x84], 1
jmp 0x1002e62c
and dword [ebp - 0x84], 0
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x84], eax
jle 0x1002e643
mov dword [ebp - 0x8c], 1
jmp 0x1002e64a
and dword [ebp - 0x8c], 0
mov eax, dword [ebp - 0x8c]
sub eax, 0x47d1afd0
je 0x1002e670
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x124], 0
je 0x1002e670
mov dword [ebp - 0x74], 1
jmp 0x1002e674
and dword [ebp - 0x74], 0
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp - 0x1c]
dec eax
je 0x1002e76c
mov dword [ebp - 0x9c], 1
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x1ac], eax
cmp dword [ebp - 0x9c], 0xfffe
jne 0x1002e6b5
cmp dword [ebp - 0x14], 0
je 0x1002e6b5
mov dword [ebp - 0xa4], 1
jmp 0x1002e6bc
and dword [ebp - 0xa4], 0
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0xa4], eax
jl 0x1002e6df
cmp dword [ebp - 0x14], 0
je 0x1002e6df
cmp dword [ebp - 0x14], 0
je 0x1002e6df
mov dword [ebp - 0xac], 1
jmp 0x1002e6e6
and dword [ebp - 0xac], 0
mov dword [ebp - 0x34], 0x5290ce96
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0xac]
jg 0x1002e704
mov dword [ebp - 0xb4], 1
jmp 0x1002e70b
and dword [ebp - 0xb4], 0
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0x124]
cmp dword [ebp - 0xb4], eax
jle 0x1002e742
mov byte [ebp - 0x1d], 0
movzx eax, byte [ebp - 0x1d]
test eax, eax
je 0x1002e740
push 0
push 0x6a3a
push 0x6a74
call fcn.10029610
add esp, 0xc
jmp 0x1002e76a
mov dword [ebp - 0x134], 0x430688cd
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x34]
push eax
push 0x6424
lea eax, [ebp - 0x14]
push eax
push 0
call fcn.10029468
add esp, 0x14
jmp 0x1002e7e5
mov dword [ebp - 0x150], 0xa227283a
mov dword [ebp - 0x158], 1
mov dword [ebp - 0x198], 8
mov dword [ebp - 0x194], 8
mov dword [ebp - 0x190], 8
mov dword [ebp - 0x18c], 8
mov dword [ebp - 0xbc], 0x111919b1
mov dword [ebp - 0x4c], 0
jmp 0x1002e7c2
mov eax, dword [ebp - 0x4c]
inc eax
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 3
jge 0x1002e7d8
mov eax, dword [ebp - 0x4c]
mov dword [ebp + eax*4 - 0x1ec], 0xade45a91
jmp 0x1002e7bb
mov eax, dword [ebp - 0xbc]
dec eax
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x160], eax
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x180], 0
je 0x1002e88b
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x124], 0x4f7d9fd5
jl 0x1002e821
mov dword [ebp - 0xc4], 1
jmp 0x1002e828
and dword [ebp - 0xc4], 0
mov eax, dword [ebp - 0x144]
cmp dword [ebp - 0xc4], eax
jge 0x1002e842
mov dword [ebp - 0xd4], 1
jmp 0x1002e849
and dword [ebp - 0xd4], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x180]
cmp dword [ebp - 0xd4], eax
je 0x1002e86a
mov dword [ebp - 0xdc], 1
jmp 0x1002e871
and dword [ebp - 0xdc], 0
mov eax, dword [ebp - 0x34]
imul eax, dword [ebp - 0xdc]
test eax, eax
je 0x1002e88b
mov dword [ebp - 0xe4], 1
jmp 0x1002e892
and dword [ebp - 0xe4], 0
mov eax, dword [ebp - 0xe4]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x34], eax
jg 0x1002e8af
mov dword [ebp - 0xec], 1
jmp 0x1002e8b6
and dword [ebp - 0xec], 0
mov eax, dword [ebp - 0x12c]
cmp eax, dword [ebp - 0xec]
jge 0x1002e8d0
mov dword [ebp - 0xf4], 1
jmp 0x1002e8d7
and dword [ebp - 0xf4], 0
push 4
pop eax
shl eax, 0
mov ecx, dword [ebp - 0xf4]
mov dword [ebp + eax - 0x1d0], ecx
jmp 0x1002e596
lea eax, [ebp - 0x104]
push eax
push 0
lea eax, [ebp - 0x40]
push eax
call fcn.1002a8ab
add esp, 0xc
jmp 0x1002e9a8
mov eax, dword [ebp - 0x64]
mov eax, dword [eax + 0x24]
and eax, 0x80
je 0x1002e9a8
mov dword [ebp - 0x130], 0x327cb3f4
mov dword [ebp - 0xfc], 2
mov eax, dword [ebp - 0x130]
mov dword [ebp - 0xfc], eax
cmp dword [ebp - 0xfc], 0
je 0x1002e98a
mov byte [ebp - 0x36], 0
movzx eax, byte [ebp - 0x36]
test eax, eax
je 0x1002e95d
push 0x61d8
push 0
call fcn.1002e9ac
pop ecx
pop ecx
mov byte [ebp - 0x25], 0
push 0x6224
push 0xffa
push 0xdc4
lea eax, [ebp - 0x25]
push eax
push 0x4667
push 0
push 0x1e2f
call fcn.10027f9f
add esp, 0x1c
jmp 0x1002e998
push 0x50af
push 0
call fcn.1002aac3
pop ecx
pop ecx
mov eax, dword [ebp - 0x104]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x40]
mov eax, dword [eax + 0x24]
mov dword [ecx], eax
mov esp, ebp
pop ebp
ret