Function at 0x41f5f0
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x43c
mov eax, dword [0x4b1810]
xor eax, esp
mov dword [esp + 0x438], eax
push ebx
mov ebx, ecx
push esi
push edi
lea edi, [ebx + 8]
push edi
call fcn.004218e0
add esp, 4
lea eax, [esp + 0x10]
lea esi, [ebx + 0xc]
mov ecx, esi
push eax
call fcn.0041eca0
mov eax, dword [0x4b717c]
test eax, eax
je 0x41f659
lea ecx, [esp + 0x10]
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 0x41f7e3
test byte [0x4b2980], 2
je 0x41f679
cmp dword [esp + 0x24], 0x10
lea eax, [esp + 0x10]
cmovae eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x41f67e
cmp dword [ebx], 2
jl 0x41f6b9
cmp dword [esp + 0x24], 0x10
lea edi, [esp + 0x10]
mov esi, dword [esp + 0x20]
cmovae edi, dword [esp + 0x10]
call fcn.00491834
add eax, 0x40
push eax
push 1
push esi
push edi
call fcn.00491c59
call fcn.00491834
add eax, 0x40
push eax
call fcn.004919c3
lea edi, [ebx + 8]
add esp, 0x14
lea esi, [ebx + 0xc]
test byte [0x4b2980], 1
je 0x41f758
xor edx, edx
xor ecx, ecx
call fcn.0041efa0
cmp dword [0x4b716c], 0
jne 0x41f6e8
push 0xffffffffffffffff
push dword [0x4b7168]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x41f6f4
push dword [0x4b7180]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call fcn.0041f0f0
test al, al
je 0x41f735
push 2
push 0
push 0
push dword [0x4b7160]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [esp + 0x24], 0x10
lea ecx, [esp + 0xc]
push 0
push ecx
push dword [esp + 0x28]
lea eax, [esp + 0x1c]
cmovae eax, dword [esp + 0x1c]
push eax
push dword [0x4b7160]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [0x4b716c], 0
jne 0x41f74c
push dword [0x4b7168]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x41f758
push dword [0x4b7180]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebx], 3
jne 0x41f7e3
mov ecx, 0x400
lea eax, [esp + 0x10]
cmp dword [esp + 0x20], ecx
cmovb ecx, dword [esp + 0x20]
cmp dword [esp + 0x24], 0x10
cmovae eax, dword [esp + 0x10]
test ecx, ecx
je 0x41f790
push ecx
push eax
lea eax, [esp + 0x48]
push eax
call fcn.0048df60
add esp, 0xc
lea eax, [esp + 0x40]
push eax
call fcn.0042feb0
add esp, 4
cmp dword [0x4b7178], 0
je 0x41f7d5
lea eax, [esp + 0x28]
mov ecx, esi
push eax
call fcn.0041eca0
lea eax, [esp + 0x28]
push eax
call dword [0x4b7178]
add esp, 4
cmp dword [esp + 0x3c], 0x10
jb 0x41f7e3
push dword [esp + 0x28]
call fcn.0048d7cb
add esp, 4
jmp 0x41f7e3
cmp byte [0x4b82e4], 0
jne 0x41f866
int3
cmp dword [esp + 0x24], 0x10
jb 0x41f7f6
push dword [esp + 0x10]
call fcn.0048d7cb
add esp, 4
push dword [ebx + 0xac]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [edi]
lea esi, [edi + 0x50]
mov eax, dword [eax + 4]
mov dword [eax + esi - 0x50], 0x412a64
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.0041e1a0
mov eax, dword [esi - 0x50]
push esi
mov eax, dword [eax + 4]
mov dword [eax + esi - 0x50], 0x412ab0
mov eax, dword [esi - 0x50]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + esi - 0x54], eax
mov dword [esi], 0x412aac
call fcn.004ad49d
mov ecx, dword [esp + 0x448]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00491511
mov esp, ebp
pop ebp
ret
push 1
call fcn.0048ec7d
int3