Function at 0x1001f831
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005ec92
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x100
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0x20]
test eax, eax
je 0x1001fae1
mov eax, dword [ebp + 0x38]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x98], eax
lea eax, [ebp + 0x34]
mov dword [ebp - 0xb8], eax
lea eax, [ebp + 0x1c]
mov dword [ebp - 0x80], eax
lea eax, [ebp + 0x24]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x88]
movzx eax, byte [eax]
test eax, eax
je 0x1001faa8
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x44], 0x1240
mov dword [ebp - 0xc0], str.akyb_tqvutjl_qjxiyduyn
cmp dword [ebp - 0x44], 0x1398
jle 0x1001f94b
and dword [ebp - 0x28], 0
jmp 0x1001f8d9
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x5dd5
jge 0x1001f94b
and dword [ebp - 0x20], 0
jmp 0x1001f8ef
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x37fb
jge 0x1001f949
mov eax, dword [ebp - 0x28]
and eax, dword [ebp - 0x20]
cdq
mov dword [ebp - 0xec], eax
mov dword [ebp - 0xe8], edx
push dword [ebp - 0xe8]
push dword [ebp - 0xec]
lea ecx, [ebp - 0x110]
call fcn.1000288f
pop ecx
pop ecx
mov dword [ebp - 0xdc], eax
mov ecx, dword [ebp - 0xdc]
call fcn.10006e26
push eax
call fcn.1004603d
pop ecx
lea ecx, [ebp - 0x110]
call fcn.10006e1c
jmp 0x1001f8e8
jmp 0x1001f8d2
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0xf0], eax
and dword [ebp - 4], 0
cmp dword [ebp - 0x44], 0x115f
jge 0x1001f96d
push dword [ebp - 0xc0]
call fcn.1004603d
pop ecx
jmp 0x1001f989
or dword [ebp - 4], 0xffffffff
jmp 0x1001f993
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x5c], eax
mov eax, dword [0x100a9d70]
and eax, 1
jne 0x1001f9d3
mov eax, dword [0x100a9d70]
or eax, 1
mov dword [0x100a9d70], eax
mov dword [ebp - 4], 2
mov ecx, 0x100a9d80
call fcn.10020436
push 0x1005f948
call fcn.10046013
pop ecx
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x3c]
imul eax, dword [eax], 0x3e8
mov ecx, dword [ebp - 0x64]
add eax, dword [ecx]
mov dword [ebp - 0x30], eax
movzx eax, byte [0x1007ac8c]
test eax, eax
je 0x1001fa48
mov ecx, 0x100a9d80
call fcn.100204fb
movzx eax, al
test eax, eax
jne 0x1001fa48
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x54]
push eax
mov ecx, 0x100a9d80
call fcn.10020504
lea eax, [ebp - 0xf8]
push eax
mov ecx, 0x100a9d80
call fcn.100204ed
push eax
lea ecx, [ebp - 0x54]
call fcn.10020423
movzx eax, al
test eax, eax
je 0x1001fa48
lea ecx, [ebp - 0x54]
call fcn.10020519
mov ecx, dword [ebp - 0x5c]
mov eax, dword [eax + 4]
mov dword [ecx], eax
jmp 0x1001fdc2
push dword [ebp - 0x3c]
call fcn.100130f6
pop ecx
mov dword [ebp - 0xcc], eax
push 1
mov eax, dword [ebp - 0x64]
push dword [eax]
push 0
push dword [ebp - 0xcc]
call fcn.100195a9
add esp, 0x10
mov dword [ebp - 0x4c], eax
push 0x100a9d80
push 0x6166
lea eax, [ebp - 0x30]
push eax
push 0x43b5
push 1
lea eax, [ebp - 0x4c]
push eax
push 0x1007ac8c
push 1
call fcn.1001f69b
add esp, 0x20
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x4c]
mov dword [eax], ecx
jmp 0x1001fdc2
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0xa0]
movzx eax, byte [eax]
test eax, eax
je 0x1001fadc
push 0x960
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
jmp 0x1001fdc2
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp + 0x3c]
mov dword [ebp - 0xb0], eax
lea eax, [ebp + 0x2c]
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0xe4], eax
mov eax, dword [ebp - 0xd8]
movzx eax, byte [eax]
test eax, eax
je 0x1001fcbd
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0xe4]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
jne 0x1001fc01
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0xf4], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx]
cmp ecx, dword [eax]
jne 0x1001fbc1
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
je 0x1001fbc1
mov dword [ebp - 0x6c], 1
jmp 0x1001fbc5
and dword [ebp - 0x6c], 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx]
imul ecx, dword [ebp - 0x6c]
mov edx, dword [ebp - 0x14]
mov edx, dword [edx]
sub edx, ecx
cmp edx, dword [eax]
je 0x1001fbe5
mov dword [ebp - 0x34], 1
jmp 0x1001fbe9
and dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
cmp dword [ebp - 0x34], eax
jle 0x1001fc01
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0
jne 0x1001fc01
and dword [ebp - 0x38], 0
jmp 0x1001fc08
mov dword [ebp - 0x38], 1
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
cmp dword [ebp - 0x38], eax
jl 0x1001fc1b
mov dword [ebp - 0x40], 1
jmp 0x1001fc1f
and dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x40]
add eax, 0xbfc3
mov ecx, dword [ebp - 0x48]
mov dword [ecx], eax
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx]
cmp ecx, dword [eax]
je 0x1001fc41
mov dword [ebp - 0x50], 1
jmp 0x1001fc45
and dword [ebp - 0x50], 0
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
cmp dword [ebp - 0x50], eax
jle 0x1001fc61
mov eax, 0x711db608
test eax, eax
je 0x1001fc61
mov dword [ebp - 0x2c], 1
jmp 0x1001fc65
and dword [ebp - 0x2c], 0
push 2
mov ecx, dword [ebp - 0x60]
call fcn.10001d6f
mov ecx, dword [ebp - 0x2c]
mov dword [eax], ecx
cmp dword [ebp - 0x2c], 0
jne 0x1001fc83
mov dword [ebp - 0x58], 1
jmp 0x1001fc87
and dword [ebp - 0x58], 0
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
cmp dword [ebp - 0x58], eax
jg 0x1001fca6
push 2
mov ecx, dword [ebp - 0x60]
call fcn.10001d6f
cmp dword [eax], 0
je 0x1001fca6
and dword [ebp - 0x68], 0
jmp 0x1001fcad
mov dword [ebp - 0x68], 1
mov eax, dword [ebp - 0xa4]
mov ecx, dword [ebp - 0x68]
mov dword [eax], ecx
jmp 0x1001fdc2
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0xbc]
movzx eax, byte [eax]
test eax, eax
je 0x1001fdc2
mov dword [ebp - 0x70], 0x5057
mov dword [ebp - 0xc4], str.ojgq_bdbjgodx_vsg_rmtojr_ancgrb_prhhs_xluts_edqtbtueg_sulkf_qhpenp
cmp dword [ebp - 0x70], 0x52e0
jle 0x1001fd63
and dword [ebp - 0x1c], 0
jmp 0x1001fd0d
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x3520
jge 0x1001fd59
and dword [ebp - 0x24], 0
jmp 0x1001fd23
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x6a54
jge 0x1001fd57
mov eax, dword [ebp - 0x1c]
xor eax, dword [ebp - 0x24]
cdq
mov dword [ebp - 0xd4], eax
mov dword [ebp - 0xd0], edx
push dword [ebp - 0xd0]
push dword [ebp - 0xd4]
mov ecx, 0x10079b38
call fcn.10006e46
jmp 0x1001fd1c
jmp 0x1001fd06
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
push 0xcaf
push 0x1059
push 1
push 0
push 0x25b7
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov dword [ebp - 4], 3
cmp dword [ebp - 0x70], 0x4fdc
jge 0x1001fd9c
mov edx, dword [ebp - 0xc4]
mov ecx, 0x10079b38
call fcn.10009b61
jmp 0x1001fdb8
or dword [ebp - 4], 0xffffffff
jmp 0x1001fdc2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret