Function at 0x4c8470
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5601a8
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 0x4c8732
mov eax, dword [ebx + 0x24]
cmp dword [eax - 0xc], 0
jne 0x4c8567
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4c8519
add eax, eax
cmp eax, 0x208
jae 0x4c874e
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 0x4c8500
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
jmp 0x4c8520
push 6
push str.Logger
lea ecx, [ebx + 0x24]
call fcn.004143c0
push 0x2e
push dword [ebx + 0x24]
call fcn.0052266c
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x4c8555
mov eax, dword [ebx + 0x24]
sub ecx, eax
sar ecx, 1
test ecx, ecx
jle 0x4c8555
mov eax, dword [eax - 0xc]
sub eax, ecx
push eax
push ecx
lea ecx, [ebx + 0x24]
call fcn.00490da0
push 4
push str..log
lea ecx, [ebx + 0x24]
call fcn.00418250
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 ecx, dword [ebx + 0x30]
mov edi, eax
cmp edi, ecx
je 0x4c8597
mov edx, dword [ebx + 0x2c]
lea ecx, [ebx + 0x2c]
call dword [edx + 4]
mov dword [ebx + 0x30], edi
mov ecx, edi
cmp dword [ebx + 0x30], 0xffffffff
jne 0x4c85a4
test ecx, ecx
jmp 0x4c8720
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4c85c7
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x4c8610
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4c8610
test eax, eax
jne 0x4c871c
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x4c871c
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 0x4c8732
lea eax, [ebx + 0x28]
mov ecx, ebx
push eax
call fcn.004c8760
mov dword [ebp - 4], 0
call fcn.004911f0
mov esi, eax
lea edi, [ebp - 0x340]
mov ecx, 0x46
rep movsd dword es:[edi], dword [esi]
call fcn.00413cd0
mov ecx, eax
test ecx, ecx
je 0x4c8753
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
mov byte [ebp - 4], 0
mov ecx, 0x58cc20
cmp byte [ebp - 0x22b], 0
mov eax, 0x58cc44
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.00419120
add esp, 0x20
lea ecx, [ebp - 0x21c]
push 4
push str._r_n_r_n
call fcn.00418250
lea eax, [ebp - 0x21c]
mov ecx, ebx
push eax
call fcn.004c8760
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 0x4c8732
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4c8732
cmp dword [ebx + 0x30], 0
je 0x4c8732
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.00520c02
mov esp, ebp
pop ebp
ret
call fcn.005212a0
push 0x80004005
call fcn.004143a0
int3