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

Disassembly:
push 0xffffffffffffffff
push 0x417874
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c4
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::CString_1
xor ebx, ebx
push 0x400
push 0x400
lea ecx, [esp + 0x20]
mov dword [esp + 0x2e4], ebx
call sub.MFC42u.DLL_CString::GetBuffer
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
or edi, 0xffffffff
lea ecx, [esp + 0x18]
push edi
call sub.MFC42u.DLL_CString::ReleaseBuffer
push 0x5c
lea ecx, [esp + 0x1c]
call sub.MFC42u.DLL_CString::ReverseFind
inc eax
lea ecx, [esp + 0x18]
push eax
lea eax, [esp + 0x30]
push eax
call sub.MFC42u.DLL_CString::Left
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2e0], 1
call fcn.00416290
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2dc], bl
call sub.MFC42u.DLL_CString::CString
push str.log.xml
lea ecx, [esp + 0x1c]
call fcn.00416332
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x84]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, edi
jne 0x40a7d9
mov dword [esp + 0x2dc], edi
jmp 0x40aedc
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x427
mov ecx, esi
call sub.MFC42u.DLL_CWnd::GetDlgItem
mov dword [esp + 0x4c], eax
mov eax, dword [eax + 0x20]
push ebx
push ebx
push 0x1009
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], ebx
push ecx
push 0x419198
push 5
push ebx
push 0x419188
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x28], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x28]
cmp eax, ebx
jne 0x40a856
push str.Error_co_creating_IXMLDOMDocument
call fcn.0040d4b0
add esp, 4
mov dword [esp + 0x2dc], edi
jmp 0x40aedc
mov edx, dword [eax]
push ebx
push eax
call dword [edx + 0xfc]
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::AllocSysString
push eax
mov dword [esp + 0x18], eax
mov esi, eax
mov word [esp + 0x78], 8
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
cmp eax, ebx
mov dword [esp + 0x7c], eax
jne 0x40a897
cmp esi, ebx
je 0x40a897
push 0x8007000e
call fcn.004168d2
mov eax, dword [esp + 0x7c]
mov ebp, dword [esp + 0x74]
lea edi, [esp + 0x1c]
push edi
mov ecx, dword [esp + 0x2c]
sub esp, 0x10
mov byte [esp + 0x2f0], 2
mov edi, esp
mov edx, dword [ecx]
push ecx
mov esi, ecx
mov dword [edi], ebp
mov ebp, dword [esp + 0x90]
mov dword [edi + 4], ebp
mov dword [edi + 8], eax
mov eax, dword [esp + 0x98]
mov dword [edi + 0xc], eax
call dword [edx + pe_nt_image_headers32]
cmp eax, ebx
jge 0x40a8e5
push 0x41de98
push esi
push eax
call fcn.004168e0
movsx ecx, word [esp + 0x1c]
lea edx, [esp + 0x74]
mov dword [esp + 0x40], ecx
push edx
mov byte [esp + 0x2e0], bl
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp eax, ebx
jge 0x40a90a
push eax
call fcn.004168d2
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push eax
call esi
cmp dword [esp + 0x40], ebx
jne 0x40a9e7
lea ecx, [esp + 0x24]
call sub.MFC42u.DLL_CString::CString_1
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x10]
mov dword [esp + 0x10], ebx
push edx
mov ecx, dword [eax]
push eax
mov byte [esp + 0x2e4], 3
call dword [ecx + 0xf0]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x48]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x2c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x40]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x40]
push eax
push ecx
push edx
push str.XML_Parsing_Error_0x_.8X_on_line__d__position__d_r_n
call fcn.0040d4b0
mov eax, dword [esp + 0x24]
add esp, 0x10
lea ecx, [esp + 0x24]
push eax
call sub.MFC42u.DLL_CString::operator_2
mov ecx, dword [esp + 0x14]
push ecx
call esi
push ebx
lea ecx, [esp + 0x28]
call sub.MFC42u.DLL_CString::GetBuffer
push eax
push str.Reason_:__s_r_n
call fcn.0040d4b0
mov eax, dword [esp + 0x18]
add esp, 8
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov byte [esp + 0x2dc], bl
lea ecx, [esp + 0x24]
jmp 0x40ae94
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x38]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0xb4]
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x14]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x24]
push eax
call fcn.0041634a
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x2dc], 4
push ecx
call esi
mov edx, dword [esp + 0x24]
push str.logs
push edx
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
cmp eax, ebx
jne 0x40ae89
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x1c]
push edx
push eax
mov ecx, dword [eax]
mov esi, eax
call dword [ecx + 0x58]
cmp eax, ebx
jge 0x40aa61
push 0x41ddf8
push esi
push eax
call fcn.004168e0
cmp word [esp + 0x1c], bx
je 0x40ae89
lea ecx, [esp + 0x54]
call sub.MFC42u.DLL_CString::CString_1
lea ecx, [esp + 0x44]
mov byte [esp + 0x2dc], 5
call sub.MFC42u.DLL_CString::CString_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x2dc], 6
call sub.MFC42u.DLL_CString::CString_1
lea ecx, [esp + 0x30]
mov byte [esp + 0x2dc], 7
call sub.MFC42u.DLL_CString::CString_1
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x3c]
push edx
push eax
mov ecx, dword [eax]
mov byte [esp + 0x2e4], 8
xor ebp, ebp
call dword [ecx + 0x30]
xor esi, esi
mov dword [esp + 0x50], esi
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x70]
push edx
push eax
mov ecx, dword [eax]
mov edi, eax
call dword [ecx + 0x20]
cmp eax, ebx
jge 0x40aae8
push 0x41dde8
push edi
push eax
call fcn.004168e0
cmp esi, dword [esp + 0x70]
jge 0x40ae45
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x20]
push edx
push esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x14]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x68]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x64]
push eax
call fcn.0041634a
push eax
lea ecx, [esp + 0x58]
mov byte [esp + 0x2e0], 9
call fcn.00416290
lea ecx, [esp + 0x64]
mov byte [esp + 0x2dc], 8
call sub.MFC42u.DLL_CString::CString
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x34]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
push 0x4204a8
lea ecx, [esp + 0x48]
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x4c], ebx
call sub.MFC42u.DLL_CString::operator_1
mov dword [esp + 0x68], ebx
xor esi, esi
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x5c]
push edx
push eax
mov ecx, dword [eax]
mov edi, eax
call dword [ecx + 0x2c]
cmp eax, ebx
jge 0x40ab92
push 0x41ddd8
push edi
push eax
call fcn.004168e0
cmp esi, dword [esp + 0x5c]
jge 0x40ad15
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x20]
push edx
push esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x28]
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x14]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x6c]
push eax
call fcn.0041634a
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x2e0], 0xa
call fcn.00416290
lea ecx, [esp + 0x6c]
mov byte [esp + 0x2dc], 8
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x14]
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push ecx
call edi
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x14]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x68]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x60]
push edx
call fcn.0041634a
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x2e0], 0xb
call fcn.00416290
lea ecx, [esp + 0x60]
mov byte [esp + 0x2dc], 8
call sub.MFC42u.DLL_CString::CString
mov eax, dword [esp + 0x14]
push eax
call edi
mov eax, dword [esp + 0x20]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov edx, dword [esp + 0x10]
mov edi, dword [sym.imp.MSVCRT.dll_wcscmp]
push str.time
push edx
mov dword [esp + 0x28], ebx
call edi
add esp, 8
test eax, eax
jne 0x40ac85
push ebx
lea ecx, [esp + 0x34]
call sub.MFC42u.DLL_CString::GetBuffer
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
add esp, 4
mov dword [esp + 0x58], eax
inc esi
jmp 0x40ab71
mov eax, dword [esp + 0x10]
push str.type
push eax
call edi
add esp, 8
test eax, eax
jne 0x40acb6
push ebx
lea ecx, [esp + 0x34]
call sub.MFC42u.DLL_CString::GetBuffer
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
add esp, 4
mov dword [esp + 0x2c], eax
inc esi
jmp 0x40ab71
mov ecx, dword [esp + 0x10]
push str.status
push ecx
call edi
add esp, 8
test eax, eax
jne 0x40ace7
push ebx
lea ecx, [esp + 0x34]
call sub.MFC42u.DLL_CString::GetBuffer
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
add esp, 4
mov dword [esp + 0x48], eax
inc esi
jmp 0x40ab71
mov edx, dword [esp + 0x10]
push str.name
push edx
call edi
add esp, 8
test eax, eax
jne 0x40ad0e
lea eax, [esp + 0x30]
lea ecx, [esp + 0x44]
push eax
call fcn.00416290
inc esi
jmp 0x40ab71
mov esi, 1
jmp 0x40ad19
mov esi, dword [esp + 0x68]
mov eax, dword [esp + 0x34]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp esi, ebx
mov dword [esp + 0x34], ebx
jne 0x40ae35
mov ecx, dword [esp + 0x4c]
push ebx
push ebx
push ebx
push ebx
push 0x41dd98
push ebp
push 1
call sub.MFC42u.DLL_CListCtrl::InsertItem
mov edx, dword [esp + 0x58]
push ebx
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], edx
call sub.MFC42u.DLL_CTime::GetLocalTm
mov edi, dword [eax + 0xc]
push ebx
lea ecx, [esp + 0x20]
call sub.MFC42u.DLL_CTime::GetLocalTm
mov esi, dword [eax + 0x10]
push ebx
lea ecx, [esp + 0x20]
inc esi
call sub.MFC42u.DLL_CTime::GetLocalTm
mov eax, dword [eax + 0x14]
push edi
add eax, 0x76c
push esi
push eax
lea eax, [esp + 0x1c]
push str._04d__02d__02d
push eax
call sub.MFC42u.DLL_CString::Format
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x24]
add esp, 0x14
add ecx, 7
push ebx
push ebx
push ebx
push ecx
mov ecx, dword [esp + 0x5c]
push edx
push 3
push ebx
push ebp
call sub.MFC42u.DLL_CListCtrl::SetItem
push ebx
lea ecx, [esp + 0x20]
call sub.MFC42u.DLL_CTime::GetLocalTm
mov esi, dword [eax]
push ebx
lea ecx, [esp + 0x20]
call sub.MFC42u.DLL_CTime::GetLocalTm
mov edi, dword [eax + 4]
push ebx
lea ecx, [esp + 0x20]
call sub.MFC42u.DLL_CTime::GetLocalTm
mov eax, dword [eax + 8]
push esi
push edi
push eax
lea eax, [esp + 0x1c]
push str._02d:_02d:_02d
push eax
call sub.MFC42u.DLL_CString::Format
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x60]
add esp, 0x14
push ecx
push 1
push ebp
mov ecx, esi
call sub.MFC42u.DLL_CListCtrl::SetItemText
mov eax, dword [esp + 0x44]
cmp dword [eax - 8], ebx
jne 0x40ae0f
push eax
push 2
push ebp
mov ecx, esi
call sub.MFC42u.DLL_CListCtrl::SetItemText
jmp 0x40ae25
mov edx, dword [esp + 0x2c]
push ebx
push ebx
dec edx
push ebx
push edx
push eax
push 3
push 2
push ebp
mov ecx, esi
call sub.MFC42u.DLL_CListCtrl::SetItem
mov eax, dword [esp + 0x54]
mov ecx, esi
push eax
push 3
push ebp
call sub.MFC42u.DLL_CListCtrl::SetItemText
inc ebp
mov eax, dword [esp + 0x50]
inc eax
mov dword [esp + 0x50], eax
mov esi, eax
jmp 0x40aac7
lea ecx, [esp + 0x30]
mov byte [esp + 0x2dc], 7
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x2dc], 6
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x44]
mov byte [esp + 0x2dc], 5
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x54]
mov byte [esp + 0x2dc], 4
call sub.MFC42u.DLL_CString::CString
mov byte [esp + 0x2dc], bl
lea ecx, [esp + 0x24]
call sub.MFC42u.DLL_CString::CString
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x40aea7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x3c]
cmp eax, ebx
je 0x40aeb5
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x38]
cmp eax, ebx
je 0x40aec3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x40aed1
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov dword [esp + 0x2dc], 0xffffffff
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x2d4]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x2d0
ret