Function at 0x1002182d
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10062341
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0xc0
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0x28]
test eax, eax
je 0x10021b6f
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x58], eax
lea eax, [ebp + 8]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x88]
movzx eax, byte [eax]
test eax, eax
je 0x10021afc
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], 0x27ff
mov dword [ebp - 0x70], 0x100088b0
cmp dword [ebp - 0x48], 0x296d
jle 0x1002197d
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
and dword [ebp - 0x3c], 0
jmp 0x100218be
mov eax, dword [ebp - 0x3c]
inc eax
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0x6055
jge 0x1002197d
and dword [ebp - 0x2c], 0
jmp 0x100218d8
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0x6b72
jge 0x10021978
and dword [ebp - 0x38], 0
jmp 0x100218f2
mov eax, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0x25c0
jge 0x10021973
and dword [ebp - 0x24], 0
jmp 0x10021908
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x2d92
jge 0x1002196e
mov eax, dword [ebp - 0x38]
cdq
idiv dword [ebp - 0x24]
mov eax, dword [ebp - 0x3c]
imul eax, dword [ebp - 0x2c]
mov ecx, edx
shl eax, cl
cdq
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], edx
push dword [ebp - 0x94]
push dword [ebp - 0x98]
lea ecx, [ebp - 0xd0]
call fcn.1000cefe
pop ecx
pop ecx
mov dword [ebp - 0x9c], eax
mov ecx, dword [ebp - 0x9c]
call fcn.10010976
push eax
call fcn.1004c59f
pop ecx
lea ecx, [ebp - 0xd0]
call fcn.1001096c
jmp 0x10021901
jmp 0x100218eb
jmp 0x100218d1
jmp 0x100218b7
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x44], 0xffb
mov dword [ebp - 0x68], 0x100088f8
cmp dword [ebp - 0x44], 0x11ea
jle 0x10021a3c
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
and dword [ebp - 0x20], 0
jmp 0x100219b5
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x7abf
jge 0x10021a3c
and dword [ebp - 0x28], 0
jmp 0x100219cb
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x1b67
jge 0x10021a37
and dword [ebp - 0x1c], 0
jmp 0x100219e1
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x6af2
jge 0x10021a35
and dword [ebp - 0x34], 0
jmp 0x100219f7
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0x26ba
jge 0x10021a33
mov ecx, dword [ebp - 0x1c]
add ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x28]
shl eax, cl
cdq
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xa0], edx
push dword [ebp - 0xa0]
push dword [ebp - 0xa4]
mov ecx, 0x1060aeb8
call fcn.10010996
jmp 0x100219f0
jmp 0x100219da
jmp 0x100219c4
jmp 0x100219ae
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0xac], eax
and dword [ebp - 4], 0
cmp dword [ebp - 0x44], 0xf9e
jge 0x10021a5f
mov edx, dword [ebp - 0x68]
mov ecx, 0x1060aeb8
call fcn.100132ba
jmp 0x10021a7b
or dword [ebp - 4], 0xffffffff
jmp 0x10021a85
mov eax, dword [ebp - 0x18]
mov dword [eax], 0
jmp 0x10021a9b
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x18]
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax], 1
jge 0x10021abb
mov eax, dword [ebp - 0x18]
push dword [eax]
mov ecx, dword [ebp - 0xac]
call fcn.10010c5c
mov dword [eax], 0x6d21b185
jmp 0x10021a90
mov dword [ebp - 4], 2
cmp dword [ebp - 0x48], 0x279d
jge 0x10021ad4
push dword [ebp - 0x70]
call fcn.1004c59f
pop ecx
jmp 0x10021af0
or dword [ebp - 4], 0xffffffff
jmp 0x10021afa
jmp 0x10021b6a
mov dword [ebp - 0x14], 0x9e57ad95
mov dword [ebp - 0x78], 0xfffffff9
mov dword [ebp - 0x30], 0
jmp 0x10021b1a
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 3
jge 0x10021b30
mov eax, dword [ebp - 0x30]
mov dword [ebp + eax*4 - 0xb8], 0x204e2db5
jmp 0x10021b13
mov dword [ebp - 0x14], 2
jmp 0x10021b40
mov eax, dword [ebp - 0x14]
dec eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jl 0x10021b5d
mov dword [ebp - 0x90], 0xbe4
cmp dword [ebp - 0x90], 0
je 0x10021b5b
jmp 0x10021b5d
jmp 0x10021b39
mov dword [ebp - 0x14], 0xfffffffa
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x78], eax
jmp 0x10021c14
lea eax, [ebp + 0x18]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x6c], eax
lea eax, [ebp + 0x2c]
mov dword [ebp - 0x64], eax
lea eax, [ebp + 0x14]
mov dword [ebp - 0x5c], eax
lea eax, [ebp + 0x24]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0xa8]
movzx eax, byte [eax]
test eax, eax
je 0x10021c0c
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x74]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x7c]
mov ecx, dword [ecx]
mov edx, dword [ebp - 0x84]
mov edx, dword [edx]
shl edx, 4
lea ecx, [edx + ecx*8 + 0x100695c4]
mov edx, dword [ebp - 0x40]
mov eax, dword [ecx + eax*4]
mov dword [edx], eax
mov eax, dword [ebp - 0x8c]
mov eax, dword [eax + 0x24]
and eax, 0x4000000
je 0x10021c0a
mov eax, dword [ebp - 0x40]
mov eax, dword [eax]
or eax, 0x200
mov ecx, dword [ebp - 0x40]
mov dword [ecx], eax
jmp 0x10021c14
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret