Function at 0x4086a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x40b458
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x264
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 0x60]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x27c], edi
je 0x408b06
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x24]
mov byte [esp + 0x27c], 1
call sub.MFC42.DLL_COleDispatchDriver::COleDispatchDriver_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x27c], 2
call sub.MFC42.DLL_COleDispatchDriver::COleDispatchDriver_1
lea eax, [esp + 0x44]
mov byte [esp + 0x27c], 3
push eax
call sub.MFC42.DLL_AfxVariantInit
mov ecx, dword [esp + 0x284]
mov ebx, 4
mov byte [esp + 0x27c], bl
cmp dword [ecx - 8], edi
jne 0x4087f9
push edi
push str.Agent_Character_Storage__.acs_.acsAgent_Character_File__.acf_.acf
push ebx
push edi
push str..acs
push 1
lea ecx, [esp + 0x90]
call sub.MFC42.DLL_CFileDialog::CFileDialog
lea ecx, [esp + 0x78]
mov byte [esp + 0x27c], 5
call sub.MFC42.DLL_CFileDialog::DoModal
cmp eax, 2
jne 0x408793
lea ecx, [esp + 0x128]
mov byte [esp + 0x27c], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x78]
mov byte [esp + 0x27c], bl
call fcn.00409b72
lea edx, [esp + 0x44]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp 0x408ad3
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x78]
push eax
call sub.MFC42.DLL_CFileDialog::GetPathName
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x280], 7
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x27c], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x288]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x128]
mov byte [esp + 0x27c], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x78]
mov byte [esp + 0x27c], bl
call fcn.00409b72
push 0x7f02
push edi
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
lea edx, [esp + 0x284]
lea ecx, [esp + 0x54]
push edx
mov word [esp + 0x58], di
call sub.MFC42.DLL_COleVariant::operator
mov eax, dword [esi + 0x44]
mov bl, 9
cmp eax, edi
mov byte [esp + 0x27c], bl
je 0x40883e
cmp eax, str.Character1
mov ebp, str.Character2
je 0x408843
mov ebp, str.Character1
lea edi, [esi + 4]
lea eax, [esp + 0x2c]
push eax
mov ecx, edi
call fcn.00401780
lea ecx, [esp + 0x54]
lea edx, [esp + 0x1c]
push ecx
push ebp
push edx
mov ecx, eax
mov byte [esp + 0x288], 0xa
call fcn.004023d0
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x280], 0xb
call sub.MFC42.DLL_COleDispatchDriver::operator
lea ecx, [esp + 0x1c]
mov byte [esp + 0x27c], 0xa
call sub.MFC42.DLL_COleDispatchDriver::ReleaseDispatch
lea ecx, [esp + 0x2c]
mov byte [esp + 0x27c], bl
call sub.MFC42.DLL_COleDispatchDriver::ReleaseDispatch
lea ecx, [esp + 0x24]
call fcn.00401470
test eax, eax
je 0x4088d9
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [esp + 0x54]
push eax
call esi
lea ecx, [esp + 0x44]
push ecx
call esi
jmp 0x408ad3
mov eax, dword [esi + 0x44]
test eax, eax
je 0x40890f
lea edx, [esp + 0x2c]
mov ecx, edi
push edx
call fcn.00401780
mov ecx, dword [esi + 0x44]
mov byte [esp + 0x27c], 0xc
push ecx
mov ecx, eax
call fcn.004023b0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x27c], bl
call sub.MFC42.DLL_COleDispatchDriver::ReleaseDispatch
lea edx, [esp + 0x1c]
mov ecx, edi
push edx
mov dword [esi + 0x44], ebp
call fcn.00401780
mov ecx, dword [esi + 0x44]
lea edx, [esp + 0x2c]
push ecx
push edx
mov ecx, eax
mov byte [esp + 0x284], 0xd
call fcn.00402360
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x280], 0xe
call sub.MFC42.DLL_COleDispatchDriver::operator
lea ecx, [esp + 0x2c]
mov byte [esp + 0x27c], 0xd
call sub.MFC42.DLL_COleDispatchDriver::ReleaseDispatch
lea ecx, [esp + 0x1c]
mov byte [esp + 0x27c], bl
call sub.MFC42.DLL_COleDispatchDriver::ReleaseDispatch
lea edi, [esi + 0x48]
push 0xffffffffffffffff
push 0
mov ecx, edi
call sub.MFC42.DLL_CStringArray::SetSize
lea ecx, [esp + 0x14]
call fcn.00402b00
test ax, ax
jne 0x4089d9
lea ecx, [esp + 0x14]
mov dword [esp + 0x34], 0xa
call fcn.00402700
movsx ebp, ax
push 0
add ebp, 0xa
call dword [sym.imp.USER32.dll_GetSystemMetrics]
cmp ebp, eax
jle 0x4089b6
lea ecx, [esp + 0x14]
call fcn.00402700
movsx eax, ax
jmp 0x4089ba
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x44]
lea edx, [esp + 0x2c]
push ecx
push 0
push eax
push edx
lea ecx, [esp + 0x24]
call fcn.004029d0
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_COleDispatchDriver::ReleaseDispatch
lea eax, [esp + 0x44]
lea ecx, [esp + 0x2c]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.00402a70
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_COleDispatchDriver::ReleaseDispatch
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x14]
push edx
call fcn.00403190
lea ecx, [esp + 0x3c]
mov byte [esp + 0x27c], 0xf
push ecx
push 0xd
push 0xfffffffffffffffc
mov ecx, eax
call sub.MFC42.DLL_COleDispatchDriver::GetProperty
lea ecx, [esp + 0x2c]
mov byte [esp + 0x27c], bl
call sub.MFC42.DLL_COleDispatchDriver::ReleaseDispatch
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x40]
push ecx
push 0x40c8d0
mov edx, dword [eax]
push eax
call dword [edx]
mov ebp, eax
mov eax, dword [esp + 0x3c]
push eax
mov edx, dword [eax]
call dword [edx + 8]
test ebp, ebp
mov ebp, dword [sym.imp.OLEAUT32.dll_VariantCopy]
jl 0x408ab7
mov eax, dword [esp + 0x40]
lea edx, [esp + 0x64]
push edx
lea edx, [esp + 0x6c]
mov ecx, dword [eax]
push edx
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x408aad
mov eax, dword [esp + 0x70]
lea ecx, [esp + 0x1c]
push eax
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [edi + 8]
lea ecx, [esp + 0x1c]
push ecx
push eax
mov ecx, edi
mov byte [esp + 0x284], 0x10
call sub.MFC42.DLL_CStringArray::SetAtGrow
lea edx, [esp + 0x68]
push edx
call ebp
lea ecx, [esp + 0x1c]
mov byte [esp + 0x27c], bl
call sub.MFC42.DLL_CString::CString
jmp 0x408a54
mov eax, dword [esp + 0x40]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov esi, dword [esi + 0x50]
xor eax, eax
test esi, esi
setg al
test eax, eax
jne 0x408b21
lea edx, [esp + 0x54]
push edx
call ebp
lea eax, [esp + 0x44]
push eax
call ebp
lea ecx, [esp + 0x14]
mov byte [esp + 0x27c], 2
call sub.MFC42.DLL_COleDispatchDriver::ReleaseDispatch
lea ecx, [esp + 0x24]
mov byte [esp + 0x27c], 1
call sub.MFC42.DLL_COleDispatchDriver::ReleaseDispatch
lea ecx, [esp + 0x10]
mov byte [esp + 0x27c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x284]
mov dword [esp + 0x27c], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x408b92
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
lea ecx, [esp + 0x54]
push ecx
call ebp
lea edx, [esp + 0x44]
push edx
call ebp
lea ecx, [esp + 0x14]
mov byte [esp + 0x27c], 2
call sub.MFC42.DLL_COleDispatchDriver::ReleaseDispatch
lea ecx, [esp + 0x24]
mov byte [esp + 0x27c], 1
call sub.MFC42.DLL_COleDispatchDriver::ReleaseDispatch
lea ecx, [esp + 0x10]
mov byte [esp + 0x27c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x284]
mov dword [esp + 0x27c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x274]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x270
ret 4