Function at 0x4e7dc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x552ce8
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x8870bc]
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 - 0x4c]
call fcn.00453c70
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x60], 0xc
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
call fcn.00454300
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.0040bc30
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp - 0x3c]
mov ebx, eax
or edi, 0xffffffff
mov byte [ebp - 4], 0
mov eax, dword [ecx]
test eax, eax
je 0x4e7e6d
cmp eax, edi
je 0x4e7e7c
mov eax, dword [ebp - 0x3c]
mov ecx, edi
lock xadd dword [eax], ecx
cmp ecx, 1
setne al
test al, al
jne 0x4e7e7c
push 4
push 2
push dword [ebp - 0x3c]
call fcn.004016c0
add esp, 0xc
cmp ebx, 0xffffffff
jne 0x4e7f13
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 5]
cmp ecx, 0xb2
ja case.0x4e7e9d.6
movzx ecx, byte [ecx + 0x4e8010]
jmp dword [ecx*4 + 0x4e8004]
mov esi, 1
jmp 0x4e7f86
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x4c]
call fcn.00454300
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0040bc30
lea ecx, [ebp - 0x34]
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
neg eax
lea ecx, [ebp - 0x50]
sbb esi, esi
add esi, 2
call fcn.004011e0
jmp 0x4e7f86
movaps xmm0, xmmword [0x728b80]
push 0
push eax
lea eax, [ebp - 0x74]
mov dword [ebp - 0x64], 0x728ab0
push str.Got_unexpected_locking_error__llu
push eax
movups xmmword [ebp - 0x74], xmm0
call fcn.0041c240
add esp, 0x10
mov esi, 3
jmp 0x4e7f86
lea eax, [ebp - 0x38]
mov dword [esi + 4], ebx
push eax
mov ecx, esi
call fcn.004e66c0
mov eax, dword [ebp - 0x38]
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 0x4e7f51
push ebx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x4e7f56
mov esi, 3
mov eax, dword [ebp - 0x38]
mov eax, dword [eax]
test eax, eax
je 0x4e7f77
cmp eax, 0xffffffff
je 0x4e7f86
mov eax, dword [ebp - 0x38]
mov ecx, edi
lock xadd dword [eax], ecx
cmp ecx, 1
setne al
test al, al
jne 0x4e7f86
push 4
push 1
push dword [ebp - 0x38]
call fcn.004016c0
add esp, 0xc
mov eax, dword [ebp - 0x48]
mov eax, dword [eax]
test eax, eax
je 0x4e7fa7
cmp eax, 0xffffffff
je 0x4e7fb6
mov eax, dword [ebp - 0x48]
mov ecx, edi
lock xadd dword [eax], ecx
cmp ecx, 1
setne al
test al, al
jne 0x4e7fb6
push 4
push 2
push dword [ebp - 0x48]
call fcn.004016c0
add esp, 0xc
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax]
test eax, eax
je 0x4e7fd5
cmp eax, 0xffffffff
je 0x4e7fe4
mov ecx, dword [ebp - 0x4c]
lock xadd dword [ecx], edi
cmp edi, 1
setne cl
test cl, cl
jne 0x4e7fe4
push 4
push 2
push dword [ebp - 0x4c]
call fcn.004016c0
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.00520afb
mov esp, ebp
pop ebp
ret