Function at 0x401050
Capabilities:
Create process on windows
Create thread
Get common file path
Inject dll
Inject thread
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x998
mov eax, dword [0x403004]
xor eax, esp
mov dword [esp + 0x994], eax
push esi
push edi
lea eax, [esp + 0x380]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push str.hook.ini
lea eax, [esp + 0x384]
push eax
lea eax, [esp + 0x180]
push str._ls_ls
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0x188]
add esp, 0x10
push eax
push 0x104
lea eax, [esp + 0x590]
push eax
push 0x402194
push 0x402198
push str.FileName
call esi
test eax, eax
jne 0x401110
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.error___d
call fcn.00401010
add esp, 8
push 0
push 0x4021c0
push 0x4021c8
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x994]
xor ecx, esp
call fcn.004012ad
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0x104
lea eax, [esp + 0x7c]
push eax
push 0xffffffffffffffff
lea eax, [esp + 0x59c]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [esp + 0x178]
push eax
push 0x104
lea eax, [esp + 0x798]
push eax
push 0x402194
push 0x4021dc
push str.FileName
call esi
lea eax, [esp + 0x10]
mov dword [esp + 0x28], 0x44
push eax
lea eax, [esp + 0x2c]
xorps xmm0, xmm0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x7b0]
movlpd qword [esp + 0x4c], xmm0
push eax
push 0
movlpd qword [esp + 0x5c], xmm0
movlpd qword [esp + 0x64], xmm0
movlpd qword [esp + 0x6c], xmm0
movlpd qword [esp + 0x74], xmm0
movlpd qword [esp + 0x7c], xmm0
movlpd qword [esp + 0x84], xmm0
movlpd qword [esp + 0x8c], xmm0
movaps xmmword [esp + 0x38], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x401283
mov ecx, dword [esp + 0x10]
lea esi, [esp + 0x70]
mov dword [esp + 0xc], ecx
lea edx, [esi + 1]
nop dword [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x4011e0
push 4
sub esi, edx
push 0x1000
inc esi
push esi
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push 0
push esi
mov esi, dword [esp + 0x14]
mov edi, eax
lea eax, [esp + 0x78]
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push str.LoadLibraryA
push str.Kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
push 0
push edi
push eax
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test eax, eax
jne 0x40124f
push eax
push 0x40215c
push 0x402164
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0xffffffffffffffff
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [esp + 0x14]
call esi
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x994]
xor ecx, esp
call fcn.004012ad
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateProcess_failed___d_._n
call fcn.00401010
mov ecx, dword [esp + 0x9a4]
add esp, 8
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.004012ad
mov esp, ebp
pop ebp
ret