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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x964
mov eax, dword [0x4e500c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax], 0xffffffff
je 0x427463
mov ecx, dword [ebp + 8]
cmp dword [ecx], 0
jne 0x427473
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 4]
test eax, eax
jne 0x427473
jmp 0x4276de
push 0x20a
push 0
lea ecx, [ebp - 0x210]
push ecx
call fcn.00487cb0
add esp, 0xc
push 0x414
push 0
lea edx, [ebp - 0x930]
push edx
call fcn.00487cb0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x960], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 0x954], eax
mov ecx, dword [ebp - 0x954]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0xffffffffffffffff
push 0x105
lea eax, [ebp - 0x210]
push eax
call fcn.00425770
add esp, 0x14
mov dword [ebp - 0x964], eax
mov dword [ebp - 0x954], 0
cmp dword [0x4e7fb8], 0
jne 0x4274f9
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [0x4e7fb8], eax
lea ecx, [ebp - 0x210]
push ecx
push 0x4d7d64
push str.__s___s_n
lea edx, [ebp - 0x930]
push edx
call fcn.00427800
add esp, 0x10
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 4]
test ecx, ecx
je 0x427531
lea edx, [ebp - 0x930]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp + 8]
cmp dword [eax], 0xffffffff
je 0x4276d1
mov ecx, dword [ebp + 8]
cmp dword [ecx], 0
je 0x4276d1
xor edx, edx
mov dword [ebp - 0x940], edx
mov dword [ebp - 0x93c], edx
mov dword [ebp - 0x938], edx
mov dword [ebp - 0x934], edx
mov dword [ebp - 0x944], 0
push 0x30c
push 0
lea eax, [ebp - 0x51c]
push eax
call fcn.00487cb0
add esp, 0xc
mov dword [ebp - 0x950], 0
lea ecx, [ebp - 0x940]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea edx, [ebp - 0x210]
push edx
movzx eax, word [ebp - 0x934]
push eax
movzx ecx, word [ebp - 0x936]
push ecx
movzx edx, word [ebp - 0x938]
push edx
movzx eax, word [ebp - 0x93a]
push eax
movzx ecx, word [ebp - 0x93e]
push ecx
movzx edx, word [ebp - 0x940]
push edx
push 0x4d7e7c
mov eax, dword [0x4e7fb8]
push eax
push str._u:__s___04u__02u__02u__02u:_02u:_02u__s_r_n
lea ecx, [ebp - 0x930]
push ecx
call fcn.00427800
add esp, 0x2c
push 0
push 0
push 0x30c
lea edx, [ebp - 0x51c]
push edx
push 0xffffffffffffffff
lea eax, [ebp - 0x930]
push eax
push 0
push 0x3a4
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x950], eax
cmp dword [ebp - 0x950], 0
jne 0x42764e
push 0
push 0
push 0x30c
lea ecx, [ebp - 0x51c]
push ecx
push 0xffffffffffffffff
lea edx, [ebp - 0x930]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x950], eax
cmp dword [ebp - 0x950], 0
je 0x4276d1
lea eax, [ebp - 0x51c]
mov dword [ebp - 0x94c], eax
mov ecx, dword [ebp - 0x94c]
add ecx, 1
mov dword [ebp - 0x958], ecx
mov edx, dword [ebp - 0x94c]
mov al, byte [edx]
mov byte [ebp - 0x945], al
add dword [ebp - 0x94c], 1
cmp byte [ebp - 0x945], 0
jne 0x427672
mov ecx, dword [ebp - 0x94c]
sub ecx, dword [ebp - 0x958]
mov dword [ebp - 0x95c], ecx
push 0
lea edx, [ebp - 0x944]
push edx
mov eax, dword [ebp - 0x95c]
push eax
lea ecx, [ebp - 0x51c]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov eax, dword [ebp - 0x960]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043a792
mov esp, ebp
pop ebp
ret