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

Disassembly:
push 0xffffffffffffffff
push 0x410488
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push ebp
push esi
lea eax, [esp + 0x18]
push edi
mov edi, ecx
push eax
call sub.MFC42.DLL_AfxVariantInit
lea ecx, [esp + 0x14]
mov dword [esp + 0x34], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 2
call sub.MFC42.DLL_CString::CString
mov esi, dword [esp + 0x3c]
mov byte [esp + 0x34], 3
test esi, esi
je 0x4088ab
mov edx, dword [esi]
lea eax, [esp + 0x1c]
push eax
push str.lksx
mov ecx, esi
call dword [edx + 0x4c]
cmp word [esp + 0x1c], 0xb
je 0x4088ea
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 2
call fcn.0040f504
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 1
call fcn.0040f504
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 0
call fcn.0040f504
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, 3
jmp 0x408ab6
cmp word [esp + 0x24], 0
je 0x4088fe
mov ebp, 0x7d5
mov ebx, 0x7d6
jmp 0x408908
mov ebp, 0x3ed
mov ebx, 0x3ee
mov edx, dword [esi]
lea eax, [esp + 0x1c]
push eax
push str.sfzh
mov ecx, esi
call dword [edx + 0x4c]
mov eax, dword [esp + 0x1c]
cmp ax, 0xe
je 0x408929
cmp ax, 8
jne 0x408937
mov ecx, dword [esp + 0x24]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0040f528
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Empty
mov edx, dword [esi]
lea eax, [esp + 0x1c]
push eax
push str.lgdm
mov ecx, esi
call dword [edx + 0x4c]
mov eax, dword [esp + 0x1c]
cmp ax, 0xe
je 0x408961
cmp ax, 8
jne 0x40896f
mov ecx, dword [esp + 0x24]
push ecx
lea ecx, [esp + 0x14]
call fcn.0040f528
mov edx, dword [esi]
lea eax, [esp + 0x1c]
push eax
push str.lsh_rq
mov ecx, esi
call dword [edx + 0x4c]
mov eax, dword [esp + 0x1c]
cmp ax, 0xe
je 0x408990
cmp ax, 8
jne 0x40899e
mov ecx, dword [esp + 0x24]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_1
mov edx, dword [esi]
lea eax, [esp + 0x1c]
push eax
push str.zklsh
mov ecx, esi
call dword [edx + 0x4c]
mov eax, dword [esp + 0x1c]
cmp ax, 0xe
je 0x4089bf
cmp ax, 8
jne 0x4089cd
mov ecx, dword [esp + 0x24]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_1
lea edx, [edi + 8]
push str.IDPhoto_
lea eax, [esp + 0x40]
push edx
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], 4
call fcn.0040f5f4
lea ecx, [esp + 0x3c]
mov byte [esp + 0x34], 3
call fcn.0040f504
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator
push str..JPG
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator_1
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x408a65
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 2
call fcn.0040f504
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 1
call fcn.0040f504
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 0
call fcn.0040f504
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, 3
jmp 0x408ab6
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push ebx
push ebp
push ecx
push edx
push eax
mov ecx, edi
call fcn.00407eb0
lea ecx, [esp + 0x18]
mov esi, eax
mov byte [esp + 0x34], 2
call fcn.0040f504
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 1
call fcn.0040f504
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 0
call fcn.0040f504
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, esi
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 4