Function at 0x408f40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451e28
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x469090]
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 eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor esi, esi
mov edi, edx
mov dword [ebp - 0x4c], esi
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], ecx
jb 0x408f8b
mov eax, dword [edi]
jmp 0x408f8d
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x408fa1
test al, 0x10
jne 0x409023
mov dword [ebp - 0x38], esi
xor edx, edx
push 0xb
mov eax, str.Create_dir
lea esi, [ebp - 0x48]
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], dx
call fcn.00402510
push 0
push edi
or eax, 0xffffffff
mov dword [ebp - 4], 0
call fcn.00402420
mov esi, 8
cmp dword [eax + 0x14], esi
jb 0x408fde
mov eax, dword [eax]
push eax
push str.INFO
mov ecx, ebx
call fcn.0040c980
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x34], esi
jb 0x409003
mov eax, dword [ebp - 0x48]
push eax
call fcn.00437245
add esp, 4
cmp dword [edi + 0x14], esi
jb 0x40900c
mov eax, dword [edi]
jmp 0x40900e
mov eax, edi
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
test eax, eax
je 0x409021
push ebx
call fcn.0040c8f0
xor esi, esi
mov dword [ebp - 0x100], 0x4595b4
mov dword [ebp - 0xf0], 0x458d28
mov dword [ebp - 0xa0], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
lea ecx, [ebp - 0xe8]
mov eax, 1
push ecx
lea edx, [ebp - 0x100]
mov dword [ebp - 4], eax
push edx
mov dword [ebp - 0x4c], eax
call fcn.00409bd0
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x100]
mov ecx, dword [eax + 4]
lea edx, [ebp - 0xe8]
push edx
mov dword [ebp + ecx - method.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.virtual_0], vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
call fcn.00406680
mov dword [ebp - 0xe8], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [ebp - 0xac], esi
mov dword [ebp - 0xa8], esi
mov dword [ebp - 4], 4
test byte [ebp - 0xa8], 1
je 0x4090bd
mov eax, dword [ebp - 0xd8]
mov eax, dword [eax]
push eax
call fcn.00437245
add esp, 4
mov ecx, dword [ebp - 0xd8]
mov dword [ecx], esi
mov edx, dword [ebp - 0xc8]
mov dword [edx], esi
mov eax, dword [ebp - 0xb8]
mov dword [eax], esi
mov ecx, dword [ebp - 0xd4]
mov dword [ecx], esi
mov edx, dword [ebp - 0xc4]
mov dword [edx], esi
mov eax, dword [ebp - 0xb4]
mov dword [eax], esi
and dword [ebp - 0xa8], 0xfffffffe
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x100]
mov dword [ebp - 0xac], esi
mov ecx, dword [ecx + 4]
mov eax, dword [ebp + ecx - 0xc8]
lea ecx, [ebp + ecx - 0x100]
neg eax
sbb eax, eax
and eax, 0xfffffffc
add eax, 4
push esi
call fcn.00404300
lea edx, [ebp - 0xf0]
push edi
push edx
call fcn.0040bca0
mov eax, dword [edi + 0x10]
lea ecx, [eax - 1]
add esp, 8
cmp eax, ecx
jbe 0x4091fb
mov ebx, 8
cmp dword [edi + 0x14], ebx
jb 0x409151
mov eax, dword [edi]
jmp 0x409153
mov eax, edi
cmp word [eax + ecx*2], 0x5c
je 0x409169
lea eax, [ebp - 0xf0]
push eax
call fcn.0040bf30
add esp, 4
lea ecx, [ebp - 0x50]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetSystemTimeAsFileTime]
mov eax, dword [ebp - 0x4c]
xor ecx, ecx
xor esi, esi
add ecx, dword [ebp - 0x50]
adc eax, esi
cdq
xor eax, edx
xor ecx, edx
sub ecx, edx
sbb eax, edx
mov edx, dword [ebp - 0x58]
push edx
push ecx
push eax
push ecx
lea eax, [ebp - 0xf0]
push eax
call fcn.00409460
add esp, 4
push eax
call fcn.00406ac0
add esp, 8
lea ecx, [ebp - 0x2c]
lea eax, [ebp - 0x100]
call fcn.00409750
cmp dword [eax + 0x14], ebx
jb 0x4091bc
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4091d3
test al, 0x10
jne 0x4091d3
mov eax, 1
jmp 0x4091d5
xor eax, eax
test al, al
mov esi, 8
sete bl
cmp dword [ebp - 0x18], esi
jb 0x4091f0
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00437245
add esp, 4
test bl, bl
jne 0x409205
xor esi, esi
jmp 0x4090a3
push str.invalid_string_position
call fcn.0044b71d
mov edi, dword [ebp - 0x54]
xor ebx, ebx
mov dword [edi + 0x10], ebx
cmp dword [edi + 0x14], esi
jb 0x409216
mov eax, dword [edi]
jmp 0x409218
mov eax, edi
xor edx, edx
mov word [eax], dx
lea ecx, [ebp - 0x2c]
lea eax, [ebp - 0x100]
call fcn.00409750
push ebx
push eax
or eax, 0xffffffff
mov esi, edi
mov byte [ebp - 4], 6
call fcn.00402420
cmp dword [ebp - 0x18], 8
jb 0x40924d
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00437245
add esp, 4
xor ecx, ecx
mov word [ebp - 0x2c], cx
lea ecx, [ebp - 0x100]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], 0xffffffff
call fcn.00409290
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.0043722b
mov esp, ebp
pop ebp
ret