Function at 0x41e270
Capabilities:
Print debug messages
Terminate process
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x44a888
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
mov eax, dword [0x45b990]
xor eax, esp
mov dword [esp + 0x5c], eax
push esi
mov dword [esp + 8], ebx
mov dword [esp + 0x6c], 1
mov eax, dword [ebx]
cmp eax, dword [0x45e194]
jl 0x41e541
lea eax, [ebx + 4]
lea ecx, [esp + 0x44]
call fcn.00406740
mov eax, 2
mov ecx, 0x4535f4
lea edx, [esp + 0x44]
mov byte [esp + 0x6c], 2
call fcn.0040a0a0
mov eax, dword [0x45e1ac]
test eax, eax
je 0x41e301
mov edx, dword [ebx]
lea ecx, [esp + 0x44]
push ecx
push edx
call eax
add esp, 8
test al, al
je 0x41e301
cmp dword [esp + 0x5c], 0x10
jb 0x41e52c
mov eax, dword [esp + 0x48]
push eax
jmp 0x41e524
mov eax, dword [0x45e170]
test eax, eax
je 0x41e35a
cmp dword [ebx], 1
jg 0x41e35a
cmp dword [eax + 0x18], 0x10
jb 0x41e31a
mov ecx, dword [eax + 4]
jmp 0x41e31d
lea ecx, [eax + 4]
mov esi, dword [eax + 0x14]
push ebp
mov eax, ecx
push edi
mov edi, dword [ebx + 0x84]
lea ebp, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x41e330
sub eax, ebp
push eax
push ecx
push esi
push edi
lea ecx, [esp + 0x5c]
call fcn.0040c0f0
test eax, eax
pop edi
pop ebp
je 0x41e35a
lea ecx, [esp + 0x44]
call fcn.00405c50
jmp 0x41e541
mov eax, dword [0x45ce30]
cmp eax, 2
je 0x41e37a
cmp eax, 3
je 0x41e37a
mov ecx, dword [ebx]
cmp ecx, dword [0x45ce34]
jl 0x41e3cb
cmp dword [esp + 0x5c], 0x10
jmp 0x41e3a4
mov eax, dword [esp + 0x5c]
mov esi, 0x10
cmp eax, esi
mov eax, dword [esp + 0x48]
jae 0x41e38f
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [ebx]
cmp edx, dword [0x45ce34]
jl 0x41e3cb
cmp dword [esp + 0x5c], esi
mov eax, dword [esp + 0x48]
jae 0x41e3ae
lea eax, [esp + 0x48]
push eax
push 0x4535f0
push 0x45b448
call fcn.004373c6
push 0x45b448
call fcn.0043736d
add esp, 0x10
mov eax, dword [0x45ce30]
test eax, eax
je 0x41e3f5
cmp eax, 2
je 0x41e3f5
call fcn.0041dba0
test al, al
je 0x41e3f5
call fcn.0041dd00
mov eax, dword [0x45e1b0]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [0x45e19c]
push 2
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x5c]
mov esi, 0x10
cmp eax, esi
mov eax, dword [esp + 0x48]
jae 0x41e41d
lea eax, [esp + 0x48]
mov ecx, dword [esp + 0x58]
push 0
lea edx, [esp + 8]
push edx
mov edx, dword [0x45e19c]
push ecx
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [0x45e1b0]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebx]
cmp eax, 4
jne 0x41e4db
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x41e45e
int3
mov eax, dword [0x45e1a4]
test eax, eax
lea eax, [ebx + 4]
je 0x41e48b
lea ecx, [esp + 0x28]
call fcn.00406740
push eax
mov byte [esp + 0x70], 3
call dword [0x45e1a4]
add esp, 4
lea ecx, [esp + 0x28]
jmp 0x41e514
lea ecx, [esp + 0xc]
call fcn.00406740
mov byte [esp + 0x6c], 4
cmp dword [eax + 0x18], esi
jb 0x41e4a3
mov eax, dword [eax + 4]
jmp 0x41e4a6
add eax, 4
mov ecx, dword [ebx + 0x84]
add ecx, eax
push ecx
lea ecx, [esp + 0x2c]
call fcn.00405c10
lea eax, [esp + 0x28]
call fcn.0041df20
lea ecx, [esp + 0x28]
call fcn.00405c50
lea ecx, [esp + 0xc]
call fcn.00405c50
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp eax, 3
jne 0x41e519
mov eax, dword [0x45e1a8]
test eax, eax
lea ecx, [esp + 0xc]
lea eax, [ebx + 4]
je 0x41e506
call fcn.00406740
push eax
mov byte [esp + 0x70], 5
call dword [0x45e1a8]
add esp, 4
jmp 0x41e510
call fcn.00406740
call fcn.0041df20
lea ecx, [esp + 0xc]
call fcn.00405c50
cmp dword [esp + 0x5c], esi
jb 0x41e52c
mov edx, dword [esp + 0x48]
push edx
call fcn.004358f6
add esp, 4
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], 0
mov byte [esp + 0x48], 0
mov eax, dword [ebx + 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea esi, [ebx + 0x50]
mov ecx, esi
mov dword [esp + 0x6c], 0xffffffff
call fcn.004066d0
mov ecx, esi
mov dword [esi], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
call fcn.0043356e
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x60]
pop esi
xor ecx, esp
call fcn.004395fe
add esp, 0x6c
ret