Function at 0x4e32b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x558f4d
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x6fb4c0]
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.0044c5c0
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.0044cc70
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.0040d690
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 0x4e335b
cmp eax, edi
je 0x4e336a
mov eax, dword [ebp - 0x38]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4e336a
push 4
push 2
push dword [ebp - 0x38]
call fcn.00403690
add esp, 0xc
cmp ebx, 0xffffffff
jne 0x4e3401
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 5]
cmp ecx, 0xb2
ja case.0x4e338b.6
movzx ecx, byte [ecx + 0x4e34f8]
jmp dword [ecx*4 + 0x4e34ec]
mov esi, 1
jmp 0x4e3472
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x50]
call fcn.0044cc70
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0040d690
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 0x4e3472
movaps xmm0, xmmword [0x591ac0]
push 0
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x14], 0x5919f8
push str.Got_unexpected_locking_error__llu
push eax
movups xmmword [ebp - 0x24], xmm0
call fcn.00429410
add esp, 0x10
mov esi, 3
jmp 0x4e3472
lea eax, [ebp - 0x3c]
mov dword [esi + 4], ebx
push eax
mov ecx, esi
call fcn.004cec70
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 0x4e343f
push ebx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x4e3444
mov esi, 3
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax]
test eax, eax
je 0x4e3463
cmp eax, 0xffffffff
je 0x4e3472
mov eax, dword [ebp - 0x3c]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4e3472
push 4
push 1
push dword [ebp - 0x3c]
call fcn.00403690
add esp, 0xc
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax]
test eax, eax
je 0x4e3491
cmp eax, 0xffffffff
je 0x4e34a0
mov eax, dword [ebp - 0x4c]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4e34a0
push 4
push 2
push dword [ebp - 0x4c]
call fcn.00403690
add esp, 0xc
mov eax, dword [ebp - 0x50]
mov eax, dword [eax]
test eax, eax
je 0x4e34bd
cmp eax, 0xffffffff
je 0x4e34cc
mov ecx, dword [ebp - 0x50]
lock xadd dword [ecx], edi
dec edi
setne cl
test cl, cl
jne 0x4e34cc
push 4
push 2
push dword [ebp - 0x50]
call fcn.00403690
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.00524900
mov esp, ebp
pop ebp
ret