Function at 0x4e34c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5590bd
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x6f9540]
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 esi, ecx
push esi
lea ecx, [ebp - 0x50]
call fcn.0044c7f0
lea eax, [ebp - 0x38]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x60], 0xc
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
call fcn.0044cea0
push 0
push 0x80
push 1
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 1
push ecx
push 1
push 0xc0000000
mov ecx, eax
call fcn.0040dd20
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp - 0x38]
mov ebx, eax
or edi, 0xffffffff
mov byte [ebp - 4], 0
mov eax, dword [ecx]
test eax, eax
je 0x4e356b
cmp eax, edi
je 0x4e357a
mov eax, dword [ebp - 0x38]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4e357a
push 4
push 2
push dword [ebp - 0x38]
call fcn.00403d20
add esp, 0xc
cmp ebx, 0xffffffff
jne 0x4e3611
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 5]
cmp ecx, 0xb2
ja case.0x4e359b.6
movzx ecx, byte [ecx + 0x4e3708]
jmp dword [ecx*4 + 0x4e36fc]
mov esi, 1
jmp 0x4e3682
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x50]
call fcn.0044cea0
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0040dd20
lea ecx, [ebp - 0x34]
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
neg eax
lea ecx, [ebp - 0x38]
sbb esi, esi
add esi, 2
call fcn.00401a70
jmp 0x4e3682
movaps xmm0, xmmword [0x591920]
push 0
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x14], 0x591860
push str.Got_unexpected_locking_error__llu
push eax
movups xmmword [ebp - 0x24], xmm0
call fcn.00429430
add esp, 0x10
mov esi, 3
jmp 0x4e3682
lea eax, [ebp - 0x3c]
mov dword [esi + 4], ebx
push eax
mov ecx, esi
call fcn.004cee90
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x54]
xor esi, esi
mov dword [ebp - 0x54], 0
push esi
push edx
mov ecx, dword [eax + 0xc]
push dword [eax + 4]
add ecx, eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4e364f
push ebx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x4e3654
mov esi, 3
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax]
test eax, eax
je 0x4e3673
cmp eax, 0xffffffff
je 0x4e3682
mov eax, dword [ebp - 0x3c]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4e3682
push 4
push 1
push dword [ebp - 0x3c]
call fcn.00403d20
add esp, 0xc
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax]
test eax, eax
je 0x4e36a1
cmp eax, 0xffffffff
je 0x4e36b0
mov eax, dword [ebp - 0x4c]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4e36b0
push 4
push 2
push dword [ebp - 0x4c]
call fcn.00403d20
add esp, 0xc
mov eax, dword [ebp - 0x50]
mov eax, dword [eax]
test eax, eax
je 0x4e36cd
cmp eax, 0xffffffff
je 0x4e36dc
mov ecx, dword [ebp - 0x50]
lock xadd dword [ecx], edi
dec edi
setne cl
test cl, cl
jne 0x4e36dc
push 4
push 2
push dword [ebp - 0x50]
call fcn.00403d20
add esp, 0xc
mov eax, esi
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.00524b20
mov esp, ebp
pop ebp
ret