Function at 0x4c8820
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5604a8
mov eax, dword fs:[0]
push eax
sub esp, 0x334
mov eax, dword [0x5d0074]
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 ebx, ecx
mov dword [ebp - 0x220], 0
cmp dword [ebx + 0x30], 0
jne 0x4c8adb
mov eax, dword [ebx + 0x24]
cmp dword [eax - 0xc], 0
jne 0x4c8917
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4c88c9
add eax, eax
cmp eax, 0x208
jae 0x4c8af7
xor ecx, ecx
mov word [ebp + eax - 0x218], cx
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c88b0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
jmp 0x4c88d0
push 6
push str.Logger
lea ecx, [ebx + 0x24]
call fcn.004126c0
push 0x2e
push dword [ebx + 0x24]
call fcn.00522f4c
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x4c8905
mov eax, dword [ebx + 0x24]
sub ecx, eax
sar ecx, 1
test ecx, ecx
jle 0x4c8905
mov eax, dword [eax - 0xc]
sub eax, ecx
push eax
push ecx
lea ecx, [ebx + 0x24]
call fcn.00490d20
push 4
push str..log
lea ecx, [ebx + 0x24]
call fcn.00416df0
mov eax, dword [ebx + 0x24]
push 0
push 0x80
push 4
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, dword [ebx + 0x30]
je 0x4c8943
mov edx, dword [ebx + 0x2c]
lea ecx, [ebx + 0x2c]
call dword [edx + 4]
mov dword [ebx + 0x30], edi
cmp dword [ebx + 0x30], 0xffffffff
je 0x4c8ac5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4c8970
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x4c89b9
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4c89b9
test eax, eax
jne 0x4c8ac5
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x4c8ac5
push 0
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x224], 0xfeff
push ecx
push 2
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x21c], 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebx + 0x30]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
cmp dword [ebx + 0x30], 0
je 0x4c8adb
lea eax, [ebx + 0x28]
mov ecx, ebx
push eax
call fcn.004c8b10
mov dword [ebp - 4], 0
call fcn.00490ee0
mov esi, eax
lea edi, [ebp - 0x340]
mov ecx, 0x46
rep movsd dword es:[edi], dword [esi]
call fcn.00411fd0
mov ecx, eax
test ecx, ecx
je 0x4c8afc
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
mov byte [ebp - 4], 0
mov ecx, 0x58ca68
cmp byte [ebp - 0x22b], 0
mov eax, 0x58ca60
mov dword [ebp - 0x220], 1
cmove eax, ecx
cmp byte [ebp - 0x22c], 0
push eax
mov ecx, str.workstation
mov eax, str.server
cmove eax, ecx
push eax
push dword [ebp - 0x334]
lea eax, [ebp - 0x21c]
push dword [ebp - 0x338]
push dword [ebp - 0x33c]
push dword [ebp - 0x340]
push str.OS_Version:__u._u._u_SP_u___s____s_
push eax
call fcn.00417cc0
add esp, 0x20
lea ecx, [ebp - 0x21c]
push 4
push str._r_n_r_n
call fcn.00416df0
lea eax, [ebp - 0x21c]
mov ecx, ebx
push eax
call fcn.004c8b10
mov eax, 1
mov dword [ebp - 0x220], eax
and eax, 0xfffffffe
mov dword [ebp - 0x220], eax
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x21c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c8adb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4c8adb
cmp dword [ebx + 0x30], 0
je 0x4c8adb
mov eax, dword [ebx + 0x2c]
lea ecx, [ebx + 0x2c]
call dword [eax + 4]
mov dword [ebx + 0x30], 0
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.005214e1
mov esp, ebp
pop ebp
ret
call fcn.00521d89
push 0x80004005
call fcn.004126a0
int3