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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2f4
mov eax, dword [0x4f2500]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4f70d4]
mov ecx, dword [eax]
push ebx
push esi
push edi
push 0x4f70d4
call ecx
mov eax, dword [0x4f7100]
mov dword [ebp - 0x2f0], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403d86
sub eax, edx
sar eax, 1
lea esi, [eax + 1]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00420929
add esp, 4
add esi, esi
push esi
mov edi, eax
push 0
push edi
call fcn.004276b0
add esp, 0xc
shr esi, 1
je 0x403dde
cmp esi, 0x7fffffff
ja 0x403dde
mov edx, dword [0x4f7100]
mov eax, esi
mov ecx, edi
call fcn.004037d0
push edi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push edi
call esi
test eax, eax
jne 0x403dfa
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edi
call esi
test eax, eax
je 0x403fb4
xor eax, eax
lea ecx, [ebp - 0x2e8]
push ecx
mov word [ebp - 0x2e8], ax
mov dword [ebp - 0x2e6], eax
mov dword [ebp - 0x2e2], eax
mov dword [ebp - 0x2de], eax
mov word [ebp - 0x2da], ax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
xor edx, edx
push 0xc6
push edx
lea eax, [ebp - 0xce]
push eax
mov word [ebp - 0xd0], dx
call fcn.004276b0
movzx ecx, word [ebp - 0x2dc]
movzx edx, word [ebp - 0x2de]
movzx eax, word [ebp - 0x2e0]
add esp, 0xc
push ecx
movzx ecx, word [ebp - 0x2e2]
push edx
movzx edx, word [ebp - 0x2e6]
push eax
movzx eax, word [ebp - 0x2e8]
push ecx
push edx
push eax
push 0x4cb580
mov eax, 0x400
lea ebx, [ebp - 0xd0]
call fcn.00403030
mov ecx, dword [0x4f7100]
add esp, 0x1c
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edx, dword [0x4f7100]
push 0x4cb5c0
mov esi, eax
push edx
lea eax, [ebp - 0x2ec]
push eax
mov dword [ebp - 0x2ec], 0
call fcn.00423812
mov eax, dword [ebp - 0x2ec]
add esp, 0xc
test eax, eax
je 0x403fb4
cmp dword [0x4f7104], 0
mov dword [ebp - 0x2f0], 1
je 0x403f64
cmp esi, 0xffffffff
jne 0x403f4c
push 0x208
lea ecx, [ebp - 0x2d8]
push 0
push ecx
call fcn.004276b0
add esp, 0xc
push 0x208
lea edx, [ebp - 0x2d8]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x2d8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, dword [ebp - 0x2ec]
push eax
mov ecx, ebx
push ecx
push str._r_n_Start_Log:_s__nProcess_Information_nPID:__d_nEXE:__s_n_n_n
push edx
call fcn.0042398b
add esp, 0x14
jmp 0x403f5a
push 0x4cb57c
push eax
call fcn.0042398b
add esp, 8
mov dword [0x4f7104], 0
mov ebx, dword [0x4f70f4]
sub ebx, dword [0x4f70f0]
xor esi, esi
sar ebx, 2
test ebx, ebx
jle 0x403f96
mov eax, dword [0x4f70f0]
mov ecx, dword [eax + esi*4]
mov edx, dword [ebp - 0x2ec]
push ecx
push edx
call fcn.0042398b
inc esi
add esp, 8
cmp esi, ebx
jl 0x403f79
mov eax, dword [ebp - 0x2ec]
push eax
call fcn.00423bc1
mov ecx, dword [ebp - 0x2ec]
add esp, 4
push ecx
call fcn.00424c3b
add esp, 4
test edi, edi
je 0x403fc1
push edi
call fcn.00423305
add esp, 4
mov edx, dword [0x4f70d4]
mov eax, dword [edx]
push 0x4f70d4
call eax
mov ecx, dword [0x4f70f4]
mov edx, dword [0x4f70f0]
push ecx
push edx
lea eax, [ebp - 0x2ec]
push eax
push 0x4f70f0
call fcn.00404250
mov ecx, dword [0x4f70d4]
mov edx, dword [ecx + 4]
push 0x4f70d4
call edx
mov eax, dword [0x4f70d4]
mov ecx, dword [eax + 4]
push 0x4f70d4
call ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x2f0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042292e
mov esp, ebp
pop ebp
ret