Function at 0x405560
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x470756
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x4b0
mov eax, dword [0x4954f4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x20a
lea eax, [ebp - 0x240]
mov dword [ebp - 0x4c0], 0
push 0
push eax
call fcn.0044b130
add esp, 0xc
lea eax, [ebp - 0x240]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x240]
push str.XXPic_
push eax
call esi
lea eax, [ebp - 0x240]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push str.XXDt.dat
lea eax, [ebp - 0x240]
push eax
call esi
call fcn.0040a000
add eax, 0x10
push 0xfde9
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.004352d0
mov eax, 1
add esp, 0xc
mov dword [ebp - 0x4bc], eax
mov dword [ebp - 4], 0
lea edx, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0x10
mov dword [ebp - 0x270], 0
cmovae edx, dword [ebp - 0x2c]
mov ecx, edx
mov dword [ebp - 0x26c], 0xf
mov byte [ebp - 0x280], 0
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405660
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x280]
call fcn.00408190
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x4056ae
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4056a4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405dc0
push edx
push ecx
call fcn.00444954
add esp, 8
lea eax, [ebp - 0x240]
mov dword [ebp - 0x1c], 0
push eax
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4059b3
push 0x70
lea eax, [ebp - 0x4b8]
push 0
push eax
call fcn.0044b130
add esp, 0xc
lea ecx, [ebp - 0x4b8]
call fcn.0043f010
xorps xmm0, xmm0
mov byte [ebp - 4], 3
push 0
lea ecx, [ebp - 0x250]
movups xmmword [ebp - 0x250], xmm0
call fcn.0043d7d0
push 0xb8
lea eax, [ebp - 0x3f8]
push 0
push eax
call fcn.0044b130
add esp, 0xc
mov dword [ebp - 0x3f8], 0x4884c4
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x388]
mov eax, 3
mov dword [ebp - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov dword [ebp - 0x4bc], eax
xorps xmm0, xmm0
mov dword [ebp - 0x4c0], eax
lea eax, [ebp - 0x3e8]
push 0
push eax
mov dword [ebp - 0x38c], 0x58
movlpd qword [ebp - 0x3f0], xmm0
call fcn.00408b70
mov dword [ebp - 4], 7
mov eax, dword [ebp - 0x3f8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x3f8]
mov ecx, dword [eax + 4]
push ecx
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x3fc], eax
lea ecx, [ebp - 0x3e8]
call fcn.00408750
push ecx
push 0x21
lea eax, [ebp - 0x240]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x3e8]
call fcn.00408680
test eax, eax
lea ecx, [ebp - 0x3f8]
mov eax, dword [ebp - 0x3f8]
push 0
mov eax, dword [eax + 4]
jne 0x4057f4
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
jmp 0x405803
add ecx, eax
xor edx, edx
mov eax, 4
cmp dword [ecx + 0x38], edx
cmovne eax, edx
push eax
call fcn.004020c0
push 0
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x3f8]
push eax
lea ecx, [ebp - 0x4b8]
call fcn.00440530
test al, al
je 0x4058e9
lea ecx, [ebp - 0x250]
call fcn.0043e950
test al, al
jne 0x4058e9
push 0x488444
lea ecx, [ebp - 0x250]
call fcn.0043dd20
mov ecx, eax
call fcn.0043e950
test al, al
jne 0x4058e9
lea eax, [ebp - 0x268]
push eax
push 0x488444
lea ecx, [ebp - 0x250]
call fcn.0043dd20
mov ecx, eax
call fcn.0043e320
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x258]
test ecx, ecx
je 0x4058ab
cmp dword [ebp - 0x254], 0x10
lea eax, [ebp - 0x268]
push ecx
cmovae eax, dword [ebp - 0x268]
lea ecx, [ebp - 0x280]
push eax
call fcn.00408190
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x254]
cmp edx, 0x10
jb 0x4058e9
mov ecx, dword [ebp - 0x268]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4058df
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405dc5
push edx
push ecx
call fcn.00444954
add esp, 8
lea ecx, [ebp - 0x3e8]
call fcn.004085c0
test eax, eax
jne 0x405923
mov eax, dword [ebp - 0x3f8]
lea ecx, [ebp - 0x3f8]
push 0
mov eax, dword [eax + 4]
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.004020c0
mov eax, dword [ebp - 0x3f8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x3f8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x3fc], eax
lea ecx, [ebp - 0x3e8]
call fcn.00407610
mov eax, dword [ebp - 0x3f8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x3f8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0x3fc], eax
lea eax, [ebp - 0x388]
mov byte [ebp - 4], 0xa
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.004430e7
add esp, 4
lea ecx, [ebp - 0x250]
call fcn.0043d9d0
lea ecx, [ebp - 0x4b8]
mov byte [ebp - 4], 2
call fcn.00405de0
push 0
call fcn.00452eca
add esp, 4
lea ecx, [ebp - 0x290]
xorps xmm0, xmm0
mov edi, eax
mov esi, edx
movups xmmword [ebp - 0x290], xmm0
push 0
call fcn.0043d7d0
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x280]
cmp dword [ebp - 0x26c], 0x10
lea ecx, [ebp - 0x250]
cmovae eax, dword [ebp - 0x280]
push eax
call fcn.0043d790
lea eax, [ebp - 0x250]
mov byte [ebp - 4], 0xc
push eax
push 0x488444
lea ecx, [ebp - 0x290]
call fcn.0043dd20
mov ecx, eax
call fcn.0043daa0
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 0xb
call fcn.0043d9d0
test esi, esi
jg 0x405a51
jl 0x405a37
test edi, edi
jae 0x405a51
neg edi
lea ecx, [ebp - 0x17]
adc esi, 0
neg esi
push esi
push edi
call fcn.004099e0
mov byte [eax - 1], 0x2d
lea ecx, [eax - 1]
jmp 0x405a5d
push esi
push edi
lea ecx, [ebp - 0x17]
call fcn.004099e0
mov ecx, eax
lea eax, [ebp - 0x17]
mov dword [ebp - 0x258], 0
add esp, 8
mov byte [ebp - 0x268], 0
mov edx, 0xf
mov dword [ebp - 0x254], edx
cmp ecx, eax
je 0x405a98
sub eax, ecx
push eax
push ecx
lea ecx, [ebp - 0x268]
call fcn.00408190
mov edx, dword [ebp - 0x254]
cmp edx, 0x10
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x268]
cmovae eax, dword [ebp - 0x268]
lea ecx, [ebp - 0x250]
push eax
call fcn.0043d790
lea eax, [ebp - 0x250]
mov byte [ebp - 4], 0xe
push eax
push 0x488448
lea ecx, [ebp - 0x290]
call fcn.0043dd20
mov ecx, eax
call fcn.0043daa0
lea ecx, [ebp - 0x250]
call fcn.0043d9d0
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0x254]
cmp edx, 0x10
jb 0x405b23
mov ecx, dword [ebp - 0x268]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405b19
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405dca
push edx
push ecx
call fcn.00444954
add esp, 8
push 0x4c
lea eax, [ebp - 0x448]
push 0
push eax
call fcn.0044b130
add esp, 0xc
lea ecx, [ebp - 0x448]
call fcn.0043a8d0
push 0xb0
lea eax, [ebp - 0x340]
push 0
push eax
call fcn.0044b130
add esp, 0xc
mov dword [ebp - 0x340], 0x4884bc
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x2d8]
mov eax, dword [ebp - 0x4bc]
or eax, 0x38
mov dword [ebp - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov dword [ebp - 0x4c0], eax
lea eax, [ebp - 0x33c]
push 0
push eax
mov dword [ebp - 0x2dc], 0x60
call fcn.00408b70
mov dword [ebp - 4], 0x12
mov eax, dword [ebp - 0x340]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x340]
mov ecx, dword [eax + 4]
push ecx
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x344], eax
lea ecx, [ebp - 0x33c]
call fcn.00408750
push ecx
push 2
lea eax, [ebp - 0x240]
mov byte [ebp - 4], 0x13
push eax
lea ecx, [ebp - 0x33c]
call fcn.00408680
test eax, eax
lea ecx, [ebp - 0x340]
mov eax, dword [ebp - 0x340]
push 0
mov eax, dword [eax + 4]
jne 0x405c1a
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
jmp 0x405c29
add ecx, eax
xor edx, edx
mov eax, 4
cmp dword [ecx + 0x38], edx
cmovne eax, edx
push eax
call fcn.004020c0
lea eax, [ebp - 0x290]
push eax
lea eax, [ebp - 0x268]
push eax
lea ecx, [ebp - 0x448]
call fcn.0043be30
mov byte [ebp - 4], 0x14
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x405c57
mov eax, dword [eax]
push ecx
push eax
lea eax, [ebp - 0x340]
push eax
call fcn.00409a80
mov byte [ebp - 4], 0x13
add esp, 0xc
mov edx, dword [ebp - 0x254]
cmp edx, 0x10
jb 0x405ca6
mov ecx, dword [ebp - 0x268]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405c9c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405dcf
push edx
push ecx
call fcn.00444954
add esp, 8
lea ecx, [ebp - 0x33c]
call fcn.004085c0
test eax, eax
jne 0x405ce0
mov eax, dword [ebp - 0x340]
lea ecx, [ebp - 0x340]
push 0
mov eax, dword [eax + 4]
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.004020c0
mov eax, dword [ebp - 0x340]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x340]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x344], eax
lea ecx, [ebp - 0x33c]
call fcn.00407610
mov eax, dword [ebp - 0x340]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x340]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x344], eax
lea eax, [ebp - 0x2d8]
mov byte [ebp - 4], 0x15
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.004430e7
add esp, 4
lea ecx, [ebp - 0x448]
call fcn.004023a0
lea ecx, [ebp - 0x290]
call fcn.0043d9d0
mov edx, dword [ebp - 0x26c]
cmp edx, 0x10
jb 0x405da2
mov ecx, dword [ebp - 0x280]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405d98
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405dd4
push edx
push ecx
call fcn.00444954
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00444204
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004538a3
call fcn.004538a3
call fcn.004538a3
call fcn.004538a3
call fcn.004538a3
int3