Function at 0x104c9f6
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x23c
mov edx, dword [ebp + 0x10]
mov eax, dword [0x1099a38]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x1c]
push edi
mov edi, dword [sym.imp.msvcrt.dll_sprintf]
push edx
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
mov dword [ebp - 0x21c], esi
xor ebx, ebx
push 0x100ac24
mov esi, 0x1106960
push esi
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x220], edx
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x214], ebx
call edi
add esp, 0x14
push ebx
lea eax, [ebp - 0x210]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push esi
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x104cac2
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x220]
push dword [ebp - 0x224]
push dword [ebp - 0x218]
push 0x1016bc0
push esi
call edi
add esp, 0x14
push ebx
lea eax, [ebp - 0x210]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push esi
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
je 0x104cad6
push eax
push esi
push 0x1016b80
call fcn.01071ac0
add esp, 0xc
jmp 0x104cc69
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.ntdll.dll_NtQuerySystemTime]
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.ntdll.dll_RtlTimeToTimeFields]
movsx eax, word [ebp - 0x234]
push eax
movsx eax, word [ebp - 0x230]
push eax
movsx eax, word [ebp - 0x232]
push eax
lea eax, [ebp - 0x20c]
push 0x100a510
push eax
call edi
lea eax, [ebp - 0x20c]
add esp, 0x14
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x104cb29
sub eax, edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
inc eax
push eax
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x20c]
push eax
push 1
push ebx
push 0x100a500
push dword [ebp - 0x210]
call edi
cmp eax, ebx
je 0x104cb68
push eax
push 0x1016b38
call fcn.01071ac0
pop ecx
pop ecx
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x108]
push eax
push ebx
mov dword [ebp - 0x214], 0x104
call sub.MPR.dll_WNetGetUserA
test eax, eax
je 0x104cba0
mov eax, dword [0x100a4a8]
mov dword [ebp - 0x108], eax
mov eax, dword [0x100a4ac]
mov dword [ebp - 0x104], eax
lea eax, [ebp - 0x108]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x104cba9
sub eax, edx
inc eax
push eax
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x108]
push eax
push 1
push ebx
push 0x100a49c
push dword [ebp - 0x210]
call edi
cmp eax, ebx
je 0x104cbe2
push eax
push 0x1016af0
call fcn.01071ac0
pop ecx
pop ecx
cmp dword [ebp + 0x18], ebx
je 0x104cc35
push 0xfffa
push esi
push 0x1016adc
push dword [ebp - 0x21c]
call fcn.01070fc9
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x104cc02
sub eax, ecx
inc eax
push eax
push esi
push 1
push ebx
push 0x100a428
push dword [ebp - 0x210]
mov dword [ebp - 0x214], eax
call edi
cmp eax, ebx
je 0x104cc35
push eax
push 0x1016a90
call fcn.01071ac0
pop ecx
pop ecx
push 7
push 0x100fec0
push 1
push ebx
push 0x100a3b0
push dword [ebp - 0x210]
call edi
cmp eax, ebx
je 0x104cc5d
push eax
push 0x1016a50
call fcn.01071ac0
pop ecx
pop ecx
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0106bc50
leave
ret 0x18