Function at 0x4028c0
Capabilities:
Check mutex on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404131
mov eax, dword fs:[0]
push eax
sub esp, 0x4d0
mov eax, dword [0x408040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x118], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x4d0], eax
je 0x402c6f
push 0
push 0
push 0x100
lea eax, [ebp - 0x324]
push eax
push 0
push 0
push 0
lea esi, [edi + 4]
push 0
push esi
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__splitpath_s]
add esp, 0x24
lea eax, [ebp - 0x324]
push eax
push str.Access_File__s
lea eax, [ebp - 0x42c]
push 0x104
push eax
call fcn.00401bd0
add esp, 0x10
lea eax, [ebp - 0x42c]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push 0xffffffffffffffff
push eax
mov dword [ebp - 0x4d8], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, dword [sym.imp.KERNEL32.dll_OpenFile]
lea eax, [ebp - 0x4c4]
push 0x21
push eax
push esi
call ebx
mov dword [ebp - 0x4c8], eax
cmp eax, 0xffffffff
jne 0x4029a6
push 0x1021
lea eax, [ebp - 0x4c4]
push eax
push esi
call ebx
mov dword [ebp - 0x4c8], eax
cmp eax, 0xffffffff
je 0x402c5b
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x43c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x104
lea eax, [ebp - 0x11c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x224]
push 0x104
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
add esp, 0xc
test byte [edi + 0x108], 1
je 0x402a5c
movzx eax, word [ebp - 0x430]
push eax
movzx eax, word [ebp - 0x432]
push eax
movzx eax, word [ebp - 0x434]
push eax
movzx eax, word [ebp - 0x43c]
push eax
movzx eax, word [ebp - 0x43a]
push eax
movzx eax, word [ebp - 0x436]
push eax
push str._.2d__.2d__.2d___.2d:_.2d:_.2d
lea eax, [ebp - 0x224]
push 0x104
push eax
call fcn.00401bd0
add esp, 0x24
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x11c]
push 0x104
push eax
call ebx
add esp, 0xc
test byte [edi + 0x108], 2
je 0x402b04
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str._08X__08X
lea eax, [ebp - 0x224]
push 0x104
push eax
call fcn.00401bd0
add esp, 0x14
lea ecx, [ebp - 0x4cc]
call dword [sym.imp.mfc140.dll_Ordinal_316]
lea eax, [ebp - 0x4cc]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x224]
push eax
lea ecx, [edi + 0x11c]
call dword [sym.imp.mfc140.dll_Ordinal_8468]
test eax, eax
je 0x402ae0
push dword [ebp - 0x4cc]
lea eax, [ebp - 0x224]
push str.__17s
push 0x104
push eax
call fcn.00401bd0
add esp, 0x10
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x11c]
push 0x104
push eax
call ebx
add esp, 0xc
lea ecx, [ebp - 0x4cc]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
xor esi, esi
cmp dword [edi + 0x10c], esi
jbe 0x402b2f
nop
push 0x405e78
lea eax, [ebp - 0x11c]
push 0x104
push eax
call ebx
inc esi
add esp, 0xc
cmp esi, dword [edi + 0x10c]
jb 0x402b10
push dword [ebp - 0x4d0]
lea eax, [ebp - 0x11c]
push 0x104
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x11c]
push 0x405e7c
push 0x104
push eax
call ebx
mov esi, dword [edi + 0x110]
add esp, 0xc
cmp dword [ebp + 0x10], 0
je 0x402ba8
test esi, esi
je 0x402c4e
cmp dword [edi + 0x114], 0
je 0x402c4e
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402b82
push 0
lea eax, [ebp - 0x4d4]
sub ecx, edx
push eax
push ecx
push esi
mov esi, dword [ebp - 0x4c8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x402c54
test esi, esi
je 0x402c8d
cmp dword [edi + 0x114], 0
je 0x402c8d
lea ecx, [ebp - 0x11c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402bc6
sub ecx, edx
mov edx, esi
lea eax, [edx + 1]
mov dword [ebp - 0x4d0], eax
nop word [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x402be0
sub edx, dword [ebp - 0x4d0]
add ecx, edx
mov edx, dword [edi + 0x114]
lea eax, [edx - 1]
cmp ecx, eax
jbe 0x402c40
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402c01
push 0
lea eax, [ebp - 0x4d4]
sub ecx, edx
push eax
push ecx
push esi
mov esi, dword [ebp - 0x4c8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x11c]
push eax
push dword [edi + 0x114]
push dword [edi + 0x110]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
add esp, 0xc
jmp 0x402c54
lea eax, [ebp - 0x11c]
push eax
push edx
push esi
call ebx
add esp, 0xc
mov esi, dword [ebp - 0x4c8]
push esi
call dword [sym.imp.KERNEL32.dll__lclose]
mov esi, dword [ebp - 0x4d8]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00403124
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [ebp - 0x11c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402c96
mov esi, dword [ebp - 0x4c8]
lea eax, [ebp - 0x4d4]
push 0
push eax
sub ecx, edx
lea eax, [ebp - 0x11c]
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x402c54