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

Disassembly:
push 0xffffffffffffffff
push 0x417ca8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
xor edi, edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x64], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x14], edi
call sub.MFC42u.DLL_CString::CString_1
lea eax, [esp + 0x24]
mov byte [esp + 0x64], 1
push eax
push 0x419198
push 5
push edi
push 0x419188
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x24]
cmp eax, edi
jne 0x40f249
push str.Error_co_creating_IXMLDOMDocument
call fcn.0040d4b0
mov eax, dword [esp + 0x28]
add esp, 4
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0xfc]
lea ecx, [esp + 0x6c]
call sub.MFC42u.DLL_CString::AllocSysString
push eax
mov dword [esp + 0x18], eax
mov esi, eax
mov word [esp + 0x50], 8
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
cmp eax, edi
mov dword [esp + 0x54], eax
jne 0x40f28a
cmp esi, edi
je 0x40f28a
push 0x8007000e
call fcn.004168d2
mov eax, dword [esp + 0x54]
mov ebp, dword [esp + 0x4c]
lea ebx, [esp + 0x12]
push ebx
mov ecx, dword [esp + 0x28]
sub esp, 0x10
mov byte [esp + 0x78], 2
mov ebx, esp
mov edx, dword [ecx]
push ecx
mov esi, ecx
mov dword [ebx], ebp
mov ebp, dword [esp + 0x68]
mov dword [ebx + 4], ebp
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x70]
mov dword [ebx + 0xc], eax
call dword [edx + pe_nt_image_headers32]
cmp eax, edi
jge 0x40f2cf
push 0x41de98
push esi
push eax
call fcn.004168e0
movsx ecx, word [esp + 0x12]
lea edx, [esp + 0x4c]
mov dword [esp + 0x34], ecx
push edx
mov byte [esp + 0x68], 1
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp eax, edi
jge 0x40f2f2
push eax
call fcn.004168d2
mov eax, dword [esp + 0x14]
mov ebp, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push eax
call ebp
cmp dword [esp + 0x34], edi
jne 0x40f3b7
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x20]
mov dword [esp + 0x38], edi
mov dword [esp + 0x20], edi
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0xf0]
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x28]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x40]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x38]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x34]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x34]
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 + 0x48]
add esp, 0x10
lea ecx, [esp + 0x18]
push eax
call sub.MFC42u.DLL_CString::operator_2
mov ecx, dword [esp + 0x38]
push ecx
call ebp
push edi
lea ecx, [esp + 0x1c]
call sub.MFC42u.DLL_CString::GetBuffer
push eax
push str.Reason_:__s_r_n
call fcn.0040d4b0
mov eax, dword [esp + 0x28]
add esp, 8
mov edx, dword [eax]
push eax
call dword [edx + 8]
jmp 0x40f6b7
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], edi
mov dword [esp + 0x28], edi
call sub.MFC42u.DLL_CString::CString_1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x64], 3
call sub.MFC42u.DLL_CString::CString_1
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x30]
push edx
push eax
mov ecx, dword [eax]
mov byte [esp + 0x6c], 4
call dword [ecx + 0xb4]
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x14]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
call sub.MFC42u.DLL_CString::operator_2
mov ecx, dword [esp + 0x14]
push ecx
call ebp
mov edx, dword [esp + 0x18]
push str.product
push edx
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
cmp eax, edi
jne 0x40f450
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x12]
push edx
push eax
mov ecx, dword [eax]
mov esi, eax
call dword [ecx + 0x58]
cmp eax, edi
jge 0x40f449
push 0x41ddf8
push esi
push eax
call fcn.004168e0
cmp word [esp + 0x12], di
jne 0x40f471
lea ecx, [esp + 0x1c]
mov byte [esp + 0x64], 3
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x64], 1
call sub.MFC42u.DLL_CString::CString
jmp 0x40f6b7
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x3c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov ebx, dword [sym.imp.MSVCRT.dll__wcsicmp]
mov dword [esp + 0x40], edi
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x44]
push edx
push eax
mov ecx, dword [eax]
mov esi, eax
call dword [ecx + 0x20]
test eax, eax
jge 0x40f4ab
push 0x41dde8
push esi
push eax
call fcn.004168e0
cmp edi, dword [esp + 0x44]
jge 0x40f699
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x2c]
push edx
push edi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x12]
push edx
push eax
mov ecx, dword [eax]
mov esi, eax
call dword [ecx + 0x58]
test eax, eax
jge 0x40f4e6
push 0x41ddf8
push esi
push eax
call fcn.004168e0
cmp word [esp + 0x12], 0
jne 0x40f4ff
mov eax, dword [esp + 0x2c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
inc edi
mov dword [esp + 0x40], edi
jmp 0x40f48a
lea ecx, [esp + 0x20]
call sub.MFC42u.DLL_CString::Empty
lea ecx, [esp + 0x1c]
call sub.MFC42u.DLL_CString::Empty
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x38]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x30]
xor edi, edi
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x48]
push ecx
push eax
mov edx, dword [eax]
mov esi, eax
call dword [edx + 0x20]
test eax, eax
jge 0x40f543
push 0x41dde8
push esi
push eax
call fcn.004168e0
cmp edi, dword [esp + 0x48]
jge 0x40f644
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x28]
push ecx
push edi
mov edx, dword [eax]
push eax
call dword [edx + 0x1c]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x14]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x1c]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
call sub.MFC42u.DLL_CString::operator_2
mov eax, dword [esp + 0x14]
push eax
call ebp
mov ecx, dword [esp + 0x18]
push str.name
push ecx
call ebx
add esp, 8
test eax, eax
jne 0x40f5c8
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x14]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x68]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push edx
call sub.MFC42u.DLL_CString::operator_2
mov eax, dword [esp + 0x14]
push eax
call ebp
mov eax, dword [esp + 0x28]
push eax
mov edx, dword [eax]
call dword [edx + 8]
inc edi
jmp 0x40f522
mov ecx, dword [esp + 0x18]
push str.hwid
push ecx
call ebx
add esp, 8
test eax, eax
jne 0x40f5fd
lea ecx, [esp + 0x20]
call sub.MFC42u.DLL_CString::Empty
lea ecx, [esp + 0x1c]
call sub.MFC42u.DLL_CString::Empty
mov eax, dword [esp + 0x28]
push eax
mov edx, dword [eax]
call dword [edx + 8]
inc edi
jmp 0x40f522
mov edx, dword [esp + 0x18]
push str.version
push edx
call ebx
add esp, 8
test eax, eax
jne 0x40f634
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x14]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x68]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
call sub.MFC42u.DLL_CString::operator_2
mov ecx, dword [esp + 0x14]
push ecx
call ebp
mov eax, dword [esp + 0x28]
push eax
mov edx, dword [eax]
call dword [edx + 8]
inc edi
jmp 0x40f522
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40f677
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x40f677
push eax
call fcn.0040e900
add esp, 4
test eax, eax
je 0x40f677
mov ecx, dword [esp + 0x1c]
push 0xc8
add eax, 0xc8
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov eax, dword [esp + 0x38]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp + 0x2c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov edi, dword [esp + 0x40]
inc edi
mov dword [esp + 0x40], edi
jmp 0x40f48a
lea ecx, [esp + 0x1c]
mov byte [esp + 0x64], 3
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x64], 1
call sub.MFC42u.DLL_CString::CString
xor edi, edi
mov eax, dword [esp + 0x3c]
cmp eax, edi
je 0x40f6c5
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x30]
cmp eax, edi
je 0x40f6d3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x24]
cmp eax, edi
je 0x40f6e1
mov edx, dword [eax]
push eax
call dword [edx + 8]
lea ecx, [esp + 0x18]
mov byte [esp + 0x64], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x6c]
mov dword [esp + 0x64], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebp
xor eax, eax
mov dword fs:[0], ecx
pop ebx
add esp, 0x58
ret