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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [ebp + 8], 0
je 0x3001ca7b
cmp dword [ebp + 8], 0xffffffff
jne 0x3001ca8c
push 0x30001c78
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call dword [sym.imp.KERNEL32.DLL_DebugBreak]
cmp dword [ebp + 0xc], 0
jne 0x3001caa3
push 0x30001c78
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call dword [sym.imp.KERNEL32.DLL_DebugBreak]
cmp dword [ebp + 0x10], 0
jne 0x3001caba
push 0x30001c78
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call dword [sym.imp.KERNEL32.DLL_DebugBreak]
mov eax, dword [ebp + 0x14]
or eax, dword [ebp + 0x18]
test eax, eax
jne 0x3001cad5
push 0x30001c78
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call dword [sym.imp.KERNEL32.DLL_DebugBreak]
cmp dword [ebp + 0x1c], 0
jne 0x3001caec
push 0x30001c78
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call dword [sym.imp.KERNEL32.DLL_DebugBreak]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x60]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x6c]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 0x10
mov edx, dword [ebp - 0x24]
add edx, dword [ebp - 0x14]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x58]
mov eax, dword [ebp + 0xc]
add ecx, dword [eax + 0x5c]
cmp edx, ecx
ja 0x3001cb31
mov ecx, dword [ebp - 0x18]
add ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x64]
mov edx, dword [ebp + 0xc]
add eax, dword [edx + 0x68]
cmp ecx, eax
jbe 0x3001cb38
xor eax, eax
jmp 0x3001cc2f
push 0
push 0
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
xor edx, edx
cmp eax, 0xffffffff
setne dl
mov dword [ebp - 0x20], edx
cmp dword [ebp - 0x20], 0
jne 0x3001cb62
xor eax, eax
jmp 0x3001cc2f
push 0
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x3001cb8b
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp + 0x1c]
je 0x3001cb92
xor eax, eax
jmp 0x3001cc2f
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x18]
mov dword [ebp - 4], edx
push 0
push 0
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
xor edx, edx
cmp eax, 0xffffffff
setne dl
mov dword [ebp - 0x20], edx
cmp dword [ebp - 0x20], 0
jne 0x3001cbd1
xor eax, eax
jmp 0x3001cc2f
push 0
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x3001cbfa
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp - 0x14]
je 0x3001cbfe
xor eax, eax
jmp 0x3001cc2f
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x60]
add eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x60], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x6c]
add eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x6c], eax
cmp dword [ebp + 0x20], 0
je 0x3001cc2a
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp - 0x18]
mov dword [edx], eax
mov eax, 1
mov esp, ebp
pop ebp
ret 0x1c