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

Disassembly:
mov eax, 0x52188e
call fcn.004a28b4
sub esp, 0x44
mov eax, dword [0x561be8]
push ebx
push edi
mov edi, ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x30], edi
mov eax, dword [edi]
xor ebx, ebx
cmp eax, dword [0x566ca0]
mov dword [ebp - 4], ebx
jl 0x44a97a
push esi
lea esi, [edi + 8]
mov eax, dword [esi + 0x24]
mov eax, dword [eax]
cmp eax, ebx
jne 0x44a7ca
xor eax, eax
jmp 0x44a7cf
mov ecx, dword [esi + 0x14]
sub eax, dword [ecx]
lea ecx, [edi + 4]
push eax
call fcn.0044a08c
push eax
lea ecx, [ebp - 0x2c]
call fcn.0041098d
push 0x53036c
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.0040ba87
cmp dword [0x566ca8], ebx
je 0x44a80d
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x44a806
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [0x566ca8], 1
je 0x44a8b7
call fcn.00449fc4
test al, al
je 0x44a8b7
cmp dword [0x566ca4], ebx
mov edi, 0x566c88
jne 0x44a849
call fcn.0044a5b4
push 0xffffffffffffffff
push dword [0x566dc4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x44a866
cmp byte [0x566dc0], bl
jne 0x44a85f
push edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [0x566dc0], 1
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 2
push ebx
push ebx
push dword [0x566db4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x44a882
lea eax, [ebp - 0x28]
push ebx
lea ecx, [ebp - 0x34]
push ecx
push dword [ebp - 0x18]
push eax
push dword [0x566db4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [0x566ca4], ebx
jne 0x44a8ad
push dword [0x566dc4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x44a8b4
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [ebp - 0x30]
cmp dword [edi], 3
jne 0x44a966
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x44a8d5
call dword [sym.imp.KERNEL32.dll_DebugBreak]
jmp 0x44a966
cmp dword [0x566dbc], ebx
mov eax, dword [esi + 0x24]
mov eax, dword [eax]
je 0x44a91e
cmp eax, ebx
jne 0x44a8ea
xor eax, eax
jmp 0x44a8ef
mov ecx, dword [esi + 0x14]
sub eax, dword [ecx]
push eax
lea ecx, [edi + 4]
call fcn.0044a08c
push eax
lea ecx, [ebp - 0x50]
call fcn.0041098d
push eax
mov byte [ebp - 4], 2
call dword [0x566dbc]
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 1
call fcn.0040188a
jmp 0x44a966
cmp eax, ebx
jne 0x44a926
xor eax, eax
jmp 0x44a92b
mov ecx, dword [esi + 0x14]
sub eax, dword [ecx]
push eax
lea ecx, [edi + 4]
call fcn.0044a08c
push eax
lea ecx, [ebp - 0x50]
call fcn.0041098d
push eax
mov byte [ebp - 4], 3
call fcn.0044a0b3
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 1
call fcn.0040188a
push 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push ebx
mov ecx, esi
call fcn.004ba909
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040188a
pop esi
or dword [ebp - 4], 0xffffffff
lea ecx, [edi + 4]
call fcn.0044a0a0
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.004a2d97
leave
ret