Function at 0x467f4c
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x2838
call fcn.004a98b0
mov eax, dword [0x4dd52c]
mov dword [ebp - 4], eax
push ebx
xor eax, eax
mov edx, 0x81
push esi
push edi
xor ebx, ebx
mov word [ebp - 0x20c], bx
mov ecx, edx
lea edi, [ebp - 0x20a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov esi, dword [ebp + 8]
mov word [ebp - 0x414], bx
mov ecx, edx
lea edi, [ebp - 0x412]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [ebp - 0x61c], bx
mov ecx, edx
lea edi, [ebp - 0x61a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov word [ebp - 0x824], bx
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x822]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x1e7a8]
xor edx, edx
mov ecx, 0x3e8
div ecx
mov word [ebp - 0x1824], bx
add ecx, 0x17
lea edi, [ebp - 0x1822]
push 0x104
mov dword [ebp - 0x2838], eax
xor eax, eax
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x61c]
push eax
push 0xb4
push esi
call fcn.004a5ad4
lea eax, [ebp - 0x20c]
push eax
push 1
push ebx
push 0x8023
push ebx
call sub.SHELL32.dll_SHGetFolderPathW
lea eax, [ebp - 0x61c]
push 0x405a00
push eax
call dword [sym.imp.msvcrt.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
jne 0x468050
push 0x10
lea eax, [ebp - 0x61c]
push 0x40c400
push eax
call dword [sym.imp.msvcrt.dll_wcsncpy]
add esp, 0xc
mov edi, dword [sym.imp.msvcrt.dll_wcscat]
mov ebx, 0x405c38
lea eax, [ebp - 0x20c]
push ebx
push eax
call edi
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push eax
call edi
lea eax, [ebp - 0x20c]
push ebx
push eax
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
call ebx
cmp eax, 0xffffffff
jne 0x4680a5
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp - 0x20c]
push 0x40d8f0
push eax
call edi
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push eax
call ebx
cmp eax, 0xffffffff
jne 0x4680d2
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
jne 0x468108
push ebx
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.msvcrt.dll_wcsncpy]
add esp, 0xc
lea eax, [ebp - 0x414]
push 0x40e530
push eax
call edi
cmp dword [esi + 0x1dfa8], 1
pop ecx
pop ecx
mov ebx, 0x800
jne 0x4683d6
mov eax, dword [esi + 0x1dfac]
test eax, eax
je 0x4681e7
cmp eax, 3
jb 0x4681e7
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea eax, [ebp - 0x2834]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
xor eax, eax
push 0x40d8bc
mov ecx, 0x400
lea edi, [ebp - 0x1824]
rep stosd dword es:[edi], eax
movzx eax, word [ebp - 0x2826]
push 0x40e508
push eax
movzx eax, word [ebp - 0x2828]
push eax
movzx eax, word [ebp - 0x282a]
push eax
movzx eax, word [ebp - 0x282c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x4065a0
lea eax, [ebp - 0x1824]
push ebx
push eax
call fcn.00431bde
add esp, 0x2c
cmp word [esi + 0x1dfa0], 1
lea eax, [ebp - 0x1824]
push eax
jne 0x4681c9
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x4681e7
lea edi, [esi + 0x1dfa4]
push 0x4060a8
push dword [edi]
call dword [sym.imp.msvcrt.dll_fwprintf]
push dword [edi]
call dword [sym.imp.msvcrt.dll_fflush]
add esp, 0x10
cmp dword [esi + 0x1dfa8], 1
jne 0x4683d6
mov eax, dword [esi + 0x1dfac]
test eax, eax
je 0x46830c
cmp eax, 3
jb 0x46830c
and word [ebp - 0x2824], 0
xor eax, eax
mov ecx, 0x3ff
lea edi, [ebp - 0x2822]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x414]
push eax
push 0x40d87c
lea eax, [ebp - 0x2824]
push ebx
push eax
call fcn.00431bde
add esp, 0x10
cmp dword [esi + 0x1dfa8], 1
jne 0x4683d6
mov eax, dword [esi + 0x1dfac]
test eax, eax
je 0x46830c
cmp eax, 3
jb 0x46830c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea eax, [ebp - 0x2834]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
xor eax, eax
mov ecx, 0x400
lea edi, [ebp - 0x1824]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x2824]
push eax
movzx eax, word [ebp - 0x2826]
push 0x40e508
push eax
movzx eax, word [ebp - 0x2828]
push eax
movzx eax, word [ebp - 0x282a]
push eax
movzx eax, word [ebp - 0x282c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x4065a0
lea eax, [ebp - 0x1824]
push ebx
push eax
call fcn.00431bde
add esp, 0x2c
cmp word [esi + 0x1dfa0], 1
lea eax, [ebp - 0x1824]
push eax
jne 0x4682ee
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x46830c
lea edi, [esi + 0x1dfa4]
push 0x4060a8
push dword [edi]
call dword [sym.imp.msvcrt.dll_fwprintf]
push dword [edi]
call dword [sym.imp.msvcrt.dll_fflush]
add esp, 0x10
cmp dword [esi + 0x1dfa8], 1
jne 0x4683d6
mov eax, dword [esi + 0x1dfac]
test eax, eax
je 0x4683d6
cmp eax, 3
jb 0x4683d6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea eax, [ebp - 0x2834]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
xor eax, eax
push 0x40e4f4
mov ecx, 0x400
lea edi, [ebp - 0x1824]
rep stosd dword es:[edi], eax
movzx eax, word [ebp - 0x2826]
push 0x40e508
push eax
movzx eax, word [ebp - 0x2828]
push eax
movzx eax, word [ebp - 0x282a]
push eax
movzx eax, word [ebp - 0x282c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x4065a0
lea eax, [ebp - 0x1824]
push ebx
push eax
call fcn.00431bde
add esp, 0x2c
cmp word [esi + 0x1dfa0], 1
lea eax, [ebp - 0x1824]
push eax
jne 0x4683b8
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x4683d6
lea edi, [esi + 0x1dfa4]
push 0x4060a8
push dword [edi]
call dword [sym.imp.msvcrt.dll_fwprintf]
push dword [edi]
call dword [sym.imp.msvcrt.dll_fflush]
add esp, 0x10
push dword [ebp - 0x2838]
lea eax, [esi + 0x1e7ac]
push eax
lea eax, [ebp - 0x824]
push 0x40e4e8
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0x10
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x824]
push eax
push 0x40e4bc
push 0x4053f4
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp dword [esi + 0x1dfa8], 1
jne 0x46853b
mov eax, dword [esi + 0x1dfac]
test eax, eax
je 0x46853b
cmp eax, 3
jb 0x46853b
and word [ebp - 0x2824], 0
xor eax, eax
mov ecx, 0x3ff
lea edi, [ebp - 0x2822]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x824]
push eax
push 0x40e48c
lea eax, [ebp - 0x2824]
push ebx
push eax
call fcn.00431bde
add esp, 0x10
cmp dword [esi + 0x1dfa8], 1
jne 0x46853b
mov eax, dword [esi + 0x1dfac]
test eax, eax
je 0x46853b
cmp eax, 3
jb 0x46853b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea eax, [ebp - 0x2834]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
xor eax, eax
mov ecx, 0x400
lea edi, [ebp - 0x1824]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x2824]
push eax
movzx eax, word [ebp - 0x2826]
push 0x40e508
push eax
movzx eax, word [ebp - 0x2828]
push eax
movzx eax, word [ebp - 0x282a]
push eax
movzx eax, word [ebp - 0x282c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x4065a0
lea eax, [ebp - 0x1824]
push ebx
push eax
call fcn.00431bde
add esp, 0x2c
cmp word [esi + 0x1dfa0], 1
lea eax, [ebp - 0x1824]
push eax
jne 0x46851d
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x46853b
add esi, 0x1dfa4
push 0x4060a8
push dword [esi]
call dword [sym.imp.msvcrt.dll_fwprintf]
push dword [esi]
call dword [sym.imp.msvcrt.dll_fflush]
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
call fcn.004a9585
leave
ret 4