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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x565945
mov eax, dword fs:[0]
push eax
sub esp, 0x13c
push ebx
push esi
push edi
mov eax, dword [0x5d6024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x34], 0
jne 0x4c6098
xor edx, edx
lea esi, [ebx + 0x24]
xor ecx, ecx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x20], ecx
or edi, 0xffffffff
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jne 0x4c5ac3
push ecx
inc ecx
mov dword [ebp - 0x20], ecx
mov ecx, ebx
call fcn.004c6270
test al, al
je 0x4c5bd7
push 0
push 0x80
push 4
push 0
push 3
push 0xc0000000
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x14], eax
cmp eax, dword [ebx + 0x34]
je 0x4c5af4
mov eax, dword [ebx + 0x30]
lea ecx, [ebx + 0x30]
call dword [eax + 4]
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebx + 0x34]
mov dword [ebp - 0x14], eax
cmp ecx, 0xffffffff
jne 0x4c5bc8
call fcn.00409310
test eax, eax
je 0x4c60aa
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
mov eax, str.LOGGER__failed_to_create_LOG_at:
lea ecx, [ebp - 0x10]
test eax, 0xffff0000
jne 0x4c5b44
movzx eax, ax
push eax
call fcn.00415200
jmp 0x4c5b50
push 0x20
push str.LOGGER__failed_to_create_LOG_at:
call fcn.00408e90
mov dword [ebp - 4], 1
lea eax, [ebx + 0x24]
push eax
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x1c]
call fcn.00490af0
add esp, 4
mov byte [ebp - 4], 2
push dword [eax]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [ebp - 4], 1
mov eax, edi
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c5b93
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c5bb4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebx + 0x24]
call fcn.00408be0
mov eax, dword [ebx + 0x30]
lea ecx, [ebx + 0x30]
call dword [eax + 4]
mov ecx, dword [ebx + 0x34]
lea esi, [ebx + 0x24]
test ecx, ecx
jne 0x4c5bda
mov ecx, dword [ebp - 0x20]
jmp 0x4c5aa7
mov ecx, dword [ebx + 0x34]
cmp ecx, 0xffffffff
je 0x4c6082
mov edx, dword [ebp - 0x14]
cmp edx, 0xb7
jne 0x4c5e29
call fcn.00409310
mov ecx, eax
test ecx, ecx
je 0x4c60aa
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 5
mov eax, str.LOGGER__Reusing_LOG_file_at:
lea ecx, [ebp - 0x10]
test eax, 0xffff0000
jne 0x4c5c2d
movzx eax, ax
push eax
call fcn.00415200
jmp 0x4c5c39
push 0x1c
push str.LOGGER__Reusing_LOG_file_at:
call fcn.00408e90
mov dword [ebp - 4], 6
lea edx, [ebp - 0x10]
push esi
lea ecx, [ebp - 0x14]
call fcn.00490af0
add esp, 4
mov byte [ebp - 4], 7
mov edx, eax
push 0x585fe8
lea ecx, [ebp - 0x1c]
call fcn.0047c620
add esp, 4
mov byte [ebp - 4], 8
push dword [eax]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [ebp - 4], 7
mov eax, edi
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c5c8f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 6
mov eax, edi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c5cad
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c5cce
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebx + 0x34]
test eax, eax
je 0x4c5ce2
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebx + 0x34], 0
je 0x4c6098
mov ecx, dword [ebx + 0x2c]
lea edx, [ebp - 0x18]
push 0
push edx
mov edx, dword [ebx + 0x34]
mov eax, dword [ecx - 0xc]
add eax, eax
push eax
push ecx
push edx
call esi
push dword [ebx + 0x34]
call edi
call fcn.004c8d30
mov esi, eax
lea edi, [ebp - 0x148]
mov ecx, 0x47
rep movsd dword es:[edi], dword [esi]
call fcn.00409310
test eax, eax
je 0x4c60aa
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0x14
mov ecx, 0x592b28
cmp byte [ebp - 0x33], 0
mov eax, 0x592b20
cmove eax, ecx
cmp byte [ebp - 0x34], 0
push eax
mov ecx, str.workstation
mov eax, str.server
cmove eax, ecx
push eax
push dword [ebp - 0x13c]
lea eax, [ebp - 0x10]
push dword [ebp - 0x140]
push dword [ebp - 0x144]
push dword [ebp - 0x148]
push str.OS_Version:__u._u._u_SP_u___s____s_
push eax
call fcn.004087c0
add esp, 0x20
lea ecx, [ebp - 0x10]
push 2
push 0x585fe8
call fcn.00418fd0
mov esi, dword [ebp - 0x10]
lea ecx, [ebp - 0x18]
push 0
push ecx
mov eax, dword [esi - 0xc]
add eax, eax
push eax
push esi
push dword [ebx + 0x34]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebx + 0x34]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov dword [ebp - 4], 0xffffffff
or edi, 0xffffffff
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4c5de7
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00409310
test eax, eax
je 0x4c60aa
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0x16
mov eax, str.CPU:
lea ecx, [ebp - 0x10]
test eax, 0xffff0000
jne 0x4c5f4a
movzx eax, ax
push eax
call fcn.00415200
jmp 0x4c5f56
test edx, edx
jne 0x4c6082
test ecx, ecx
je 0x4c6082
call fcn.00409310
mov ecx, eax
test ecx, ecx
je 0x4c60b4
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0xc
mov eax, str.LOGGER__Creating_LOG_file_at:
lea ecx, [ebp - 0x10]
test eax, 0xffff0000
jne 0x4c5e74
movzx eax, ax
push eax
call fcn.00415200
jmp 0x4c5e80
push 0x1d
push str.LOGGER__Creating_LOG_file_at:
call fcn.00408e90
mov dword [ebp - 4], 0xd
lea edx, [ebp - 0x10]
push esi
lea ecx, [ebp - 0x14]
call fcn.00490af0
add esp, 4
mov byte [ebp - 4], 0xe
mov edx, eax
push 0x585fe8
lea ecx, [ebp - 0x1c]
call fcn.0047c620
add esp, 4
mov byte [ebp - 4], 0xf
push dword [eax]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [ebp - 4], 0xe
mov eax, edi
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c5ed6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xd
mov eax, edi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c5ef4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c5f15
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x20]
push 0
push eax
push 2
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0xfeff
push eax
push dword [ebx + 0x34]
mov dword [ebp - 0x20], 2
call esi
push dword [ebx + 0x34]
mov edi, dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
call edi
jmp 0x4c5cee
push 5
push str.CPU:
call fcn.00408e90
mov dword [ebp - 4], 0x17
lea ecx, [ebp - 0x18]
call fcn.004c60c0
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x10]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.00418fd0
mov byte [ebp - 4], 0x17
mov eax, edi
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c5f95
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 2
push 0x585fe8
lea ecx, [ebp - 0x10]
call fcn.00418fd0
mov esi, dword [ebp - 0x10]
lea ecx, [ebp - 0x18]
push 0
push ecx
mov eax, dword [esi - 0xc]
add eax, eax
push eax
push esi
push dword [ebx + 0x34]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebx + 0x34]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4c5fe4
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00409310
test eax, eax
je 0x4c60aa
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0x1b
mov eax, 0x585fe8
lea ecx, [ebp - 0x10]
test eax, 0xffff0000
jne 0x4c601f
movzx eax, ax
push eax
call fcn.00415200
jmp 0x4c602b
push 2
push 0x585fe8
call fcn.00408e90
mov dword [ebp - 4], 0x1c
lea ecx, [ebp - 0x18]
mov esi, dword [ebp - 0x10]
push 0
push ecx
mov eax, dword [esi - 0xc]
add eax, eax
push eax
push esi
push dword [ebx + 0x34]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebx + 0x34]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x4c6098
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebx + 0x34], 0
je 0x4c6098
mov eax, dword [ebx + 0x30]
lea ecx, [ebx + 0x30]
call dword [eax + 4]
mov dword [ebx + 0x34], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00408fe0
push 0x80004005
call fcn.00408fe0
int3