Function at 0x1001f789
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10064a0c
call fcn.10063950
sub esp, 0x78
cmp byte [ebp + 0x18], 0
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x4c], edx
je 0x1001f7c5
mov edx, dword [ebp + 0x14]
xor ebx, ebx
push 3
pop esi
mov dword [edx], ebx
jmp 0x1001f7bc
mov ecx, dword [edx]
mov eax, dword [edi]
mov dword [eax + ecx*4], ebx
inc dword [edx]
cmp dword [edx], esi
jl 0x1001f7b3
jmp 0x1001fa5a
push 2
pop ebx
mov dword [ebp - 0x1c], 0xffffffff
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x20], 0xcf86
mov dword [ebp - 0x24], 0x21c9b6cd
push ebx
call fcn.10004e2c
lea eax, [ebp - 0x5c]
mov dword [ebp - 4], ebx
push eax
lea edx, [ebp - 0x50]
call fcn.1001e680
mov eax, dword [ebp - 0x1c]
pop ecx
add eax, dword [ebp - 0x1c]
je 0x1001f80d
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
xor ecx, ecx
mov eax, dword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
cmp eax, 1
setge cl
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x5c]
neg ecx
sbb ecx, ecx
neg ecx
cmp ecx, dword [eax + 4]
jle 0x1001f885
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0xffff
push eax
push 0x4be5
push 1
mov dword [ebp - 0x38], 0xea38
xor dl, dl
push 0x1824
xor cl, cl
mov dword [ebp - 0x34], 5
call fcn.10021be5
pop ecx
lea eax, [ebp - 0x2c]
push eax
push ecx
lea eax, [ebp - 0x34]
push eax
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x20]
call fcn.10020e4d
add esp, 0x18
xor ebx, ebx
jmp 0x1001f8da
xor ebx, ebx
mov dword [ebp - 0x44], 1
push ebx
push 0x3835
push 0x39e5
push 0x3c74
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x40], 0x8c547fce
push eax
push 0xf3b
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0x83ea6de4
push eax
push 0x2abe
lea eax, [ebp - 0x1c]
push 0x7bef
push eax
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x44]
call fcn.10020378
add esp, 0x28
call fcn.1001e59c
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x5c], 0
je 0x1001f8f6
push dword [ebp - 0x5c]
call fcn.1004d139
pop ecx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov eax, dword [ebp + 0x10]
push 3
pop esi
movzx eax, word [eax]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ebx
jmp 0x1001f915
mov eax, dword [ebp - 0x24]
mov dword [ebp + eax*4 - 0x68], 0x93b4e1a3
inc dword [ebp - 0x24]
cmp dword [ebp - 0x24], esi
jl 0x1001f907
push ebx
mov byte [ebp - 0x15], bl
lea ecx, [ebp - 0x15]
push 0x7ef8
mov edx, 0x5a5f
call fcn.1001fc80
lea eax, [ebp - 0x16]
mov byte [ebp - 0x16], bl
push eax
push ebx
mov edx, 0x28e3
mov ecx, 0x7a6e
call fcn.1002067d
mov dword [ebp - 0x30], 0x7976
add esp, 0x10
cmp dword [ebp - 0x30], 0x7cc8
jle 0x1001f998
mov esi, ebx
mov edi, ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x24], 0x5d4c
mov eax, ebx
mov ecx, 0x10080db8
and eax, esi
cdq
push edx
push eax
call fcn.10004c02
add ebx, edi
dec dword [ebp - 0x24]
jne 0x1001f968
inc edi
push 0
pop ebx
cmp edi, 0x1faa
jl 0x1001f95e
inc esi
cmp esi, 0x435
jl 0x1001f95c
push 3
pop esi
mov edi, ebx
mov cl, byte [ebp + edi - 0x28]
mov dl, 0xcb
call fcn.100286c1
mov byte [ebp + edi - 0x28], al
inc edi
cmp edi, 2
jb 0x1001f99a
mov dword [ebp - 4], esi
cmp dword [ebp - 0x30], 0x768d
jge 0x1001f9ca
mov edx, str.kbdmwwcxr_lglneva_mcvh_dwijv_kga_cqekpbpfc_kktcd_chas
mov ecx, 0x10080db8
call fcn.10007110
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x24], 0x47c3
cmp dword [ebp - 0x24], 0x4a03
jle 0x1001fa3c
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov edi, ebx
mov esi, ebx
mov eax, ebx
mov dword [ebp - 0x2c], 0x5aba
mov dword [ebp - 0x30], eax
or eax, edi
lea ecx, [ebp - 0x80]
cdq
push edx
push eax
call fcn.10001a95
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x1001fa0b
mov eax, dword [eax]
push eax
call fcn.1004cf6c
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x80]
call fcn.100052fb
mov eax, dword [ebp - 0x30]
add eax, esi
dec dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
jne 0x1001f9f4
inc esi
cmp esi, 0x538c
jl 0x1001f9e8
inc edi
cmp edi, 0x3ac0
jl 0x1001f9e6
cmp dword [ebp - 0x24], 0x4729
mov ecx, dword [ebp - 0x4c]
mov ax, word [ebp - 0x28]
mov word [ecx], ax
jge 0x1001fa5a
push str.mawqgiby_hytqex_dtdkub_ixcczz_toao_yzms_dswlwcz_xzkzmrnqc_pynkkekd_fsyhjpmps_thaxkycj
call fcn.1004cf6c
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret