Function at 0x10003240
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 0x10003274
cmp word [ecx], 0
je 0x10003274
mov edx, 0x10121718
jmp 0x1000327f
mov edx, 0x10121720
lea ecx, [ebp - 0x398]
push esi
push ecx
push edx
lea eax, [ebp - 0xd98]
push 0x800
push eax
call fcn.100034d0
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x90]
push esi
push 0x10121728
push 0x80
push eax
call fcn.100034d0
push esi
push 0x10121740
lea eax, [ebp - 0x190]
push 0x100
push eax
call fcn.100034d0
lea eax, [ebp - 0x90]
mov dword [ebp - 0x10], 0
push eax
push 0x10121774
lea eax, [ebp - 0x598]
push 0x200
push eax
call fcn.100034d0
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 Ordinal_2
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x10003332
push 0x1012179c
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.100036f0
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 0x1000337e
push 0x101217b0
push 2
call esi
add esp, 4
push eax
call fcn.100036f0
add esp, 8
lea eax, [ebp - 0x190]
push eax
call edi
push 2
lea eax, [ebp - 0x10]
push eax
push 1
push 0
push 0x101217cc
push dword [ebp - 4]
call ebx
test eax, eax
jns 0x100033b4
push 0x101217e8
push 2
call esi
add esp, 4
push eax
call fcn.100036f0
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 0x10121804
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 0x10003420
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 0x1000341e
cmp eax, dword [ebp - 0xc]
je 0x1000341e
push eax
call edi
test ebx, ebx
jns 0x10003437
push 0x1012181c
push 2
call esi
add esp, 4
push eax
call fcn.100036f0
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 0x10121830
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x100034a7
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 0x100034a5
cmp eax, dword [ebp - 8]
je 0x100034a5
push eax
call edi
test ebx, ebx
jns 0x100034be
push 0x10121858
push 2
call esi
add esp, 4
push eax
call fcn.100036f0
add esp, 8
push dword [ebp - 4]
call edi
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret