Function at 0x1002eaa6
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
cmp byte [ebp + 0x30], 0
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 0x14], edx
push edi
mov dword [ebp - 0x10], ebx
je 0x1002eca3
cmp byte [ebp + 0x2c], 0
je 0x1002eba0
push 0
pop esi
mov dword [ebp - 0xc], 0x7feb
cmp dword [ebp - 0xc], 0x81a7
push 1
pop edi
jle 0x1002eb53
push esi
push esi
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ebx, esi
mov eax, esi
mov dword [ebp + 0x30], esi
mov ecx, esi
mov dword [ebp - 8], esi
shl eax, cl
lea ecx, [ebp - 0x2c]
and eax, ebx
cdq
push edx
push eax
call fcn.10001a65
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x1002eb15
mov eax, dword [eax]
push eax
call fcn.10042c54
pop ecx
push esi
push edi
lea ecx, [ebp - 0x2c]
call fcn.100023f4
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 0x30]
inc ecx
mov dword [ebp - 8], ecx
cmp ecx, 0x4d47
jl 0x1002eafc
inc eax
mov dword [ebp + 0x30], eax
cmp eax, 0x32fd
jl 0x1002eaf7
inc ebx
cmp ebx, 0x5445
jl 0x1002eaf2
push esi
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
cmp dword [ebp - 0xc], 0x7f1c
jge 0x1002eb67
push str.hstgfhk_ssnklxcca_vgc_einc_qoba_ptcnxth_axjmw_gpnc
call fcn.10042c54
pop ecx
mov eax, dword [ebp + 0x38]
xor edx, edx
mov ebx, dword [ebp + 0x24]
mov eax, dword [eax]
mov eax, dword [ebx]
mov ecx, dword [ebx]
mov eax, dword [ebx]
cmp ecx, eax
mov eax, dword [ebp + 8]
setge dl
xor ecx, ecx
mov eax, dword [eax]
cmp edx, eax
setle cl
cmp ecx, 0xa4206971
jb 0x1002eb97
mov eax, dword [ebp - 0x14]
cmp dword [eax], esi
jne 0x1002eb99
mov edi, esi
mov dword [ebx], edi
jmp 0x1002ecdd
mov dword [ebp - 8], 0x30b9
cmp dword [ebp - 8], 0x3338
push 1
pop edi
jle 0x1002ec0f
push 0xe4f
xor esi, esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov ebx, esi
mov eax, esi
mov dword [ebp - 0xc], 0x498e
mov dword [ebp + 0x30], eax
cdq
lea ecx, [ebp - 0x44]
push edx
push eax
call fcn.10001a65
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x1002ebe5
mov eax, dword [eax]
push eax
call fcn.10042c54
pop ecx
push esi
push edi
lea ecx, [ebp - 0x44]
call fcn.100023f4
mov eax, dword [ebp + 0x30]
add eax, ebx
dec dword [ebp - 0xc]
mov dword [ebp + 0x30], eax
jne 0x1002ebd0
inc ebx
cmp ebx, 0x51e7
jl 0x1002ebc4
mov ebx, dword [ebp - 0x10]
cmp dword [ebp - 8], 0x2ee0
jge 0x1002ec23
push str.loqtkd_ligzbtwji_awrcfqs_ndfer_nrz_vbfnp_dkmerxyb_xecl_kxknbyac_dyew_zgscjp_ygfldqqd_rymmdjbpy_iczpcof
call fcn.10042c54
pop ecx
mov edx, dword [ebp + 0x14]
xor ecx, ecx
mov esi, dword [ebp + 0x1c]
mov edx, dword [edx]
mov eax, dword [esi]
cmp edx, eax
setg cl
imul eax, ecx, 0xdeb9
inc eax
je 0x1002ec3f
mov eax, dword [esi]
mov eax, dword [ebx]
xor ecx, ecx
cmp eax, edi
setl cl
imul eax, ecx, 0xb6ba
mov ecx, 0xb1c5adf8
cmp ecx, eax
mov eax, dword [ebp + 0x18]
sbb ecx, ecx
xor ebx, ebx
neg ecx
mov eax, dword [eax]
cmp ecx, eax
mov eax, dword [ebp - 0x10]
setge bl
xor ecx, ecx
mov eax, dword [eax]
cmp eax, 0xb7be
mov eax, dword [ebp + 0x14]
setg cl
xor edx, edx
cmp ecx, ebx
mov eax, dword [eax]
setle dl
imul eax, edx
cmp eax, edi
sbb eax, eax
neg eax
neg eax
mov dword [esi], eax
mov ecx, dword [esi]
mov eax, dword [ebp + 0xc]
add ecx, 0x68421aeb
mov dword [eax], ecx
mov ecx, dword [eax]
mov eax, dword [ebp + 0x34]
mov dword [eax], ecx
jmp 0x1002ecdd
cmp byte [ebp + 0x10], 0
je 0x1002ecba
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_FlashWindow]
jmp 0x1002ecdd
mov edx, dword [ebp + 0x28]
mov dword [edx], 0
cmp dword [edx], 4
jge 0x1002ecdd
mov esi, dword [ebp + 0x20]
mov ecx, dword [edx]
mov eax, dword [esi]
mov dword [eax + ecx*4], 0xf9af3922
inc dword [edx]
cmp dword [edx], 4
jl 0x1002eccb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret