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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [ebp + 8], 0
je 0x3001c8c3
cmp dword [ebp + 8], 0xffffffff
jne 0x3001c8d4
push 0x30001c70
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call dword [sym.imp.KERNEL32.DLL_DebugBreak]
cmp dword [ebp + 0xc], 0
jne 0x3001c8eb
push 0x30001c70
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call dword [sym.imp.KERNEL32.DLL_DebugBreak]
cmp dword [ebp + 0x10], 0
jne 0x3001c902
push 0x30001c70
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 0x3001c91d
push 0x30001c70
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call dword [sym.imp.KERNEL32.DLL_DebugBreak]
cmp dword [ebp + 0x1c], 0
jne 0x3001c934
push 0x30001c70
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 0x3001c979
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 0x3001c980
xor eax, eax
jmp 0x3001ca77
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 0x3001c9aa
xor eax, eax
jmp 0x3001ca77
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 0x3001c9d3
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp + 0x1c]
je 0x3001c9da
xor eax, eax
jmp 0x3001ca77
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 0x3001ca19
xor eax, eax
jmp 0x3001ca77
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 0x3001ca42
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp - 0x14]
je 0x3001ca46
xor eax, eax
jmp 0x3001ca77
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 0x3001ca72
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp - 0x18]
mov dword [edx], eax
mov eax, 1
mov esp, ebp
pop ebp
ret 0x1c