Function at 0x409af0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48819e
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x1a4
mov eax, dword [0x4ae6e0]
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 dword [ebp - 0x10], esp
mov dword [ebp - 0x194], ecx
mov dword [ebp - 4], 0
push 4
lea ecx, [ebp - 0x11c]
call fcn.00403a30
lea ecx, [ebp - 0x11c]
call fcn.00407660
mov byte [ebp - 4], 1
push 4
lea ecx, [ebp - 0x120]
call fcn.00403a30
lea ecx, [ebp - 0x120]
call fcn.00407660
mov byte [ebp - 4], 2
push 4
lea ecx, [ebp - 0x124]
call fcn.00403a30
lea ecx, [ebp - 0x124]
call fcn.00407660
mov byte [ebp - 4], 3
mov byte [ebp - 0x118], 0
push 0x103
push 0
lea eax, [ebp - 0x117]
push eax
call fcn.0043f9d0
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x118]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x409bd9
push str.Failed_to_get_module_file_name
lea ecx, [ebp - 0x1a8]
call fcn.00403960
push 0x4aacf8
lea edx, [ebp - 0x1a8]
push edx
call fcn.004403e5
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x11c]
call fcn.00406de0
push 0x5c
lea ecx, [ebp - 0x11c]
call fcn.00405a40
mov dword [ebp - 0x160], eax
cmp dword [ebp - 0x160], 0xffffffff
je 0x409c57
mov ecx, dword [ebp - 0x160]
push ecx
lea edx, [ebp - 0x18c]
push edx
lea ecx, [ebp - 0x11c]
call fcn.00405bf0
mov dword [ebp - 0x190], eax
mov eax, dword [ebp - 0x190]
mov dword [ebp - 0x184], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x184]
push ecx
lea ecx, [ebp - 0x11c]
call fcn.004068d0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18c]
call fcn.004074e0
mov edx, dword [ebp - 0x11c]
push edx
push str._slogs
lea eax, [ebp - 0x120]
push eax
call fcn.004062a0
add esp, 0xc
lea ecx, [ebp - 0x120]
call fcn.004022a0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x409cc2
push 0
lea ecx, [ebp - 0x120]
call fcn.004022a0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x409cc2
push str.Failed_to_create_log_directory
lea ecx, [ebp - 0x1b4]
call fcn.00403960
push 0x4aacf8
lea ecx, [ebp - 0x1b4]
push ecx
call fcn.004403e5
lea edx, [ebp - 0x138]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 4
lea ecx, [ebp - 0x128]
call fcn.00403a30
lea ecx, [ebp - 0x128]
call fcn.00407660
mov byte [ebp - 4], 5
movzx eax, word [ebp - 0x12c]
push eax
movzx ecx, word [ebp - 0x12e]
push ecx
movzx edx, word [ebp - 0x130]
push edx
movzx eax, word [ebp - 0x132]
push eax
movzx ecx, word [ebp - 0x136]
push ecx
movzx edx, word [ebp - 0x138]
push edx
push str.__04d__02d__02d__02d:_02d:_02d_
lea eax, [ebp - 0x128]
push eax
call fcn.004062a0
add esp, 0x20
movzx ecx, word [ebp - 0x132]
push ecx
movzx edx, word [ebp - 0x136]
push edx
movzx eax, word [ebp - 0x138]
push eax
mov ecx, dword [ebp - 0x120]
push ecx
push str._slog__04d__02d__02d.txt
lea edx, [ebp - 0x124]
push edx
call fcn.004062a0
add esp, 0x18
push 0xc
lea ecx, [ebp - 0x144]
call fcn.00403a30
push 0
mov eax, dword [ebp - 0x194]
add eax, 0x574
push eax
lea ecx, [ebp - 0x144]
call fcn.00431c8c
mov dword [ebp - 0x198], eax
mov byte [ebp - 4], 6
push 0xffffffffffffffff
lea ecx, [ebp - 0x144]
call fcn.00431cc2
push 0x18
lea ecx, [ebp - 0x15c]
call fcn.00403a30
push 0x7001
lea ecx, [ebp - 0x124]
call fcn.004022a0
push eax
lea ecx, [ebp - 0x15c]
call fcn.004313f9
mov dword [ebp - 0x19c], eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x15c]
call fcn.00416dc0
push 0x49c834
lea ecx, [ebp - 0x128]
push ecx
lea edx, [ebp - 0x168]
push edx
call fcn.00406780
add esp, 0xc
mov dword [ebp - 0x170], eax
mov eax, dword [ebp - 0x170]
mov dword [ebp - 0x174], eax
mov byte [ebp - 4], 8
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x174]
push edx
lea eax, [ebp - 0x16c]
push eax
call fcn.00405c70
add esp, 0xc
mov dword [ebp - 0x17c], eax
mov ecx, dword [ebp - 0x17c]
mov dword [ebp - 0x164], ecx
mov byte [ebp - 4], 9
push 0x49c830
mov edx, dword [ebp - 0x164]
push edx
lea eax, [ebp - 0x180]
push eax
call fcn.00406780
add esp, 0xc
mov dword [ebp - 0x178], eax
mov ecx, dword [ebp - 0x178]
mov dword [ebp - 0x188], ecx
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x188]
call fcn.004022a0
push eax
lea ecx, [ebp - 0x15c]
call fcn.00431aa0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x180]
call fcn.004074e0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x16c]
call fcn.004074e0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x168]
call fcn.004074e0
lea ecx, [ebp - 0x15c]
call fcn.00431595
lea ecx, [ebp - 0x144]
call fcn.00431cda
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x15c]
call fcn.0043144c
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x144]
call fcn.00416de0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x128]
call fcn.004074e0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x124]
call fcn.004074e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x120]
call fcn.004074e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x11c]
call fcn.004074e0
jmp 0x409f2b
mov dword [ebp - 4], 0xffffffff
jmp 0x409f3b
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.0043c12e
mov esp, ebp
pop ebp
ret 4