Function at 0x491730
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d8930
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0xbc
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x4918b9
mov ecx, dword [ebp + 0x30]
mov dword [ebp - 0x74], ecx
lea edx, [ebp + 0x1c]
mov dword [ebp - 0x9c], edx
mov eax, dword [ebp - 0x9c]
movzx ecx, byte [eax]
test ecx, ecx
je 0x491897
mov dword [ebp - 0x40], 0x50a
mov dword [ebp - 0x68], str.gsojfvkz_zwftmz_ftym_iosxrx_iqlzbg_fuvkt_ixesyh_vizki
cmp dword [ebp - 0x40], 0x6fd
jle 0x491836
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_CopySid]
mov dword [ebp - 0x1c], 0
jmp 0x4917ba
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
cmp dword [ebp - 0x1c], 0x227c
jge 0x491830
mov dword [ebp - 0x24], 0
jmp 0x4917d5
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x2deb
jge 0x49182e
mov dword [ebp - 0x20], 0
jmp 0x4917f0
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], 0xb64
jge 0x49182c
mov edx, dword [ebp - 0x24]
imul edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
sub eax, edx
cdq
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0xc8], edx
mov eax, dword [ebp - 0xc8]
push eax
mov ecx, dword [ebp - 0xcc]
push ecx
mov ecx, 0xa9b5f0
call fcn.00427f00
jmp 0x4917e7
jmp 0x4917cc
jmp 0x4917b1
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov byte [ebp - 0x11], 0
movzx edx, byte [ebp - 0x11]
test edx, edx
je 0x491848
call dword [sym.imp.GDI32.dll_GdiFlush]
mov dword [ebp - 4], 0
cmp dword [ebp - 0x40], 0x254
jge 0x491869
mov eax, dword [ebp - 0x68]
push eax
push 0xa9b5f0
call fcn.00408780
add esp, 8
jmp 0x491885
mov dword [ebp - 4], 0xffffffff
jmp 0x491895
jmp 0x4918b4
mov ecx, dword [ebp - 0x74]
mov dword [ebp - 0xb4], ecx
mov edx, dword [ebp - 0xb4]
mov dword [ebp - 0x7c], edx
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax]
mov dword [ecx], 0
jmp 0x491b20
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x80], edx
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x84], eax
mov ecx, dword [ebp + 0x28]
mov dword [ebp - 0x78], ecx
mov edx, dword [ebp + 0x20]
mov dword [ebp - 0x6c], edx
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0xbc], eax
mov ecx, dword [ebp + 0x2c]
mov dword [ebp - 0x70], ecx
lea edx, [ebp + 0x34]
mov dword [ebp - 0xa4], edx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xac], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x94], ecx
mov edx, dword [ebp - 0xa4]
movzx eax, byte [edx]
test eax, eax
je 0x49193d
mov ecx, dword [ebp - 0x84]
mov dword [ebp - 0xc4], ecx
mov edx, dword [ebp - 0xc4]
mov dword [ebp - 0x8c], edx
mov eax, dword [ebp - 0x8c]
movzx ecx, byte [eax]
test ecx, ecx
je 0x491938
push 0
call dword [sym.imp.USER32.dll_SetKeyboardState]
jmp 0x491b20
mov edx, dword [ebp - 0xac]
mov dword [ebp - 0x88], edx
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0xbc]
mov dword [ebp - 0x98], ecx
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0xa0], edx
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0xa8], eax
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 0xb0], ecx
mov edx, dword [ebp - 0x80]
mov dword [ebp - 0xb8], edx
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x90]
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 0x98]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0xa8]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0xb0]
mov dword [ebp - 0xc0], edx
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx]
sub edx, 1
mov eax, dword [ebp - 0x28]
mov dword [eax], edx
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x18]
add edx, dword [eax]
je 0x491a35
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x18]
add edx, dword [eax]
jne 0x4919fe
mov ecx, 0x15bb
test ecx, ecx
je 0x4919fe
mov dword [ebp - 0x38], 0
jmp 0x491a05
mov dword [ebp - 0x38], 1
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx]
cmp dword [ebp - 0x38], eax
jle 0x491a18
mov dword [ebp - 0x60], 1
jmp 0x491a1f
mov dword [ebp - 0x60], 0
mov ecx, dword [ebp - 0xc0]
mov edx, dword [ecx]
cmp dword [ebp - 0x60], edx
jge 0x491a35
mov dword [ebp - 0x30], 1
jmp 0x491a3c
mov dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x30]
mov dword [eax], ecx
cmp dword [ebp - 0x30], 6
jbe 0x491a53
mov dword [ebp - 0x48], 1
jmp 0x491a5a
mov dword [ebp - 0x48], 0
mov edx, dword [ebp - 0x64]
mov eax, dword [edx]
cmp eax, dword [ebp - 0x48]
jl 0x491a6d
mov dword [ebp - 0x58], 1
jmp 0x491a74
mov dword [ebp - 0x58], 0
cmp dword [ebp - 0x58], 0
jne 0x491a94
mov ecx, 0x8ebdb88d
test ecx, ecx
jne 0x491a94
mov edx, dword [ebp - 0x34]
cmp dword [edx], 0
jne 0x491a94
mov dword [ebp - 0x50], 0
jmp 0x491a9b
mov dword [ebp - 0x50], 1
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
add ecx, dword [ebp - 0x50]
neg ecx
mov edx, dword [ebp - 0x2c]
add ecx, dword [edx]
jne 0x491abe
mov eax, 9
test eax, eax
jne 0x491abe
mov dword [ebp - 0x3c], 0
jmp 0x491ac5
mov dword [ebp - 0x3c], 1
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx]
cmp dword [ebp - 0x3c], edx
jne 0x491ad8
mov dword [ebp - 0x44], 1
jmp 0x491adf
mov dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
cmp dword [ebp - 0x44], ecx
jg 0x491af2
mov dword [ebp - 0x54], 1
jmp 0x491af9
mov dword [ebp - 0x54], 0
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx]
cmp eax, dword [ebp - 0x54]
jne 0x491b0c
mov dword [ebp - 0x5c], 1
jmp 0x491b13
mov dword [ebp - 0x5c], 0
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx]
add edx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x64]
mov dword [eax], edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret