Function at 0x408ad0
Capabilities:
Access peb ldr_data
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4104c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
lea eax, [esp + 0x14]
push edi
mov edi, ecx
push eax
call sub.MFC42.DLL_AfxVariantInit
xor ebx, ebx
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], ebx
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 2
call sub.MFC42.DLL_CString::CString
mov esi, dword [esp + 0x38]
mov byte [esp + 0x30], 3
cmp esi, ebx
jne 0x408b62
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 2
call fcn.0040f504
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 1
call fcn.0040f504
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], bl
call fcn.0040f504
lea ecx, [esp + 0x18]
push ecx
jmp 0x408d78
mov edx, dword [esi]
lea eax, [esp + 0x18]
push eax
push str.lksx
mov ecx, esi
call dword [edx + 0x4c]
cmp word [esp + 0x18], 0xb
jne 0x408d4a
cmp word [esp + 0x20], bx
je 0x408d4a
mov edx, dword [esi]
lea eax, [esp + 0x18]
push eax
push str.sfzh
mov ecx, esi
call dword [edx + 0x4c]
mov eax, dword [esp + 0x18]
cmp ax, 0xe
je 0x408bab
cmp ax, 8
jne 0x408bb9
mov ecx, dword [esp + 0x20]
push ecx
lea ecx, [esp + 0x18]
call fcn.0040f528
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::Empty
mov edx, dword [esi]
lea eax, [esp + 0x18]
push eax
push str.lgdm
mov ecx, esi
call dword [edx + 0x4c]
mov eax, dword [esp + 0x18]
cmp ax, 0xe
je 0x408be3
cmp ax, 8
jne 0x408bf1
mov ecx, dword [esp + 0x20]
push ecx
lea ecx, [esp + 0x10]
call fcn.0040f528
mov edx, dword [esi]
lea eax, [esp + 0x18]
push eax
push str.lsh_rq
mov ecx, esi
call dword [edx + 0x4c]
mov eax, dword [esp + 0x18]
cmp ax, 0xe
je 0x408c12
cmp ax, 8
jne 0x408c20
mov ecx, dword [esp + 0x20]
push ecx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::operator_1
mov edx, dword [esi]
lea eax, [esp + 0x18]
push eax
push str.zklsh
mov ecx, esi
call dword [edx + 0x4c]
mov eax, dword [esp + 0x18]
cmp ax, 0xe
je 0x408c41
cmp ax, 8
jne 0x408c4f
mov ecx, dword [esp + 0x20]
push ecx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::operator_1
lea edx, [edi + 8]
push str.FZPhoto_
lea eax, [esp + 0x3c]
push edx
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 4
call fcn.0040f5f4
lea ecx, [esp + 0x38]
mov byte [esp + 0x30], 3
call fcn.0040f504
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
push str..JPG
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_1
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x408cde
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 2
call fcn.0040f504
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 1
call fcn.0040f504
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], bl
call fcn.0040f504
lea eax, [esp + 0x18]
push eax
jmp 0x408d78
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push 0x7d8
push 0x7d7
push ecx
push edx
push eax
mov ecx, edi
call fcn.00407eb0
lea ecx, [esp + 0x14]
mov esi, eax
mov byte [esp + 0x30], 2
call fcn.0040f504
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 1
call fcn.0040f504
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], bl
call fcn.0040f504
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 2
call fcn.0040f504
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 1
call fcn.0040f504
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], bl
call fcn.0040f504
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov ecx, dword [esp + 0x28]
pop edi
pop esi
mov eax, 3
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 4