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

Disassembly:
sub esp, 0x230
mov eax, dword [0x59a024]
xor eax, esp
mov dword [esp + 0x22c], eax
push edi
xor edi, edi
cmp dword [0x5a2d88], edi
jne 0x54dad4
call fcn.005493a0
cmp dword [0x5a2e00], edi
je 0x54de2a
cmp dword [0x5a2e04], edi
je 0x54db3c
lea eax, [esp + 8]
push eax
push 0x54be20
call fcn.00549480
push edx
push eax
call fcn.0054c0c0
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x38]
push ecx
movsx ecx, word [esp + 0x40]
push edx
inc eax
push eax
push ecx
push str._04d__02d__02d__02d:_02d:_02d._06d_UTC__
lea edx, [esp + 0x60]
push 0x1ff
push edx
call fcn.0054aea0
add esp, 0x38
mov edi, eax
call fcn.0054b200
test eax, eax
je 0x54db4d
mov ecx, dword [eax + 0xdc]
jmp 0x54db4f
xor ecx, ecx
push ebx
push ebp
push esi
push eax
push ecx
mov eax, 0x1ff
push str._ld__p_:
sub eax, edi
push eax
lea ecx, [esp + edi + 0x4c]
push ecx
call fcn.0054aea0
add edi, eax
mov eax, dword [esp + 0x258]
lea edx, [esp + 0x25c]
push edx
push eax
mov ecx, 0x1ff
sub ecx, edi
lea ebx, [esp + edi + 0x58]
push ecx
push ebx
mov dword [esp + 0x34], ebx
call fcn.0054ad80
mov esi, eax
add esi, edi
add esp, 0x24
cmp esi, 0x1fe
jne 0x54dd32
mov eax, dword [esp + 0x244]
lea edx, [esp + 0x248]
push edx
push eax
call fcn.0054ace0
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x54dd36
lea edx, [eax + 1]
jmp 0x54dbd0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x54dbd0
mov ecx, dword [0x5a2df0]
add ecx, 0x1c
sub eax, edx
push ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x5a2dfc]
test eax, eax
je 0x54dc4a
mov ecx, dword [0x5a2e00]
cmp ecx, 0xfffffffe
jne 0x54dc1f
mov ecx, dword [0x5a2df4]
mov bl, byte [ecx]
push eax
mov byte [ecx], 0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [0x5a2df4]
mov byte [edx], bl
mov ebx, dword [esp + 0x10]
jmp 0x54dc40
push ecx
mov ecx, dword [0x5a2df4]
sub ecx, eax
push ecx
push 1
push eax
call fcn.0040b251
mov edx, dword [0x5a2e00]
push edx
call fcn.004115be
add esp, 0x14
mov eax, dword [0x5a2dfc]
mov dword [0x5a2df4], eax
mov eax, dword [0x5a2e00]
cmp eax, 0xfffffffe
jne 0x54dc70
mov cl, byte [ebx]
lea edx, [esp + 0x3c]
push edx
mov byte [esp + 0x14], cl
mov byte [ebx], 0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov al, byte [esp + 0x10]
mov byte [ebx], al
jmp 0x54dc8d
push eax
push edi
lea ecx, [esp + 0x44]
push 1
push ecx
call fcn.0040b251
mov edx, dword [0x5a2e00]
push edx
call fcn.004115be
add esp, 0x14
mov eax, dword [0x5a2e00]
cmp eax, 0xfffffffe
jne 0x54dcaa
mov bl, byte [esi + ebp]
push ebp
mov byte [esi + ebp], 0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov byte [esi + ebp], bl
jmp 0x54dcc2
push eax
push esi
push 1
push ebp
call fcn.0040b251
mov eax, dword [0x5a2e00]
push eax
call fcn.004115be
add esp, 0x14
mov al, 0xa
test esi, esi
je 0x54dcce
cmp byte [esi + ebp - 1], al
je 0x54dd15
mov byte [esp + 0x10], al
mov eax, dword [0x5a2e00]
mov byte [esp + 0x11], 0
cmp eax, 0xfffffffe
jne 0x54dcf8
lea ecx, [esp + 0x10]
push ecx
mov byte [esp + 0x15], 0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov byte [esp + 0x11], 0
jmp 0x54dd15
push eax
push 1
lea edx, [esp + 0x18]
push 1
push edx
call fcn.0040b251
mov eax, dword [0x5a2e00]
push eax
call fcn.004115be
add esp, 0x14
mov ecx, dword [0x5a2df0]
add ecx, 0x1c
push ecx
call fcn.00551810
push ebp
call fcn.0054acd0
add esp, 8
jmp 0x54de22
test esi, esi
je 0x54dd48
mov al, 0xa
cmp byte [esp + esi + 0x3b], al
je 0x54dd48
mov byte [esp + esi + 0x3c], al
inc esi
mov byte [esp + esi + 0x3c], 0
mov edx, dword [0x5a2df0]
add edx, 0x1c
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x5a2dfc]
test eax, eax
jne 0x54dda7
mov eax, dword [0x5a2e00]
cmp eax, 0xfffffffe
jne 0x54dd88
mov bl, byte [esp + esi + 0x3c]
lea esi, [esp + esi + 0x3c]
lea eax, [esp + 0x3c]
push eax
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov byte [esi], bl
jmp 0x54de10
push eax
push esi
lea ecx, [esp + 0x44]
push 1
push ecx
call fcn.0040b251
mov edx, dword [0x5a2e00]
push edx
call fcn.004115be
add esp, 0x14
jmp 0x54de10
mov edi, dword [0x5a2df4]
lea ecx, [edi + esi]
cmp ecx, dword [0x5a2dec]
jbe 0x54ddf9
mov ecx, dword [0x5a2e00]
cmp ecx, 0xfffffffe
jne 0x54ddd9
mov bl, byte [edi]
push eax
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [0x5a2df4]
mov byte [edx], bl
jmp 0x54ddf3
push ecx
sub edi, eax
push edi
push 1
push eax
call fcn.0040b251
mov eax, dword [0x5a2e00]
push eax
call fcn.004115be
add esp, 0x14
mov edi, dword [0x5a2dfc]
push esi
lea ecx, [esp + 0x40]
push ecx
push edi
call fcn.0040dc50
add esp, 0xc
add edi, esi
mov dword [0x5a2df4], edi
mov edx, dword [0x5a2df0]
add edx, 0x1c
push edx
call fcn.00551810
add esp, 4
call fcn.0054d9d0
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x230]
pop edi
xor ecx, esp
call fcn.00409b58
add esp, 0x230
ret