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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47042d
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x48f310]
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]
mov esi, edx
mov dword [ebp - 0x6c], eax
mov eax, esi
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x68], 0
call fcn.00401489
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40552a
test al, 0x10
jne 0x405594
push 0x479668
push 0x479304
call fcn.00405c30
add esp, 8
push eax
lea eax, [ebp - 0x2c]
call fcn.00401cc7
mov edi, eax
push 0
push esi
or eax, 0xffffffff
mov dword [ebp - 4], 0
call fcn.00401d62
call fcn.00401489
push eax
push str.INFO
mov ecx, ebx
call fcn.00414290
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.004012b8
mov eax, esi
call fcn.00401489
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
test eax, eax
je 0x405594
push ebx
call fcn.004141f0
mov dword [ebp - 0x118], 0x4799b8
mov dword [ebp - 0x108], 0x4799c0
mov dword [ebp - 0xb8], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, 1
mov dword [ebp - 4], eax
lea edx, [ebp - 0x100]
mov dword [ebp - 0x68], eax
push edx
lea eax, [ebp - 0x118]
push eax
call fcn.00407d50
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0x118]
mov edx, dword [ecx + 4]
lea eax, [ebp - 0x100]
push eax
mov dword [ebp + edx - 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.00408c90
xor eax, eax
mov dword [ebp - method.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.virtual_0], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0xc0], eax
mov dword [ebp - 4], 4
push ecx
mov eax, esp
mov dword [ebp - 0x68], esp
call fcn.00402a24
lea eax, [ebp - 0x2c]
call fcn.00401f4d
push 0
push 0
lea edi, [ebp - 0x2c]
call fcn.004012f5
mov ecx, edi
push ecx
lea eax, [ebp - 0x100]
mov byte [ebp - 4], 5
call fcn.00407f50
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.004012b8
mov edx, dword [ebp - 0x118]
mov ecx, dword [edx + 4]
mov eax, dword [ebp + ecx - 0xe0]
lea ecx, [ebp + ecx - 0x118]
neg eax
sbb eax, eax
and eax, 0xfffffffc
add eax, 4
push 0
call fcn.00403260
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.0040a7c0
mov eax, dword [esi + 0x10]
lea edi, [eax - 1]
add esp, 8
cmp eax, edi
jbe 0x40572e
mov eax, esi
call fcn.00401336
cmp word [eax + edi*2], 0x5c
lea edi, [eax + edi*2]
je 0x4056b8
lea ecx, [ebp - 0x108]
push ecx
call fcn.0040aa60
add esp, 4
lea edi, [ebp - 0x48]
call fcn.004050c0
mov edx, dword [ebp - 0x6c]
push edx
push ecx
mov eax, edi
push eax
lea ecx, [ebp - 0x108]
push ecx
mov byte [ebp - 4], 6
call fcn.0040a7c0
add esp, 0xc
push eax
call fcn.0040a510
add esp, 8
lea ecx, [ebp - 0x2c]
lea eax, [ebp - 0x118]
call fcn.00406bd0
call fcn.00401489
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40570e
test al, 0x10
jne 0x40570e
mov eax, 1
jmp 0x405710
xor eax, eax
test al, al
lea ecx, [ebp - 0x2c]
sete bl
call fcn.004012b8
test bl, bl
jne 0x405733
lea ecx, [ebp - 0x48]
call fcn.004012b8
jmp 0x405616
call fcn.004020a4
mov edi, dword [ebp - 0x70]
xor esi, esi
mov eax, edi
call fcn.004012d8
lea ecx, [ebp - 0x64]
lea eax, [ebp - 0x118]
call fcn.00406bd0
push esi
push eax
or eax, 0xffffffff
mov byte [ebp - 4], 7
call fcn.00401d62
lea ecx, [ebp - 0x64]
call fcn.004012b8
lea ecx, [ebp - 0x48]
call fcn.004012b8
lea ecx, [ebp - 0x118]
mov dword [ebp - 4], 0xffffffff
call fcn.00405430
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.0045080d
mov esp, ebp
pop ebp
ret