Function at 0x425110
Capabilities:
Create process on windows
Print debug messages
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2cc
mov eax, dword [0x498068]
xor eax, esp
mov dword [esp + 0x2c8], eax
push ebx
mov ebx, ecx
mov eax, dword [ebx + 8]
push esi
lea esi, [ebx + 8]
push edi
mov ecx, dword [eax + 4]
lea eax, [esp + 0x28]
add ecx, esi
push eax
call fcn.00402ef0
push eax
call fcn.00406fc0
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0xa
mov eax, dword [edx + 0x20]
call eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x13], al
call fcn.004027a0
push esi
lea ecx, [esp + 0x24]
call fcn.00405640
cmp byte [esp + 0x24], 0
jne 0x425180
mov edi, 4
jmp 0x425206
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov edi, dword [eax + esi + 0x38]
mov al, byte [esp + 0x13]
mov byte [esp + 0x14], al
mov eax, dword [edi + 0x20]
cmp dword [eax], 0
je 0x4251c0
mov ecx, dword [edi + 0x30]
mov eax, dword [ecx]
test eax, eax
jle 0x4251c0
dec eax
mov dword [ecx], eax
mov ecx, dword [edi + 0x20]
mov edx, dword [ecx]
push edx
lea eax, [edx + 1]
mov dword [ecx], eax
mov al, byte [esp + 0x17]
mov byte [edx], al
call fcn.00402460
add esp, 4
jmp 0x4251d8
mov esi, dword [edi]
lea eax, [esp + 0x14]
push eax
call fcn.00402460
add esp, 4
mov ecx, edi
push eax
call dword [esi + 0xc]
lea esi, [ebx + 8]
mov dword [esp + 0x1c], eax
call fcn.00402490
mov dword [esp + 0x18], eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00402470
add esp, 8
mov ecx, 4
test al, al
mov edi, 0
cmovne edi, ecx
mov eax, dword [esi]
push 0
mov ecx, dword [eax + 4]
add ecx, esi
mov edx, dword [ecx + 0xc]
or edx, edi
mov eax, edx
or eax, 4
cmp dword [ecx + 0x38], 0
cmovne eax, edx
push eax
call fcn.00402e70
lea ecx, [esp + 0x20]
call fcn.004055d0
mov ecx, esi
call fcn.00406d60
lea eax, [esp + 0x98]
push eax
lea ecx, [ebx + 0xc]
call fcn.00422c30
mov eax, dword [0x49ad38]
test eax, eax
je 0x425278
lea ecx, [esp + 0x98]
push ecx
push dword [ebx + 0xa0]
push dword [ebx + 0xa8]
push dword [ebx + 0xa4]
push dword [ebx]
call eax
add esp, 0x14
test al, al
jne 0x425584
mov eax, dword [0x4989c0]
cmp eax, 2
je 0x42528e
cmp eax, 3
je 0x42528e
cmp dword [ebx], 2
jl 0x4252d9
jmp 0x4252a1
lea ecx, [esp + 0x98]
call fcn.00404d10
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [esp + 0x98]
call fcn.00404d10
push eax
push 0x488280
push 2
call fcn.0045a59b
add esp, 4
push eax
call fcn.004249e0
add esp, 0xc
push 2
call fcn.0045a59b
add esp, 4
push eax
call fcn.0045b674
add esp, 4
xor edx, edx
call fcn.00424ae0
mov eax, dword [0x4989c0]
test eax, eax
je 0x42537f
cmp eax, 2
je 0x42537f
cmp dword [0x49ad40], 0
jne 0x42530f
push 0xffffffffffffffff
push dword [0x49ad20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x42531b
push dword [0x49ad48]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call fcn.00424c30
test al, al
je 0x42535c
push 2
push 0
push 0
push dword [0x49ad30]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0xa0]
call fcn.00405f50
push eax
call fcn.00404d10
push eax
push dword [0x49ad30]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [0x49ad40], 0
jne 0x425373
push dword [0x49ad20]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x42537f
push dword [0x49ad48]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebx]
cmp eax, 4
jne 0x4253c6
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x425601
cmp dword [0x49ad4c], eax
je 0x425601
lea eax, [esp + 0x80]
push eax
lea ecx, [ebx + 0xc]
call fcn.00422c30
lea eax, [esp + 0x80]
push eax
call dword [0x49ad4c]
add esp, 4
jmp 0x425578
cmp eax, 3
jne 0x425584
cmp dword [0x49ad28], 0
lea eax, [esp + 0x80]
lea ecx, [ebx + 0xc]
push eax
je 0x4253fe
call fcn.00422c30
lea eax, [esp + 0x80]
push eax
call dword [0x49ad28]
add esp, 4
jmp 0x425578
call fcn.00422c30
lea ecx, [esp + 0x80]
call fcn.00404c40
test al, al
jne 0x425578
cmp byte [0x49ad09], al
je 0x425578
push 0x104
lea eax, [esp + 0xcc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0xc8]
push 0x5c
push eax
call fcn.0045115f
add esp, 8
test eax, eax
je 0x425454
xor ecx, ecx
mov word [eax + 2], cx
push str.debug_message.exe
lea eax, [esp + 0xcc]
push 0x104
push eax
call fcn.004598e3
add esp, 0xc
lea ecx, [esp + 0x80]
call fcn.00404d10
mov edi, eax
call fcn.00405f50
lea ecx, [esp + 0xb0]
mov esi, eax
call fcn.00401900
lea eax, [esp + 0xb0]
mov edx, esi
push eax
mov ecx, edi
call fcn.0042d520
add esp, 4
lea ecx, [esp + 0xb0]
call fcn.00404c40
test al, al
jne 0x42556c
xorps xmm0, xmm0
mov dword [esp + 0x38], 0x44
lea ecx, [esp + 0xb0]
movlpd qword [esp + 0x3c], xmm0
movlpd qword [esp + 0x44], xmm0
movlpd qword [esp + 0x4c], xmm0
movlpd qword [esp + 0x54], xmm0
movlpd qword [esp + 0x5c], xmm0
movlpd qword [esp + 0x64], xmm0
movlpd qword [esp + 0x6c], xmm0
movlpd qword [esp + 0x74], xmm0
call fcn.00401a00
mov esi, eax
cmp dword [esi + 0x14], 8
jb 0x425508
mov eax, dword [esi]
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x3c]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
lea eax, [esp + 0xec]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x425551
push 0xffffffffffffffff
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esp + 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [esp + 0x28]
call esi
jmp 0x42556c
cmp dword [esi + 0x14], 8
jb 0x425559
mov esi, dword [esi]
push 0x40010
push str.Fatal_error
push esi
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [esp + 0xb0]
call fcn.00401850
lea ecx, [esp + 0x80]
call fcn.00404e00
lea ecx, [esp + 0x98]
call fcn.00404e00
push dword [ebx + 0xac]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebx + 8]
lea esi, [ebx + 0x58]
mov eax, dword [eax + 4]
mov dword [eax + esi - 0x50], 0x48b47c
mov eax, dword [esi - 0x50]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ecx + esi - 0x54], eax
lea ecx, [esi - 0x4c]
call fcn.00421b80
mov eax, dword [esi - 0x50]
push esi
mov eax, dword [eax + 4]
mov dword [eax + esi - 0x50], 0x478128
mov eax, dword [esi - 0x50]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + esi - 0x54], eax
mov dword [esi], vtable.std::ios_base.0
call fcn.0044ee32
mov ecx, dword [esp + 0x2d8]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0044f786
mov esp, ebp
pop ebp
ret
call fcn.004398a0
int3