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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10020f17
mov eax, dword fs:[0]
push eax
mov eax, 0x1664
call fcn.10013970
mov eax, dword [0x1002d02c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
xor edi, edi
mov ebx, dword [ebp + 8]
inc edi
mov dword [ebp - 0x1664], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x1670], eax
mov eax, dword [0x1002e984]
cmp eax, edi
je 0x1000fa8a
test eax, eax
jne 0x1000f79c
call fcn.1000fbf6
mov eax, dword [0x1002e984]
cmp eax, 2
jne 0x1000fa8a
push 0x1002e988
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x1002e9a4]
test al, 1
jne 0x1000f7d0
or eax, edi
mov dword [0x1002e9a4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [0x1002e9a0], eax
mov eax, dword [0x1002e9a4]
xor esi, esi
test al, 2
jne 0x1000f7fc
or eax, 2
mov dword [0x1002e9a4], eax
push 0x1002e9a8
mov dword [ebp - 4], esi
call fcn.1000faa6
mov dword [esp], 0x1002104b
call fcn.1000fff4
or dword [ebp - 4], 0xffffffff
pop ecx
lea ecx, [ebp - 0x1660]
call fcn.1000f6ce
call fcn.10003e30
push eax
lea ecx, [ebp - 0x1668]
call fcn.10003730
mov eax, dword [0x1002e9a0]
mov dword [ebp - 4], edi
mov dword [ebp - 0x1660], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x165c], eax
lea eax, [ebp - 0x1658]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push dword [0x1002e9a8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1650], eax
lea eax, [ebp - 0x164c]
push 0x104
push eax
call fcn.10012cc2
mov eax, dword [ebx + 4]
push 0x5c
push dword [ebx]
mov dword [ebp - 0x23c], eax
call fcn.1001399b
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x1000f87e
mov edi, dword [ebx]
jmp 0x1000f881
add edi, 2
push dword [ebx + 8]
lea eax, [ebp - 0x440]
push 0x81
push eax
call fcn.1000c340
push edi
push 0x81
lea eax, [ebp - 0x33e]
push eax
call fcn.1000c340
mov eax, dword [ebp - 0x1670]
test eax, eax
je 0x1000f8cb
push eax
push dword [ebp - 0x1664]
lea eax, [ebp - 0x1442]
push 0x800
push eax
call fcn.1000fd0a
jmp 0x1000f8e2
push dword [ebp - 0x1664]
lea eax, [ebp - 0x1442]
push 0x800
push eax
call fcn.1000c340
mov eax, dword [0x1002e97c]
mov dword [ebp - 0x166c], esi
test eax, eax
je 0x1000f982
cmp eax, 0xffffffff
je 0x1000f982
push esi
lea ecx, [ebp - 0x166c]
push ecx
push 0x1428
lea ecx, [ebp - 0x1660]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1000fa71
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe8
je 0x1000f93e
cmp eax, 0xe6
je 0x1000f93e
cmp eax, 0x6d
jne 0x1000fa71
mov eax, dword [0x1002e97c]
test eax, eax
je 0x1000fa71
cmp eax, 0xffffffff
je 0x1000fa71
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x1002e97c], esi
call fcn.1000fb18
mov dword [0x1002e980], eax
test eax, eax
jne 0x1000fa71
mov dword [0x1002e984], 1
jmp 0x1000fa71
call fcn.10003e30
push eax
lea ecx, [ebp - 0x1664]
call fcn.10003730
lea eax, [ebp - 0x238]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x1658]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x238]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SystemTimeToTzSpecificLocalTime]
movzx eax, word [ebp - 0x21a]
push eax
movzx eax, word [ebp - 0x21c]
push eax
movzx eax, word [ebp - 0x21e]
push eax
movzx eax, word [ebp - 0x220]
push eax
movzx eax, word [ebp - 0x228]
push eax
movzx eax, word [ebp - 0x222]
push eax
movzx eax, word [ebp - 0x226]
push eax
push str._02d__02d__d___02d:_02d:_02d:_3d
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.1000fcd9
mov ecx, dword [ebp + 0xc]
add esp, 0x28
dec ecx
je 0x1000fa1f
lea eax, [ecx - 1]
inc esi
and ecx, eax
jne 0x1000fa17
lea eax, [ebp - 0x1442]
push eax
lea eax, [ebp - 0x164c]
push eax
push dword [ebp - 0x165c]
lea eax, [ebp - 0x218]
push dword [ebx + 8]
push edi
push dword [ebx + 4]
push dword [esi*4 + 0x1002d018]
push eax
lea eax, [ebp - 0x1664]
push str.DT::_s::__8s___4d___16s___50s___5d___16s__s_n
push eax
call fcn.10003c90
mov esi, dword [ebp - 0x1664]
add esp, 0x28
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [esi - 0x10]
call fcn.10004260
push 0x1002e988
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0x1668]
lea ecx, [ecx - 0x10]
call fcn.10004260
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001028b
mov esp, ebp
pop ebp
ret