Function at 0x1001e4c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd98
push 0x104
lea eax, [ebp - 0x398]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], eax
test ecx, ecx
je 0x1001e4f4
cmp word [ecx], 0
je 0x1001e4f4
mov edx, 0x1019a618
jmp 0x1001e4ff
mov edx, 0x1019a620
lea ecx, [ebp - 0x398]
push esi
push ecx
push edx
lea eax, [ebp - 0xd98]
push 0x800
push eax
call fcn.1001e750
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x90]
push esi
push 0x1019a628
push 0x80
push eax
call fcn.1001e750
push esi
push 0x1019a640
lea eax, [ebp - 0x190]
push 0x100
push eax
call fcn.1001e750
lea eax, [ebp - 0x90]
mov dword [ebp - 0x10], 0
push eax
push 0x1019a674
lea eax, [ebp - 0x598]
push 0x200
push eax
call fcn.1001e750
add esp, 0x40
lea eax, [ebp - 4]
push 0
push eax
push 0
push 0x20006
push 0
push 0
push 0
lea eax, [ebp - 0x598]
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x1001e5b2
push 0x1019a69c
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.1001e960
add esp, 8
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp - 0x190]
push eax
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
inc eax
add eax, eax
push eax
lea eax, [ebp - 0x190]
push eax
push 1
push 0
push 0
push dword [ebp - 4]
call ebx
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
test eax, eax
jns 0x1001e5fe
push 0x1019a6b0
push 2
call esi
add esp, 4
push eax
call fcn.1001e960
add esp, 8
lea eax, [ebp - 0x190]
push eax
call edi
push 2
lea eax, [ebp - 0x10]
push eax
push 1
push 0
push 0x1019a6cc
push dword [ebp - 4]
call ebx
test eax, eax
jns 0x1001e634
push 0x1019a6e8
push 2
call esi
add esp, 4
push eax
call fcn.1001e960
add esp, 8
mov eax, dword [ebp - 4]
lea ecx, [ebp + 0xc]
push 0
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push 0x1019a704
push eax
mov dword [ebp - 0xc], eax
mov dword [ebp + 0xc], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
test ebx, ebx
jne 0x1001e6a0
mov eax, dword [ebp - 8]
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x398]
push eax
push 1
push 0
push 0
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1001e69e
cmp eax, dword [ebp - 0xc]
je 0x1001e69e
push eax
call edi
test ebx, ebx
jns 0x1001e6b7
push 0x1019a71c
push 2
call esi
add esp, 4
push eax
call fcn.1001e960
add esp, 8
lea eax, [ebp - 0xd98]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0
lea ecx, [ebp + 0xc]
mov dword [ebp + 0xc], 0
push ecx
push 0
push 0xf003f
push 0
push 0
inc eax
push 0
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
push 0x1019a730
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x1001e727
mov eax, dword [ebp - 0xc]
add eax, eax
push eax
lea eax, [ebp - 0xd98]
push eax
push 1
push ebx
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1001e725
cmp eax, dword [ebp - 8]
je 0x1001e725
push eax
call edi
test ebx, ebx
jns 0x1001e73e
push 0x1019a758
push 2
call esi
add esp, 4
push eax
call fcn.1001e960
add esp, 8
push dword [ebp - 4]
call edi
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret