Function at 0x10015dc6
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10069d64
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf4
movzx eax, byte [ebp + 0x38]
test eax, eax
je 0x10016102
mov dword [ebp - 0xb0], 0x2057
cmp dword [ebp - 0xb0], 0x632
jge 0x10015f73
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x10007b9c
call fcn.1005240b
add esp, 0x10
mov eax, dword [ebp - 0x18]
inc eax
push eax
lea ecx, [ebp - 0xdc]
call fcn.10027f1d
and dword [ebp - 4], 0
mov dword [ebp - 0x14], 1
jmp 0x10015e4a
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x18]
jg 0x10015ea3
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x98]
jne 0x10015e5f
jmp 0x10015e43
lea eax, [ebp - 0x28]
push eax
push 0x100076a4
call fcn.1005240b
pop ecx
pop ecx
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x14]
lea ecx, [ebp - 0xdc]
call fcn.10027f89
mov ecx, eax
call fcn.1000e5f5
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x28]
lea ecx, [ebp - 0xdc]
call fcn.10027f89
mov ecx, eax
call fcn.1000e5f5
jmp 0x10015e43
and dword [ebp - 0x50], 0
lea eax, [ebp - 0x50]
push eax
mov eax, dword [ebp - 0x18]
inc eax
push eax
lea ecx, [ebp - 0xe8]
call fcn.10027e21
mov byte [ebp - 4], 1
mov byte [ebp - 0xd], 0
lea eax, [ebp - 0xd]
push eax
mov eax, dword [ebp - 0x18]
inc eax
push eax
lea ecx, [ebp - 0x100]
call fcn.10027e43
mov byte [ebp - 4], 2
lea eax, [ebp - 0x100]
push eax
lea eax, [ebp - 0xe8]
push eax
lea eax, [ebp - 0xdc]
push eax
push dword [ebp - 0x3c]
call fcn.10015cff
add esp, 0x10
mov dword [ebp - 0x1c], 1
jmp 0x10015f0b
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x18]
jg 0x10015f3b
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x3c]
jne 0x10015f1d
jmp 0x10015f04
push dword [ebp - 0x1c]
lea ecx, [ebp - 0xe8]
call fcn.1000e5c2
push dword [eax]
push 0x10007bac
call fcn.10052a2d
pop ecx
pop ecx
jmp 0x10015f04
push 0x10007658
call fcn.10052b96
pop ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x100]
call fcn.10027ea4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xe8]
call fcn.1000e5a6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xdc]
call fcn.10027f84
mov eax, dword [ebp + 0x3c]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x58], eax
lea eax, [ebp + 8]
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0xc0]
movzx eax, byte [eax]
test eax, eax
je 0x10015fc7
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x100160fd
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x34]
mov eax, dword [eax]
mov dword [ebp - 0xec], eax
mov eax, dword [ebp - 0x34]
mov dword [eax], 0x68729207
mov eax, dword [ebp - 0x88]
cmp dword [eax], 0x68729207
jne 0x10016058
mov dword [ebp - 0x30], 1
jmp 0x1001605c
and dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x24]
mov ecx, dword [ecx]
cmp dword [eax], ecx
jle 0x10016071
mov dword [ebp - 0x2c], 1
jmp 0x10016075
and dword [ebp - 0x2c], 0
push 0
mov ecx, dword [ebp - 0x20]
call fcn.1000e5c2
mov eax, dword [eax]
imul eax, dword [ebp - 0x2c]
neg eax
cmp dword [ebp - 0x30], eax
jle 0x10016095
mov dword [ebp - 0x38], 1
jmp 0x10016099
and dword [ebp - 0x38], 0
push 0
mov ecx, dword [ebp - 0x20]
call fcn.1000e5c2
mov ecx, dword [ebp - 0x38]
imul ecx, dword [eax]
mov dword [ebp - 0x40], ecx
push 0
mov ecx, dword [ebp - 0x20]
call fcn.1000e5c2
mov ecx, dword [ebp - 0x40]
mov dword [eax], ecx
mov eax, dword [ebp - 0x40]
sub eax, 0x731e7bf5
cmp eax, 0x5db5
jne 0x100160d6
mov dword [ebp - 0xb8], 1
jmp 0x100160dd
and dword [ebp - 0xb8], 0
mov eax, dword [ebp - 0x90]
mov eax, dword [eax]
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
add eax, 0x48dea89a
mov ecx, dword [ebp - 0xc4]
mov dword [ecx], eax
jmp 0x100161ea
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x7c], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x48]
movzx eax, byte [eax]
test eax, eax
je 0x10016162
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
movzx eax, byte [eax]
test eax, eax
je 0x1001615d
push 0x100
push 0x24c1
push 0
push 0x14fd
call dword [sym.imp.USER32.dll_CreateCaret]
jmp 0x100161ea
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x9c], 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 - 0xac], eax
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0xa4], eax
push 0x40e0
push dword [ebp - 0xa4]
mov eax, dword [ebp - 0xac]
push dword [eax]
mov eax, dword [ebp - 0xb4]
push dword [eax]
push 0
mov eax, dword [ebp - 0xbc]
push dword [eax]
push 0
push 0x302c
call fcn.10011537
add esp, 0x20
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret