Function at 0x1001d9d6
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10061f65
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x58
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1001db36
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x34], eax
lea eax, [ebp + 0x14]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
movzx eax, byte [eax]
test eax, eax
je 0x1001da2c
push 0
push 0x20d5
call dword [sym.imp.USER32.dll_BeginPaint]
jmp 0x1001db31
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x28], 0x692d
mov dword [ebp - 0x40], 0x100087e0
cmp dword [ebp - 0x28], 0x6c6e
jle 0x1001dad8
and dword [ebp - 0x18], 0
jmp 0x1001da60
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x6f7d
jge 0x1001dad8
and dword [ebp - 0x1c], 0
jmp 0x1001da76
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x13e6
jge 0x1001dad6
and dword [ebp - 0x20], 0
jmp 0x1001da8c
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x5040
jge 0x1001dad4
and dword [ebp - 0x24], 0
jmp 0x1001daa2
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x51a8
jge 0x1001dad2
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
sar eax, cl
or eax, dword [ebp - 0x24]
cdq
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], edx
push dword [ebp - 0x64]
push dword [ebp - 0x68]
mov ecx, 0x1060a8b8
call fcn.1000de0e
jmp 0x1001da9b
jmp 0x1001da85
jmp 0x1001da6f
jmp 0x1001da59
mov eax, dword [ebp - 0x3c]
movzx eax, byte [eax]
test eax, eax
je 0x1001daf1
push 0xfa8
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
and dword [ebp - 4], 0
cmp dword [ebp - 0x28], 0x6603
jge 0x1001db0b
mov edx, dword [ebp - 0x40]
mov ecx, 0x1060a8b8
call fcn.1000f7c5
jmp 0x1001db27
or dword [ebp - 4], 0xffffffff
jmp 0x1001db31
jmp 0x1001dbbc
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x4c], eax
lea eax, [ebp + 0x1c]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x44]
movzx eax, byte [eax]
test eax, eax
je 0x1001dba5
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x14]
mov dword [eax], 0
jmp 0x1001db86
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax], 1
jge 0x1001dba3
mov eax, dword [ebp - 0x14]
push dword [eax]
mov ecx, dword [ebp - 0x58]
call fcn.10015a22
mov dword [eax], 0x6b903cfc
jmp 0x1001db7b
jmp 0x1001dbbc
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0x2c]
mov dword [ecx], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret