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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x894
mov eax, dword [0x10063b60]
xor eax, ebp
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x894], ecx
mov dword [ebp - 0x484], 0
lea eax, [ebp - 0x484]
push eax
push 0x100520f8
call fcn.100122d0
add esp, 8
cmp dword [ebp - 0x484], 0
jne 0x10012a55
jmp 0x10012cd0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x10052104
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea edx, [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov al, byte [0x10051ca3]
mov byte [ebp - 0x888], al
push 0x3ff
push 0
lea ecx, [ebp - 0x887]
push ecx
call fcn.100237f0
add esp, 0xc
movzx edx, word [ebp - 6]
push edx
movzx eax, word [ebp - 8]
push eax
movzx ecx, word [ebp - 0xa]
push ecx
movzx edx, word [ebp - 0xc]
push edx
movzx eax, word [ebp - 0xe]
push eax
movzx ecx, word [ebp - 0x12]
push ecx
movzx edx, word [ebp - 0x14]
push edx
push 0x10052108
push 0x400
lea eax, [ebp - 0x888]
push eax
call fcn.10011ba0
add esp, 0x28
test eax, eax
jge 0x10012ada
jmp 0x10012cd0
mov cl, byte [0x10051cb6]
mov byte [ebp - 0x80], cl
push 0x63
push 0
lea edx, [ebp - 0x7f]
push edx
call fcn.100237f0
add esp, 0xc
movzx eax, word [ebp - 0xe]
push eax
movzx ecx, word [ebp - 0x12]
push ecx
movzx edx, word [ebp - 0x14]
push edx
push 0x10052130
push 0x64
lea eax, [ebp - 0x80]
push eax
call fcn.10011ba0
add esp, 0x18
mov dword [ebp - 0x88c], 0
mov byte [ebp - 1], 0
mov ecx, dword [ebp - 0x894]
cmp dword [ecx], 0
jne 0x10012b32
mov byte [ebp - 1], 1
lea edx, [ebp - 0x88c]
push edx
lea eax, [ebp - 0x80]
push eax
mov ecx, dword [ebp - 0x894]
add ecx, 0x68
push ecx
call fcn.100126b0
add esp, 0xc
test eax, eax
je 0x10012ba5
movzx edx, word [ebp - 0xe]
push edx
movzx eax, word [ebp - 0x12]
push eax
movzx ecx, word [ebp - 0x14]
push ecx
push 0x10052140
push 0x64
mov edx, dword [ebp - 0x894]
add edx, 0x68
push edx
call fcn.10011ba0
add esp, 0x18
mov byte [ebp - 1], 1
mov eax, dword [ebp - 0x894]
cmp dword [eax], 0
je 0x10012ba5
mov ecx, dword [ebp - 0x894]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x894]
mov dword [eax], 0
mov cl, byte [0x10051cb7]
mov byte [ebp - 0x480], cl
push 0x3ff
push 0
lea edx, [ebp - 0x47f]
push edx
call fcn.100237f0
add esp, 0xc
movzx eax, byte [ebp - 1]
test eax, eax
je 0x10012c34
lea ecx, [ebp - 0x480]
push ecx
mov edx, dword [ebp - 0x894]
add edx, 4
push edx
lea eax, [ebp - 0x14]
push eax
call fcn.10012770
add esp, 0xc
movzx ecx, al
test ecx, ecx
jne 0x10012bf8
jmp 0x10012cd0
push 0
push 0x80
push 4
push 0
push 3
push 0xc0000000
lea edx, [ebp - 0x480]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [ebp - 0x894]
mov dword [ecx], eax
push 2
push 0
push 0
mov edx, dword [ebp - 0x894]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp - 0x894]
cmp dword [ecx], 0
je 0x10012cd0
mov dword [ebp - 0x890], 0
push 0
lea edx, [ebp - 0x890]
push edx
lea eax, [ebp - 0x888]
push eax
call fcn.10012440
add esp, 4
push eax
lea ecx, [ebp - 0x888]
push ecx
mov edx, dword [ebp - 0x894]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [ebp - 0x890]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10012440
add esp, 4
push eax
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x894]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0x890]
push eax
push 0x10052150
call fcn.10012440
add esp, 4
push eax
push 0x10052154
mov ecx, dword [ebp - 0x894]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.10020358
mov esp, ebp
pop ebp
ret 4