Function at 0x41e7a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48a7c8
mov eax, dword fs:[0]
push eax
sub esp, 0x334
mov eax, dword [0x4c0074]
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 0x41ea91
mov eax, dword [ebx + 0x24]
cmp dword [eax - 0xc], 0
jne 0x41e897
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x41e849
add eax, eax
cmp eax, 0x208
jae 0x41eaad
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 0x41e830
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
jmp 0x41e850
push 6
push str.Logger
lea ecx, [ebx + 0x24]
call fcn.00403ae0
push 0x2e
push dword [ebx + 0x24]
call fcn.0046df08
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x41e885
mov eax, dword [ebx + 0x24]
sub ecx, eax
sar ecx, 1
test ecx, ecx
jle 0x41e885
mov eax, dword [eax - 0xc]
sub eax, ecx
push eax
push ecx
lea ecx, [ebx + 0x24]
call fcn.00408270
push 4
push str..log
lea ecx, [ebx + 0x24]
call fcn.00402280
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 0x41e8c3
mov edx, dword [ebx + 0x2c]
lea ecx, [ebx + 0x2c]
call dword [edx + 4]
mov dword [ebx + 0x30], edi
cmp dword [ebx + 0x30], 0xffffffff
je 0x41ea7b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 0xb7
jne 0x41e94e
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x41e8f4
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
cmp dword [ebx + 0x30], 0
je 0x41ea91
mov ecx, dword [ebx + 0x28]
lea edx, [ebp - 0x224]
push 0
push edx
mov edx, dword [ebx + 0x30]
mov eax, dword [ecx - 0xc]
add eax, eax
push eax
push ecx
push edx
call edi
push dword [ebx + 0x30]
call esi
mov dword [ebp - 4], 0
call fcn.0041cb60
mov esi, eax
lea edi, [ebp - 0x340]
mov ecx, 0x46
rep movsd dword es:[edi], dword [esi]
call fcn.00403f70
mov ecx, eax
test ecx, ecx
je 0x41eab2
jmp 0x41e99a
test eax, eax
jne 0x41ea7b
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x41ea7b
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 edi
push dword [ebx + 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
call esi
jmp 0x41e8fa
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
mov byte [ebp - 4], 0
mov ecx, 0x4a5ac8
cmp byte [ebp - 0x22b], 0
mov eax, 0x4a5ad0
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.00403590
add esp, 0x20
lea ecx, [ebp - 0x21c]
push 4
push str._r_n_r_n
call fcn.00402280
mov esi, dword [ebp - 0x21c]
lea ecx, [ebp - 0x224]
push 0
push ecx
mov eax, dword [esi - 0xc]
add eax, eax
push eax
push esi
push dword [ebx + 0x30]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebx + 0x30]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov eax, 1
mov dword [ebp - 0x220], eax
and eax, 0xfffffffe
mov dword [ebp - 0x220], eax
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41ea91
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x41ea91
cmp dword [ebx + 0x30], 0
je 0x41ea91
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.0046c8db
mov esp, ebp
pop ebp
ret
call fcn.0046cf83
push 0x80004005
call fcn.004023a0
int3