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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x478b39
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x49b3d4]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push esi
push edi
mov eax, dword [0x49b3d4]
xor eax, esp
push eax
lea eax, [esp + 0x120]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov esi, edx
mov dword [esp + 0x18], eax
mov eax, esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ecx
call fcn.0040263b
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40815b
test al, 0x10
jne 0x4081d5
push 0x484614
push 0x48411c
call fcn.004087e0
add esp, 8
push eax
lea eax, [esp + 0xc8]
call fcn.004025d0
mov edi, eax
push 0
push esi
or eax, 0xffffffff
mov dword [esp + 0x130], 0
call fcn.00403074
call fcn.0040263b
push eax
push str.INFO
mov ecx, ebx
call fcn.00416a80
lea ecx, [esp + 0xc4]
mov dword [esp + 0x128], 0xffffffff
call fcn.00402601
mov eax, esi
call fcn.0040263b
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
test eax, eax
je 0x4081d5
push ebx
call fcn.004169e0
lea edx, [esp + 0x1c]
push edx
call fcn.00409760
mov dword [esp + 0x128], 1
lea ebx, [ebx]
lea eax, [esp + 0xc4]
call fcn.004025a9
mov edi, eax
lea esi, [esp + 0x34]
mov byte [esp + 0x128], 2
call fcn.004033ea
mov eax, edi
call fcn.00404dd1
mov ebx, eax
mov eax, edi
call fcn.0040263b
push eax
mov eax, dword [esp + 0x78]
call fcn.00403717
lea ecx, [esp + 0xc4]
mov byte [esp + 0x128], 1
call fcn.00402601
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 4]
push 0
lea eax, [esp + eax + 0x20]
xor ecx, ecx
call fcn.00402f2a
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x2c]
push edi
push ecx
call fcn.0040c9b0
mov eax, dword [edi + 0x10]
lea esi, [eax - 1]
add esp, 8
cmp eax, esi
jbe 0x40831c
mov eax, edi
call fcn.004036f8
cmp word [eax + esi*2], 0x5c
lea eax, [eax + esi*2]
je 0x40828f
lea edx, [esp + 0x2c]
push edx
call fcn.0040cbc0
add esp, 4
lea edi, [esp + 0xe0]
call fcn.00407cd0
mov eax, dword [esp + 0x18]
push eax
push ecx
mov ecx, edi
push ecx
lea edx, [esp + 0x38]
push edx
mov byte [esp + 0x138], 3
call fcn.0040c9b0
add esp, 0xc
push eax
call fcn.00403bd5
add esp, 8
push eax
call fcn.00402188
lea edi, [esp + 0xc4]
lea eax, [esp + 0x1c]
call fcn.00409820
call fcn.0040263b
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4082f4
test al, 0x10
jne 0x4082f4
mov eax, 1
jmp 0x4082f6
xor eax, eax
test al, al
lea ecx, [esp + 0xc4]
sete bl
call fcn.00402601
test bl, bl
jne 0x408321
lea ecx, [esp + 0xe0]
call fcn.00402601
jmp 0x4081f0
call fcn.0040370c
mov ebx, dword [esp + 0x10]
xor esi, esi
mov eax, ebx
call fcn.0040325f
lea edi, [esp + 0xfc]
lea eax, [esp + 0x1c]
call fcn.00409820
push esi
push eax
or eax, 0xffffffff
mov edi, ebx
mov byte [esp + 0x130], 4
call fcn.00403074
lea ecx, [esp + 0xfc]
call fcn.00402601
lea ecx, [esp + 0xe0]
call fcn.00402601
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 4]
lea eax, [esp + 0x7c]
mov dword [esp + 0x10], eax
mov dword [esp + edx + 0x1c], vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
lea ecx, [esp + 0x34]
mov dword [esp + 0x128], 5
call fcn.00402640
mov dword [esp + 0x128], 0xffffffff
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 4]
mov dword [esp + ecx + 0x1c], vtable.std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__.0
lea ecx, [esp + 0x34]
call fcn.00402179
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 4]
lea ecx, [esp + 0x7c]
mov dword [esp + eax + 0x1c], vtable.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.004022a1
mov ecx, dword [esp + 0x120]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.00458db6
mov esp, ebp
pop ebp
ret