Function at 0x10022555
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005b507
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0xb8
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0x28]
test eax, eax
je 0x100228a0
lea eax, [ebp + 0x18]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x60]
movzx eax, byte [eax]
test eax, eax
je 0x10022610
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x14]
mov dword [eax], 0
jmp 0x100225f1
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], 3
jge 0x1002260b
mov eax, dword [ebp - 0x14]
push dword [eax]
mov ecx, dword [ebp - 0x50]
call fcn.1000151a
and dword [eax], 0
jmp 0x100225e6
jmp 0x1002289e
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x28]
mov dword [eax], 0
jmp 0x10022665
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0x28]
mov dword [ecx], eax
mov eax, dword [ebp - 0x28]
cmp dword [eax], 0xfffffffe
jne 0x1002289e
mov dword [ebp - 0x30], 0x4652
mov dword [ebp - 0x3c], str.jgzowdsh_ysfxs_ufudht_kdevm_nikodnsq_fadsuj_zaealok_ixzglz_yelcb_uxtcxsyxo
cmp dword [ebp - 0x30], 0x46ed
jle 0x100226e4
and dword [ebp - 0x2c], 0
jmp 0x10022695
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0x5198
jge 0x100226e4
and dword [ebp - 0x1c], 0
jmp 0x100226ab
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x5991
jge 0x100226e2
mov eax, dword [ebp - 0x2c]
cdq
idiv dword [ebp - 0x1c]
mov eax, edx
cdq
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x9c], edx
push dword [ebp - 0x9c]
push dword [ebp - 0xa0]
mov ecx, 0x10074fb8
call fcn.1000333f
jmp 0x100226a4
jmp 0x1002268e
push 1
lea ecx, [ebp - 0xac]
call fcn.100014a1
and dword [ebp - 4], 0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x30], 0x4545
jge 0x1002270f
mov edx, dword [ebp - 0x3c]
mov ecx, 0x10074fb8
call fcn.1000494d
jmp 0x1002272b
and dword [ebp - 4], 0
jmp 0x10022735
mov dword [ebp - 0x34], 0x1328
mov dword [ebp - 0x4c], str.tfwbno_pcczxx_kbet_itwtsthri_vttc_bvbq_iwn
cmp dword [ebp - 0x34], 0x160a
jle 0x100227dc
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_IsIconic]
and dword [ebp - 0x20], 0
jmp 0x1002276a
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x2ade
jge 0x100227d6
and dword [ebp - 0x24], 0
jmp 0x10022780
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x1e28
jge 0x100227d4
mov eax, dword [ebp - 0x20]
xor eax, dword [ebp - 0x24]
cdq
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], edx
push dword [ebp - 0x8c]
push dword [ebp - 0x90]
lea ecx, [ebp - 0xc8]
call fcn.10001365
pop ecx
pop ecx
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
call fcn.10001421
push eax
call fcn.100439ae
pop ecx
lea ecx, [ebp - 0xc8]
call fcn.10001417
jmp 0x10022779
jmp 0x10022763
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov dword [ebp - 0x6c], 1
mov byte [ebp - 4], 3
cmp dword [ebp - 0x34], 0x110f
jge 0x100227f9
push dword [ebp - 0x4c]
call fcn.100439ae
pop ecx
jmp 0x10022815
and dword [ebp - 4], 0
jmp 0x1002281f
lea eax, [ebp - 0xac]
push eax
push 0x711e
push 0x5902
lea eax, [ebp - 0xb0]
push eax
push 0
call fcn.1002357a
add esp, 0x14
mov eax, dword [ebp - 0x18]
mov dword [eax], 0
jmp 0x10022857
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], 0
jg 0x1002288a
mov dword [ebp - 0x5c], 0xf1bcd962
push dword [ebp - 0x54]
push 0
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x64]
lea eax, [ebp - 0x6c]
push eax
call fcn.10022c71
add esp, 0x1c
jmp 0x1002284c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.100014fe
jmp 0x1002265a
jmp 0x100228c6
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x74], eax
push dword [ebp - 0x74]
push 0x3bf
push 0x4488
push dword [ebp - 0x7c]
push 0
call fcn.1002357a
add esp, 0x14
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret