Function at 0x1001bd4d
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10088ced
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
push ebx
push esi
push edi
mov edi, edx
mov dword [esp + 0x58], ecx
push 3
lea ecx, [esp + 0x3c]
mov dword [esp + 0x20], edi
call fcn.10019cd8
xor ebx, ebx
lea ecx, [esp + 0xbc]
mov dword [esp + 0x11c], ebx
xor eax, eax
mov dword [esp + 0x18], 0xfffffffb
inc eax
mov dword [esp + 0x18], 0xe1e87df2
mov dword [esp + 0x18], eax
mov dword [esp + 0x18], ebx
push eax
call fcn.10019cd8
push 3
pop esi
push esi
lea ecx, [esp + 0xcc]
mov byte [esp + 0x120], 1
call fcn.10019cd8
mov dword [esp + 0x10], 0x57f39cee
xor edx, edx
mov dword [esp + 0x18], 0x4af7
inc edx
mov dword [esp + 0xc], ebx
jmp 0x1001bdf8
mov eax, dword [esp + 0xc]
mov dword [esp + eax*4 + 0x34], 0xfffffff6
inc dword [esp + 0xc]
cmp dword [esp + 0xc], edx
jl 0x1001bde8
mov dword [esp + 0xc], ebx
jmp 0x1001be16
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0xbc]
mov dword [eax + ecx*4], edx
inc dword [esp + 0xc]
cmp dword [esp + 0xc], edx
jl 0x1001be04
mov dword [esp + 0xc], ebx
jmp 0x1001be35
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0xc8]
or dword [eax + ecx*4], 0xffffffff
inc dword [esp + 0xc]
cmp dword [esp + 0xc], esi
jl 0x1001be22
mov byte [esp + 0x17], bl
cmp byte [esp + 0x17], 0
je 0x1001be4c
call dword [sym.imp.USER32.dll_DestroyCaret]
dec dword [esp + 0x10]
lea ecx, [esp + 0xc8]
call fcn.1001a5b6
lea ecx, [esp + 0xbc]
mov byte [esp + 0x11c], bl
call fcn.1001a5b6
push 2
lea ecx, [esp + 0x9c]
call fcn.10019cd8
mov byte [esp + 0x11c], 2
lea ecx, [esp + 0xd4]
xor eax, eax
mov dword [esp + 0x18], 0x76b0f738
inc eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x18], eax
push esi
call fcn.10019cd8
mov dword [esp + 0x18], 0xfffffffd
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], ebx
jmp 0x1001bed1
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0xd4]
mov dword [eax + ecx*4], 0xfe04822b
inc dword [esp + 0x10]
cmp dword [esp + 0x10], esi
jl 0x1001bebb
mov byte [esp + 0x17], bl
cmp byte [esp + 0x17], 0
je 0x1001bef7
push ebx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_SetBkColor]
inc dword [esp + 0xc]
lea ecx, [esp + 0xd4]
call fcn.1001a5b6
mov dword [esp + 0xc], 0xa76aabec
lea ecx, [esp + 0xb0]
mov dword [esp + 0x10], 8
push 2
call fcn.10019cd8
mov dword [esp + 0xc], ebx
jmp 0x1001bf3b
mov eax, dword [esp + 0xc]
mov dword [esp + eax*4 + 0x44], 0x3dd3
inc dword [esp + 0xc]
cmp dword [esp + 0xc], esi
jl 0x1001bf2b
push 2
mov dword [esp + 0x10], ebx
pop edx
jmp 0x1001bf60
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0xb0]
mov dword [eax + ecx*4], 0xb3659ea4
inc dword [esp + 0xc]
cmp dword [esp + 0xc], edx
jl 0x1001bf4a
mov dword [esp + 0xc], edx
cmp dword [esp + 0xc], ebx
jl 0x1001c018
mov edi, dword [esp + 0xb0]
xor edx, edx
inc edx
mov dword [esp + 0x10], 0xca70051
xor ecx, ecx
mov dword [esp + 0x10], 0xa67d9261
mov eax, dword [esp + 0xc]
mov eax, dword [esp + eax*4 + 0x44]
mov eax, dword [esp + 0xc]
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0xc]
mov esi, dword [esp + eax*4 + 0x44]
mov eax, dword [esp + 0x10]
cmp eax, 0xa0246c38
mov eax, dword [esp + 0xc]
setne cl
sub esi, ecx
sub esi, dword [esp + eax*4 + 0x44]
mov eax, dword [esp + 0xc]
neg esi
sbb esi, esi
xor ecx, ecx
inc esi
mov edx, dword [esp + eax*4 + 0x44]
mov eax, dword [esp + 0xc]
mov eax, dword [esp + eax*4 + 0x44]
cmp edx, eax
sete cl
xor edx, edx
imul esi, ecx
inc edx
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x10]
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x10]
sub ecx, eax
neg ecx
sbb ecx, ecx
xor eax, eax
inc ecx
neg ecx
cmp ecx, edx
setge al
mov dword [edi + 4], eax
dec dword [esp + 0xc]
jns 0x1001bf7e
mov edi, dword [esp + 0x1c]
push 3
pop esi
lea ecx, [esp + 0xb0]
call fcn.1001a5b6
push ebx
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.1002087b
add esp, 0xc
mov dword [esp + 0xc], 0x42c70bb7
mov dword [esp + 0x10], 0xf38d927f
lea ecx, [esp + 0x80]
push 2
call fcn.10019cd8
mov dword [esp + 0x20], 0x5d9c
mov dword [esp + 0x18], 0xfffffff7
mov dword [esp + 0x10], 0xffff
mov dword [esp + 0xc], ebx
jmp 0x1001c086
mov eax, dword [esp + 0xc]
mov dword [esp + eax*4 + 0x8c], 0xffffffff
inc dword [esp + 0xc]
cmp dword [esp + 0xc], esi
jl 0x1001c073
push 2
mov dword [esp + 0x10], ebx
pop edx
jmp 0x1001c0ab
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x80]
mov dword [eax + ecx*4], 0x6d39c7c6
inc dword [esp + 0xc]
cmp dword [esp + 0xc], edx
jl 0x1001c095
mov dword [esp + 0xc], edx
cmp dword [esp + 0xc], ebx
jl 0x1001c14c
mov esi, dword [esp + 0x80]
mov dword [esp + 0x1c], 0x4dde9ab
xor edx, edx
mov eax, dword [esp + 0xc]
mov eax, dword [esp + eax*4 + 0x8c]
cmp eax, 1
mov eax, dword [esp + 0xc]
setl dl
xor ecx, ecx
cmp edx, eax
setg cl
xor edx, edx
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + eax*4 + 0x8c]
mov eax, dword [esp + 0x10]
cmp ecx, eax
mov eax, dword [esp + 0xc]
sete dl
xor ecx, ecx
cmp edx, eax
mov dword [esi + 4], edx
mov eax, dword [esp + 0x90]
setle cl
xor edx, edx
dec ecx
cmp ecx, eax
mov eax, dword [esp + 0xc]
setge dl
mov eax, dword [esp + eax*4 + 0x8c]
add eax, edx
je 0x1001c13c
cmp dword [esi + 4], ebx
je 0x1001c13c
xor eax, eax
inc eax
jmp 0x1001c13e
mov eax, ebx
mov dword [esp + 0x1c], eax
dec dword [esp + 0xc]
jns 0x1001c0c6
mov esi, dword [esp + 0x80]
xor eax, eax
inc eax
sub eax, dword [esi + 4]
je 0x1001c15f
mov eax, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0xc]
sub eax, 0xb782
sub edx, eax
mov eax, dword [esp + 0xc]
neg edx
sbb edx, edx
inc edx
sub edx, dword [esi + 4]
neg edx
sbb edx, edx
add eax, dword [esi + 4]
inc edx
xor ecx, ecx
cmp eax, edx
setg cl
xor edx, edx
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0xc]
cmp ecx, eax
lea ecx, [esp + 0x80]
setne dl
imul edx, dword [esp + 0xc]
mov dword [esi + 4], edx
call fcn.1001a5b6
mov dword [esp + 0x24], ebx
jmp 0x1001c1d8
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x98]
mov dword [eax + ecx*4], ebx
inc dword [esp + 0x24]
cmp dword [esp + 0x24], 2
jl 0x1001c1c6
mov eax, dword [esp + 0x38]
mov dword [eax], 0x1a
jmp 0x1001c5bf
push dword [esp + 0x34]
movdqa xmm0, xmmword [0x1000a920]
lea eax, [esp + 0xf4]
push eax
lea eax, [esp + 0xe8]
mov dword [esp + 0x5c], 0x9ea
push eax
mov dword [esp + 0x5c], 0x1738ab65
lea ecx, [esp + 0x34]
mov dword [esp + 0x18], 0xf4a8
push ebx
movdqu xmmword [esp + 0xf0], xmm0
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
call fcn.1001b412
push 3
lea ecx, [esp + 0x6c]
mov byte [esp + 0x120], 3
call fcn.10019cd8
mov byte [esp + 0x11c], 4
mov dword [esp + 0x1c], 0xc114ff6a
mov dword [esp + 0x10], ebx
jmp 0x1001c27d
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x68]
mov dword [eax + ecx*4], 1
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 3
jl 0x1001c26a
imul eax, dword [esp + 0xc], 0xfffa
test eax, eax
je 0x1001c324
mov eax, dword [esp + 0x28]
xor edx, edx
mov dword [esp + 0x10], 0xe96b
mov dword [esp + 0x18], 0xfffffffa
mov dword [eax], 0xef72d4ea
mov eax, dword [esp + 0x10]
mov eax, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x28]
cmp ecx, dword [eax]
mov eax, dword [esp + 0x10]
setge dl
xor ecx, ecx
cmp edx, eax
setne cl
mov dword [esp + 0x18], ecx
xor ecx, ecx
mov eax, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
cmp eax, dword [esi + 0xc]
mov eax, dword [esp + 0x10]
setg cl
xor edx, edx
cmp ecx, 0x1dda8db8
setle dl
xor ecx, ecx
cmp edx, eax
mov eax, dword [esp + 0xc]
setne cl
xor edx, edx
cmp ecx, dword [esi + 0xc]
setg dl
xor ecx, ecx
cmp edx, eax
mov eax, dword [esp + 0x28]
setge cl
mov dword [eax], ecx
jmp 0x1001c3ac
mov dword [esp + 0xc], 8
lea ecx, [esp + 0xa4]
push 2
call fcn.10019cd8
mov dword [esp + 0x20], 0x140a9711
mov dword [esp + 0x10], ebx
jmp 0x1001c35e
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0xa4]
mov dword [eax + ecx*4], 0xf2a6add3
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 2
jl 0x1001c348
mov eax, dword [esp + 0xc]
mov eax, dword [esp + 0xa4]
mov eax, dword [eax]
mov dword [esp + 0x20], eax
imul ecx, dword [esp + 0x20], 0xa8da
mov edx, dword [esp + 0x68]
mov eax, dword [edx]
sub eax, ecx
je 0x1001c390
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x28]
xor ecx, ecx
cmp dword [edx], ebx
sete cl
add ecx, dword [eax + 4]
mov dword [eax], ecx
lea ecx, [esp + 0xa4]
call fcn.1001a5b6
mov dword [esp + 0xc], 0x1a
jmp 0x1001c3d8
cmp dword [esp + 0x1c], ebx
jne 0x1001c3df
mov byte [esp + 0x17], bl
cmp byte [esp + 0x17], 0
je 0x1001c3d4
push 0x544
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec dword [esp + 0xc]
cmp dword [esp + 0xc], 0xb
jge 0x1001c3b6
lea ecx, [esp + 0x68]
call fcn.1001a5b6
lea ecx, [esp + 0x28]
mov byte [esp + 0x11c], 2
call fcn.1001a5b6
lea eax, [esp + 0x54]
push eax
push ebx
push 0x762e
lea eax, [esp + 0x5c]
push eax
push 0x1b85
call fcn.10020b04
movdqa xmm0, xmmword [0x1000a930]
lea eax, [esp + 0x114]
add esp, 0x14
mov dword [esp + 0xc], 7
mov dword [esp + 0x18], 5
lea ecx, [esp + 0x74]
mov dword [esp + 0x18], 3
mov dword [esp + 0x18], 0xfffffff7
push dword [esp + 0x34]
mov dword [esp + 0x1c], 0x72159124
push eax
lea eax, [esp + 0xf8]
mov dword [esp + 0x7c], ebx
push eax
push ebx
movdqu xmmword [esp + 0x100], xmm0
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
call fcn.1001b412
mov dword [esp + 0x1c], 0x3cc25429
mov dword [esp + 0x1c], 0x493876a4
mov dword [esp + 0x1c], 1
mov dword [esp + 0x10], 0x8a99
mov dword [esp + 0xc], 0x2b8f
mov dword [esp + 0x10], ebx
jmp 0x1001c4bc
mov eax, dword [esp + 0x10]
mov dword [esp + eax*4 + 0x100], ebx
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 4
jl 0x1001c4ad
mov byte [esp + 0x17], bl
cmp byte [esp + 0x17], 0
je 0x1001c4d4
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
inc dword [esp + 0xc]
mov eax, dword [esp + 0x108]
cmp dword [esp + 0xc], eax
jl 0x1001c54c
mov dword [esp + 0x1c], 0x3491
push 3
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x14], ebx
pop ecx
jmp 0x1001c51f
mov dword [esp + 0xc], ebx
jmp 0x1001c515
mov eax, dword [esp + 0x10]
cmp dword [esp + eax*4 + 0x100], ebx
jne 0x1001c51b
inc dword [esp + 0xc]
cmp dword [esp + 0xc], ecx
jle 0x1001c504
inc dword [esp + 0x10]
cmp dword [esp + 0x10], ecx
jle 0x1001c4fe
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], eax
cmp dword [esp + 0x20], 0xffffffff
sbb edx, edx
xor ecx, ecx
neg edx
imul edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
cmp eax, edx
setle cl
mov dword [esp + 0x18], ecx
jmp 0x1001c5a3
mov byte [esp + 0x17], bl
cmp byte [esp + 0x17], 0
je 0x1001c5a3
push 0x12d6
push 0x1482
push 0x148a
push 0x2273
push 0x8d0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
push 0x82a
push 0x17a0
push 0x60
push 0x1a95
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_StretchBlt]
lea ecx, [esp + 0x74]
call fcn.1001a5b6
push 0x7741
push ebx
call fcn.1001ef27
mov eax, dword [esp + 0x40]
pop ecx
pop ecx
dec dword [eax]
mov eax, dword [esp + 0x38]
cmp dword [eax], 0xfffffff9
je 0x1001c1ee
push 1
lea ecx, [esp + 0x60]
call fcn.10019cd8
mov dword [esp + 0xc], 0x81c2900
mov dword [esp + 0x18], 2
mov dword [esp + 0x10], ebx
jmp 0x1001c600
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x5c]
mov dword [eax + ecx*4], 0x1713b910
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 1
jl 0x1001c5ed
mov dword [esp + 0xc], ebx
jmp 0x1001c637
mov dword [esp + 0x1c], 1
mov eax, dword [esp + 0xc]
mov esi, dword [esp + 0xc]
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x5c]
mov eax, dword [eax + ecx*4]
mov dword [edx + esi*4], eax
add dword [esp + 0x1c], eax
inc dword [esp + 0xc]
cmp dword [esp + 0xc], ebx
jle 0x1001c60d
lea ecx, [esp + 0x5c]
call fcn.1001a5b6
mov eax, dword [esp + 0x98]
lea ecx, [esp + 0x98]
dec dword [eax]
call fcn.1001a5b6
or dword [esp + 0x11c], 0xffffffff
lea ecx, [esp + 0x38]
call fcn.1001a5b6
mov eax, edi
mov ecx, 0x3e8
cdq
idiv ecx
mov ecx, dword [esp + 0x58]
mov edi, edx
mov esi, eax
call fcn.1001bcdb
mov ecx, dword [esp + 0x114]
add eax, esi
add eax, edi
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret