Function at 0x4211e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48cb88
mov eax, dword fs:[0]
push eax
sub esp, 0x334
mov eax, dword [0x4c4074]
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 0x4214d8
mov eax, dword [ebx + 0x24]
cmp dword [eax - 0xc], 0
jne 0x4212d7
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x421289
add eax, eax
cmp eax, 0x208
jae 0x4214f4
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 0x421270
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
jmp 0x421290
push 6
push str.Logger
lea ecx, [ebx + 0x24]
call fcn.00407350
push 0x2e
push dword [ebx + 0x24]
call fcn.0046fb32
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x4212c5
mov eax, dword [ebx + 0x24]
sub ecx, eax
sar ecx, 1
test ecx, ecx
jle 0x4212c5
mov eax, dword [eax - 0xc]
sub eax, ecx
push eax
push ecx
lea ecx, [ebx + 0x24]
call fcn.0040c460
push 4
push str..log
lea ecx, [ebx + 0x24]
call fcn.004023a0
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 0x421307
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 0x421314
test ecx, ecx
jmp 0x4214c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 0xb7
jne 0x421395
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x42133b
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 0x4214d8
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.0041ef60
mov esi, eax
lea edi, [ebp - 0x340]
mov ecx, 0x46
rep movsd dword es:[edi], dword [esi]
call fcn.00403d50
mov ecx, eax
test ecx, ecx
je 0x4214f9
jmp 0x4213e1
test eax, eax
jne 0x4214c2
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x4214c2
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 0x421341
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
mov byte [ebp - 4], 0
mov ecx, 0x4a97c8
cmp byte [ebp - 0x22b], 0
mov eax, 0x4a97d0
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.00408580
add esp, 0x20
lea ecx, [ebp - 0x21c]
push 4
push str._r_n_r_n
call fcn.004023a0
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 0x4214d8
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4214d8
cmp dword [ebx + 0x30], 0
je 0x4214d8
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.0046e38e
mov esp, ebp
pop ebp
ret
call fcn.0046ea58
push 0x80004005
call fcn.004024c0
int3