Function at 0x408160
Capabilities:
Access peb ldr_data
Get common file path
Get program files directory
Get startup folder

Disassembly:
push 0xffffffffffffffff
push 0x46eb1a
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x483390]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push ebp
push edi
mov eax, dword [0x483390]
xor eax, esp
push eax
lea eax, [esp + 0x11c]
mov dword fs:[0], eax
mov dword [esi + 4], vtable.rsdk::IMessageCallBack.0
xor ebx, ebx
mov dword [esp + 0x10], esi
mov dword [esi + 8], vtable.rsdk::rscom::CUnknownImp.0
mov dword [esi + 0xc], ebx
mov dword [esp + 0x124], ebx
mov dword [esi], vtable.CRsWork.0
mov dword [esi + 4], vtable.CRsWork.1.0
mov dword [esi + 8], vtable.CRsWork.2.0
mov eax, dword [0x4863c4]
mov edx, dword [eax + 0xc]
mov ecx, 0x4863c4
lea ebp, [esi + 0x30]
call edx
add eax, 0x10
mov dword [ebp], eax
mov byte [esp + 0x124], 1
mov eax, dword [0x4863c4]
mov edx, dword [eax + 0xc]
mov ecx, 0x4863c4
call edx
add eax, 0x10
mov dword [esi + 0x38], eax
mov byte [esp + 0x124], 2
mov eax, dword [0x4863c4]
mov edx, dword [eax + 0xc]
mov ecx, 0x4863c4
call edx
add eax, 0x10
mov dword [esi + 0x40], eax
mov byte [esp + 0x124], 3
mov eax, dword [0x4863c4]
mov edx, dword [eax + 0xc]
mov ecx, 0x4863c4
call edx
add eax, 0x10
mov dword [esi + 0x48], eax
lea eax, [esi + 0x54]
push eax
mov byte [esp + 0x128], 4
call fcn.004069e0
lea ecx, [esi + 0x80]
push ecx
mov byte [esp + 0x128], 5
call fcn.0040c100
mov byte [esp + 0x124], 6
mov edx, dword [0x4863c4]
mov eax, dword [edx + 0xc]
mov ecx, 0x4863c4
call eax
add eax, 0x10
mov dword [esi + 0x9c], eax
mov byte [esp + 0x124], 7
mov edx, dword [0x4863c4]
mov eax, dword [edx + 0xc]
mov ecx, 0x4863c4
call eax
add eax, 0x10
mov dword [esi + 0xa0], eax
mov byte [esp + 0x124], 8
mov edx, dword [0x4863c4]
mov eax, dword [edx + 0xc]
mov ecx, 0x4863c4
call eax
add eax, 0x10
mov dword [esi + 0xa4], eax
mov byte [esp + 0x124], 9
mov edx, dword [0x4863c4]
mov eax, dword [edx + 0xc]
mov ecx, 0x4863c4
call eax
add eax, 0x10
mov dword [esi + 0xac], eax
mov byte [esp + 0x124], 0xa
mov edx, dword [0x4863c4]
mov eax, dword [edx + 0xc]
mov ecx, 0x4863c4
call eax
add eax, 0x10
mov dword [esi + 0xb0], eax
mov byte [esp + 0x124], 0xb
mov edx, dword [0x4863c4]
mov eax, dword [edx + 0xc]
mov ecx, 0x4863c4
call eax
add eax, 0x10
mov dword [esi + 0xb8], eax
push 0x473ca4
push 0x473ab0
push 0x80
mov byte [esp + 0x130], 0xc
call fcn.00431310
add esp, 0xc
lea ecx, [esi + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov edx, dword [esp + 0x12c]
push 0x103
lea eax, [esp + 0x19]
push ebx
push eax
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], edx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x34], 1
mov byte [esp + 0x20], bl
call fcn.00446e10
add esp, 0xc
push 1
push 0x26
lea ecx, [esp + 0x1c]
push ecx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [esp + 0x14]
dec eax
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x408398
mov edx, dword [str.RisingRav]
mov ecx, dword [0x473cbc]
mov dword [eax], edx
mov edx, dword [0x473cc0]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
lea eax, [esp + 0x14]
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4083c1
sub eax, edi
lea ecx, [esp + 0x14]
mov edi, eax
push ecx
mov eax, ebp
call fcn.004032c0
push 0x473127
xor edi, edi
lea eax, [esi + 0x38]
call fcn.004032c0
push 0x473127
lea eax, [esi + 0x40]
call fcn.004032c0
push 0x473127
lea eax, [esi + 0x48]
mov dword [esi + 0x44], ebx
call fcn.004032c0
push 0x473cc4
mov edi, 3
lea eax, [esi + 0xac]
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x78], 2
mov dword [esi + 0x7c], 0xffffffff
mov dword [esi + 0xa8], ebx
mov dword [esi + 0xb4], ebx
call fcn.004032c0
push str.uiwindows_v17_normal.dll
mov edi, 0x18
lea eax, [esi + 0xb0]
call fcn.004032c0
mov eax, esi
mov ecx, dword [esp + 0x11c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.004426a0
add esp, 0x118
ret 4