Function at 0x401000
Capabilities:
Create process on windows
Get common file path
Read .ini file

Disassembly:
sub esp, 0x360
lea eax, [esp + 0x10]
push ebp
push esi
push edi
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x1c]
push ecx
call fcn.004013e0
lea edx, [esp + 0x20]
push str..EXE
push edx
call fcn.00401360
mov ecx, 4
lea edx, [esp + 0x28]
sub ecx, edx
add esp, 0xc
add eax, ecx
xor ecx, ecx
test eax, eax
jle 0x401065
mov ecx, eax
lea esi, [esp + 0x1c]
mov edx, ecx
mov edi, 0x405510
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
mov byte [ecx + 0x405510], 0
mov edi, 0x405510
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
dec esi
js 0x40108d
mov al, 0x5c
cmp byte [esi + 0x405510], al
je 0x40108d
dec esi
jns 0x401082
push esi
push 0x405510
push 0x405614
call fcn.00401260
mov edi, 0x405614
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
mov byte [esi + 0x405614], 0
lea edx, [esp + 0x268]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x268]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str._register.ini
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x11
lea edi, [esp + 0x120]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x268]
lea ecx, [esp + 0x164]
push eax
push 0x104
push ecx
push str._SYSTEM_OOBEMSOOBE.EXE__r
push str.Launch
push str.Register
mov dword [esp + 0x138], 0x44
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x164]
push str._PATHNAME_
push edx
call fcn.00401360
mov edx, eax
add esp, 8
test edx, edx
je 0x40118a
mov edi, 0x405614
or ecx, 0xffffffff
xor eax, eax
lea ebp, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [edx + 0xa]
jmp 0x4011b8
lea ecx, [esp + 0x164]
push str._SYSTEM_
push ecx
call fcn.00401360
mov esi, eax
add esp, 8
test esi, esi
je 0x401207
lea edx, [esp + 0x1c]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [esi + 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x1c]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x164]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x120]
push ecx
push edx
push 0x405040
push 0
push 0x20
push 1
push 0
lea eax, [esp + 0x180]
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
test eax, eax
pop ebp
jne 0x40124c
lea ecx, [esp + 0x10]
push eax
push ecx
push str.Error_launching
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
add esp, 0x360
ret 0x10