Function at 0x1001ab05
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x184
movzx eax, byte [ebp + 0x1c]
test eax, eax
je 0x1001aba0
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x3c]
mov dword [ebp - 0xc8], eax
lea eax, [ebp + 0x2c]
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp - 0xf0]
movzx eax, byte [eax]
test eax, eax
je 0x1001ab47
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
jmp 0x1001ab9b
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0x128], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x128]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 8]
mov dword [eax], 0
jmp 0x1001ab7e
mov eax, dword [ebp - 8]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 1
jge 0x1001ab9b
mov eax, dword [ebp - 8]
push dword [eax]
mov ecx, dword [ebp - 0x60]
call fcn.10022bff
mov dword [eax], 0x951bb35b
jmp 0x1001ab73
jmp 0x1001b10f
lea eax, [ebp + 8]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0x48]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp + 0x4c]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x50]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp + 0x44]
mov dword [ebp - 0xe8], eax
mov dword [ebp - 0x3c], 0x6443
mov dword [ebp - 0x68], 0x10008588
cmp dword [ebp - 0x3c], 0x6539
jle 0x1001acb8
push 0
push 0
push 0
push 0
call dword [sym.imp.GDI32.dll_SetViewportOrgEx]
and dword [ebp - 0x20], 0
jmp 0x1001abfd
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x96b
jge 0x1001acb8
and dword [ebp - 0x28], 0
jmp 0x1001ac17
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x701e
jge 0x1001acb3
and dword [ebp - 0x18], 0
jmp 0x1001ac31
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x774c
jge 0x1001acae
and dword [ebp - 0x30], 0
jmp 0x1001ac47
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0x7c23
jge 0x1001aca9
mov eax, dword [ebp - 0x28]
add eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x30]
sar eax, cl
and eax, dword [ebp - 0x20]
cdq
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x114], edx
push dword [ebp - 0x114]
push dword [ebp - 0x118]
lea ecx, [ebp - 0x154]
call fcn.100118ee
pop ecx
pop ecx
mov dword [ebp - 0xd0], eax
mov ecx, dword [ebp - 0xd0]
call fcn.10022827
push eax
call fcn.10077843
pop ecx
lea ecx, [ebp - 0x154]
call fcn.1002281d
jmp 0x1001ac40
jmp 0x1001ac2a
jmp 0x1001ac10
jmp 0x1001abf6
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x3c], 0x641e
jge 0x1001acd0
push dword [ebp - 0x68]
call fcn.10077843
pop ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0x40]
mov dword [ebp - 0x138], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x110], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp + 0x54]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp + 0x38]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0xd8], eax
mov dword [ebp - 0x44], 0x19ec
mov dword [ebp - 0x10c], 0x100085d8
cmp dword [ebp - 0x44], 0x1d46
jle 0x1001ae0a
and dword [ebp - 0x34], 0
jmp 0x1001ad4f
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0x65d5
jge 0x1001ae0a
and dword [ebp - 0x38], 0
jmp 0x1001ad69
mov eax, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0x5e92
jge 0x1001ae05
and dword [ebp - 0x10], 0
jmp 0x1001ad83
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2f9
jge 0x1001ae00
and dword [ebp - 0x14], 0
jmp 0x1001ad99
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x2d9d
jge 0x1001adfb
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x10]
sar eax, cl
and eax, dword [ebp - 0x34]
xor eax, dword [ebp - 0x14]
cdq
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x120], edx
push dword [ebp - 0x120]
push dword [ebp - 0x124]
lea ecx, [ebp - 0x16c]
call fcn.100118ee
pop ecx
pop ecx
mov dword [ebp - 0x108], eax
mov ecx, dword [ebp - 0x108]
call fcn.10022827
push eax
call fcn.10077843
pop ecx
lea ecx, [ebp - 0x16c]
call fcn.1002281d
jmp 0x1001ad92
jmp 0x1001ad7c
jmp 0x1001ad62
jmp 0x1001ad48
mov eax, dword [ebp - 0x70]
movzx eax, byte [eax]
test eax, eax
je 0x1001af22
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x134], eax
mov eax, dword [ebp - 0x138]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp - 0x110]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0xe8]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x134]
mov dword [ebp - 0x100], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x11c]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x13c], eax
mov eax, dword [ebp - 0xf8]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x1c]
mov dword [eax], 0
jmp 0x1001aee8
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], eax
mov eax, dword [ebp - 0x1c]
cmp dword [eax], 2
jg 0x1001af1d
push dword [ebp - 0x13c]
push 0
push dword [ebp - 0xc0]
push dword [ebp - 0x100]
push dword [ebp - 0x4c]
push dword [ebp - 0x54]
push dword [ebp - 0x5c]
push dword [ebp - 0x64]
push dword [ebp - 0x6c]
call fcn.10020fc5
add esp, 0x24
jmp 0x1001aedd
jmp 0x1001b0fa
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0xfc], eax
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0xf4], eax
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0xec], eax
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x1001afbc
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jge 0x1001b0fa
mov dword [ebp - 0x40], 0x2912
mov dword [ebp - 0xdc], 0x100085f8
cmp dword [ebp - 0x40], 0x297a
jle 0x1001b061
and dword [ebp - 0x24], 0
jmp 0x1001afef
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x7044
jge 0x1001b061
and dword [ebp - 0x2c], 0
jmp 0x1001b005
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0x532
jge 0x1001b05f
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x2c]
cdq
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x12c], edx
push dword [ebp - 0x12c]
push dword [ebp - 0x130]
lea ecx, [ebp - 0x184]
call fcn.100118ee
pop ecx
pop ecx
mov dword [ebp - 0xd4], eax
mov ecx, dword [ebp - 0xd4]
call fcn.10022827
push eax
call fcn.10077843
pop ecx
lea ecx, [ebp - 0x184]
call fcn.1002281d
jmp 0x1001affe
jmp 0x1001afe8
mov dword [ebp - 0xe4], 0xfffffffe
cmp dword [ebp - 0x40], 0x280c
jge 0x1001b080
push dword [ebp - 0xdc]
call fcn.10077843
pop ecx
cmp dword [ebp - 0xe4], 0
je 0x1001b08b
jmp 0x1001b0fa
mov eax, dword [ebp - 0xc]
mov dword [eax], 0
jmp 0x1001b0a1
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax], 3
jg 0x1001b0f5
push dword [ebp - 4]
push dword [ebp - 0xc]
push dword [ebp - 0xec]
push 0
push 0x55b4
push 0
push dword [ebp - 0xf4]
push dword [ebp - 0xfc]
push dword [ebp - 0x104]
call fcn.1001b882
add esp, 0x24
push 0x15af
push 0x599d
push 0x5bb2
push 0
push 0
call fcn.100143ef
add esp, 0x14
jmp 0x1001b096
jmp 0x1001afb1
cmp dword [ebp - 0x44], 0x1721
jge 0x1001b10f
push dword [ebp - 0x10c]
call fcn.10077843
pop ecx
mov esp, ebp
pop ebp
ret