Function at 0x4e76a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53903d
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x59a0a0]
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, dword [ebp + 8]
call fcn.00401980
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4e76ea
push 0x80004005
call fcn.00401b40
mov eax, dword [edx]
mov esi, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4e76ff
lock inc dword [edx + 0x14]
lea eax, [edx + 8]
jmp 0x4e7703
mov ecx, edx
call esi
add eax, 0x10
mov dword [ebp - 0x28], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 4], 0
push eax
push dword [ebp + 0xc]
lea ecx, [ebp - 0x28]
call fcn.00402410
xor eax, eax
xorps xmm0, xmm0
mov word [ebp - 0x20], ax
mov dword [ebp - 0x16], eax
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x20]
push eax
movq qword [ebp - 0x1e], xmm0
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
call fcn.00401980
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4e775a
push 0x80004005
call fcn.00401b40
mov eax, dword [edx]
mov esi, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4e776f
lock inc dword [edx + 0x14]
lea eax, [edx + 8]
jmp 0x4e7773
mov ecx, edx
call esi
add eax, 0x10
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 1
mov edi, dword [ebp - 0x28]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
movzx eax, word [ebp - 0x14]
push eax
movzx eax, word [ebp - 0x16]
push eax
movzx eax, word [ebp - 0x18]
push eax
movzx eax, word [ebp - 0x1a]
push eax
movzx eax, word [ebp - 0x1e]
push eax
movzx eax, word [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push str.__04d__02d__02d__02d:_02d:_02d___d___s_r_n_r_n
push eax
call fcn.004023f0
add esp, 0x28
lea eax, [ebx + 4]
mov dword [ebp - 0x34], eax
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x30], 1
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x24]
cmp dword [esi - 4], 1
mov eax, dword [esi - 0xc]
mov dword [ebp - 0x2c], eax
jle 0x4e77ea
push eax
lea ecx, [ebp - 0x24]
call fcn.00402b70
mov esi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x2c]
push 0
lea ecx, [ebp - 0x24]
add eax, eax
push ecx
push eax
push esi
push dword [ebx + 0x1c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4e7806
call fcn.004054a0
lea eax, [ebx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov eax, esi
lock xadd dword [ecx + 0xc], eax
dec eax
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
jg 0x4e7852
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edi, dword [eax + 4]
mov dword [ebp - 0x2c], edi
mov edi, dword [ebp - 0x28]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4e784d
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call ebx
jmp 0x4e7852
mov ecx, edx
call dword [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], esi
dec esi
test esi, esi
jg 0x4e7883
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4e7881
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call ebx
jmp 0x4e7883
call edx
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.0049aa22
mov esp, ebp
pop ebp
ret