Function at 0x4024a0
Capabilities:
Check http status code
Check if file exists
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x407091
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc8
mov eax, dword [0x40b048]
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x2c], edi
lea ecx, [ebp - 0x38]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_1]
lea ecx, [ebp - 0x60]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_1]
lea ecx, [ebp - 0x4c]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_1]
lea eax, [ebp - 0x24]
push eax
push str.Msxml2.XMLHTTP.3.0
mov byte [ebp - 4], 8
call dword [sym.imp.ole32.dll_CLSIDFromProgID]
cmp eax, edi
jl 0x402577
mov eax, dword [ebp - 0x28]
cmp eax, edi
je 0x402522
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea edx, [ebp - 0x30]
push edx
push 0x408734
push 0x17
push edi
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, edi
jl 0x40256e
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.ole32.dll_OleRun]
mov esi, eax
cmp esi, edi
jl 0x402561
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
lea ecx, [ebp - 0x28]
push ecx
push 0x408770
push eax
call dword [edx]
mov esi, eax
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
push eax
call dword [edx + 8]
cmp esi, edi
jge 0x402571
mov dword [ebp - 0x28], edi
mov eax, esi
cmp eax, edi
jge 0x40257d
push eax
call fcn.00406660
mov word [ebp - 0x24], 0xb
mov word [ebp - 0x1c], 0
push 0x40b058
push ecx
mov byte [ebp - 4], 9
mov eax, dword [ebp + 0xc]
mov edi, dword [eax]
mov ecx, esp
mov dword [ebp - 0x64], esp
push ecx
mov esi, 0x40b058
lea ebx, [ebp - 0x24]
call fcn.00401280
push ecx
mov byte [ebp - 4], 0xa
mov edx, esp
mov dword [ebp - 0x6c], esp
push edx
mov edi, 0x4089b4
call fcn.00401280
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x28]
xor edi, edi
cmp eax, edi
jne 0x4025d7
push 0x80004003
call fcn.00406660
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x28]
push eax
mov ecx, esi
mov edx, ebx
call fcn.00401440
lea ecx, [ebp - 0x24]
push ecx
mov esi, eax
mov byte [ebp - 4], 8
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp eax, edi
jge 0x402602
push eax
call fcn.00406660
cmp esi, edi
jge 0x40260c
push esi
call fcn.00406660
mov eax, dword [ebp - 0x28]
cmp eax, edi
jne 0x402620
push 0x80004003
call fcn.00406660
mov eax, dword [ebp - 0x28]
mov esi, dword [0x40b058]
mov edx, dword [eax]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], esi
mov esi, dword [0x40b05c]
mov dword [ecx + 4], esi
mov esi, dword [0x40b060]
mov dword [ecx + 8], esi
mov esi, dword [0x40b064]
push eax
mov ebx, eax
mov dword [ecx + 0xc], esi
call dword [edx + 0x2c]
mov esi, eax
cmp esi, edi
jge 0x402668
push 0x408770
push ebx
push esi
call fcn.00406670
push esi
call fcn.00406660
lea ecx, [ebp - 0x5c]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_1]
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x28]
cmp eax, edi
jne 0x402689
push 0x80004003
call fcn.00406660
mov eax, dword [ebp - 0x28]
mov edx, dword [eax]
lea ecx, [ebp + 0xc]
push ecx
push eax
mov esi, eax
mov dword [ebp + 0xc], edi
call dword [edx + 0x34]
cmp eax, edi
jge 0x4026a8
push 0x408770
push esi
push eax
call fcn.00406670
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x5c]
push str.XML.GETstatus:__d_
push eax
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::Format]
mov ecx, dword [ebp - 0x5c]
add esp, 0xc
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp - 0x28]
cmp eax, edi
jne 0x4026dc
push 0x80004003
call fcn.00406660
mov eax, dword [ebp - 0x28]
mov edx, dword [eax]
lea ecx, [ebp + 0xc]
push ecx
push eax
mov esi, eax
mov dword [ebp + 0xc], edi
call dword [edx + 0x34]
cmp eax, edi
jge 0x4026fb
push 0x408770
push esi
push eax
call fcn.00406670
cmp dword [ebp + 0xc], 0xc8
je 0x402715
push 0x4095fc
lea edx, [ebp - 0x7c]
push edx
mov dword [ebp - 0x7c], edi
call sub.MSVCR71.dll__CxxThrowException
cmp dword [ebp - 0x28], edi
jne 0x402724
push 0x80004003
call fcn.00406660
mov esi, dword [ebp - 0x28]
lea edi, [ebp + 0xc]
call fcn.004015a0
mov eax, dword [eax]
test eax, eax
je 0x40273e
mov ecx, dword [eax]
push eax
mov dword [ebp - 0x40], eax
call dword [ecx + 4]
mov eax, dword [ebp + 0xc]
test eax, eax
mov esi, dword [ebp - 0x40]
je 0x40274e
mov edx, dword [eax]
push eax
call dword [edx + 8]
test esi, esi
jne 0x40275c
push 0x80004003
call fcn.00406660
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x402769
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x3c]
push eax
push 0x4087b0
mov dword [ebp - 0x3c], 0
mov edx, dword [esi]
push esi
call dword [edx]
test eax, eax
jge 0x402788
push eax
call fcn.00406660
push ecx
mov ebx, esp
mov dword [ebp - 0x64], esp
push str._manifest_filelist_file
call fcn.00401200
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x3c]
test eax, eax
jne 0x4027ad
push 0x80004003
call fcn.00406660
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 0xc
mov edi, dword [ebp - 0x3c]
push ecx
call fcn.004015e0
mov esi, dword [eax]
test esi, esi
je 0x4027ce
mov edx, dword [esi]
push esi
mov dword [ebp - 0x44], esi
call dword [edx + 4]
jmp 0x4027d1
mov esi, dword [ebp - 0x44]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4027de
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
test esi, esi
jne 0x4027ec
push 0x80004003
call fcn.00406660
mov edx, dword [esi]
lea eax, [ebp + 0xc]
push eax
push esi
mov dword [ebp + 0xc], 0
call dword [edx + 0x20]
test eax, eax
jge 0x40280d
push 0x408780
push esi
push eax
call fcn.00406670
mov ecx, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 0x94], ecx
mov dword [ebp - 0x54], edi
jmp 0x402820
cmp edi, dword [ebp - 0x94]
jge 0x402d47
test esi, esi
jne 0x40283a
push 0x80004003
call fcn.00406660
mov edx, edi
lea edi, [ebp - 0x80]
call fcn.004016a0
mov byte [ebp - 4], 0xe
mov esi, dword [eax]
test esi, esi
je 0x4028a1
mov edx, dword [esi]
push esi
call dword [edx + 4]
mov eax, dword [esi]
lea ecx, [ebp - 0x90]
push ecx
push 0x4087a0
push esi
call dword [eax]
mov edi, dword [ebp - 0x90]
xor edx, edx
mov ebx, eax
mov eax, dword [ebp - 0x2c]
test ebx, ebx
setl dl
dec edx
and edi, edx
test eax, eax
je 0x402884
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi]
push esi
mov dword [ebp - 0x2c], edi
call dword [eax + 8]
test ebx, ebx
jge 0x4028bc
cmp ebx, 0x80004002
je 0x4028bc
push ebx
call fcn.00406660
jmp 0x4028bc
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4028b9
test eax, eax
mov dword [ebp - 0x2c], 0
je 0x4028b9
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov edi, dword [ebp - 0x2c]
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x80]
test eax, eax
je 0x4028cd
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push ecx
mov ebx, esp
mov dword [ebp - 0x48], esp
push str.filename
call fcn.00401200
test edi, edi
mov byte [ebp - 4], 0xf
jne 0x4028ef
push 0x80004003
call fcn.00406660
lea edx, [ebp - 0x24]
mov bl, 0xc
push edx
mov byte [ebp - 4], bl
call fcn.004016e0
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0x10
call dword [0x408284]
lea eax, [ebp - 0x24]
mov byte [ebp - 4], bl
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
push eax
call esi
test eax, eax
jge 0x402924
push eax
call fcn.00406660
push ecx
mov ebx, esp
mov dword [ebp - 0x48], esp
push str.filesize
call fcn.00401200
test edi, edi
mov byte [ebp - 4], 0x11
jne 0x402946
push 0x80004003
call fcn.00406660
lea ecx, [ebp - 0xa4]
mov bl, 0xc
push ecx
mov byte [ebp - 4], bl
call fcn.004016e0
mov ecx, eax
mov byte [ebp - 4], 0x12
call fcn.00401370
lea edx, [ebp - 0xa4]
push edx
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], bl
call esi
test eax, eax
jge 0x40297b
push eax
call fcn.00406660
push ecx
mov ebx, esp
mov dword [ebp - 0x78], esp
push str.fileversion
call fcn.00401200
test edi, edi
mov byte [ebp - 4], 0x13
jne 0x40299d
push 0x80004003
call fcn.00406660
lea eax, [ebp - 0xc4]
mov bl, 0xc
push eax
mov byte [ebp - 4], bl
call fcn.004016e0
push eax
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0x14
call dword [0x408284]
lea ecx, [ebp - 0xc4]
push ecx
mov byte [ebp - 4], bl
call esi
test eax, eax
jge 0x4029d2
push eax
call fcn.00406660
push ecx
mov ebx, esp
mov dword [ebp - 0x78], esp
push 0x40894c
call fcn.00401200
test edi, edi
mov byte [ebp - 4], 0x15
jne 0x4029f4
push 0x80004003
call fcn.00406660
lea edx, [ebp - 0xb4]
mov bl, 0xc
push edx
mov byte [ebp - 4], bl
call fcn.004016e0
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0x16
call dword [0x408284]
lea eax, [ebp - 0xb4]
push eax
mov byte [ebp - 4], bl
call esi
test eax, eax
jge 0x402a29
push eax
call fcn.00406660
push ecx
mov ebx, esp
mov dword [ebp - 0x78], esp
push str.filepath
call fcn.00401200
test edi, edi
mov byte [ebp - 4], 0x17
jne 0x402a4b
push 0x80004003
call fcn.00406660
lea ecx, [ebp - 0xd4]
push ecx
mov byte [ebp - 4], 0xc
call fcn.004016e0
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x18
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_2]
lea edx, [ebp - 0xd4]
push edx
mov byte [ebp - 4], 0x1a
call esi
test eax, eax
jge 0x402a80
push eax
call fcn.00406660
push 0x40876c
lea ecx, [ebp + 0xc]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_3]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x1b
call dword [sym.imp.MFC71U.DLL_CWinThread::GetMainWnd]
push eax
push 0x40893e
lea ecx, [ebp - 0x70]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_4]
mov eax, dword [ebp - 0x70]
push eax
lea ecx, [ebp - 0x34]
call dword [sym.imp.MFC71U.DLL_CWinThread::CommonConstruct]
test eax, eax
lea ecx, [ebp - 0x70]
setne bl
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
test bl, bl
je 0x402bf8
push 1
lea ecx, [ebp - 0x84]
push ecx
lea ecx, [ebp - 0x34]
call dword [sym.imp.MFC71U.DLL_RFX_Text_Bulk]
mov esi, eax
mov ecx, esi
mov byte [ebp - 4], 0x1c
call dword [sym.imp.MFC71U.DLL_CWinThread::GetMainWnd]
push eax
push 0x40893c
lea ecx, [ebp - 0x74]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_4]
mov edx, dword [ebp - 0x74]
push edx
mov ecx, esi
call dword [sym.imp.MFC71U.DLL_CWinThread::CommonConstruct]
test eax, eax
lea ecx, [ebp - 0x74]
setne bl
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0x1b
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
test bl, bl
je 0x402b38
push 0x40893c
lea ecx, [ebp - 0x34]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::operator]
push 1
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x34]
call dword [sym.imp.MFC71U.DLL_CToolBar::Layout]
mov esi, eax
mov ecx, esi
mov byte [ebp - 4], 0x1d
call dword [sym.imp.MFC71U.DLL_CWinThread::GetMainWnd]
push eax
push 0x40893c
lea ecx, [ebp - 0x68]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_4]
mov ecx, dword [ebp - 0x68]
push ecx
mov ecx, esi
call dword [sym.imp.MFC71U.DLL_CWinThread::CommonConstruct]
mov ebx, eax
neg ebx
sbb bl, bl
lea ecx, [ebp - 0x68]
inc bl
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 0x1b
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
test bl, bl
mov edx, dword [ebp - 0x34]
je 0x402bdf
mov eax, dword [edx - 0xc]
dec eax
push eax
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x34]
call dword [sym.imp.MFC71U.DLL_RFX_Text_Bulk]
mov byte [ebp - 4], 0x1e
mov ecx, dword [ebp - 0x38]
mov edx, dword [eax]
push ecx
push edx
lea eax, [ebp + 0xc]
push 0x408930
push eax
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::Format]
add esp, 0x10
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 0x1b
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
jmp 0x402c05
mov ecx, dword [ebp - 0x38]
push ecx
push edx
lea eax, [ebp + 0xc]
push 0x408930
push eax
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::Format]
add esp, 0x10
jmp 0x402c05
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp + 0xc]
call dword [0x40826c]
lea edx, [ebp + 0xc]
push edx
lea ecx, [ebp - 0x38]
call dword [0x40826c]
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x58]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT]
push 0x40876c
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x1f
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_3]
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x20
call dword [0x40826c]
push 0x40892c
push 0x408a68
lea ecx, [ebp - 0x30]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::Replace]
mov ebx, dword [ebp + 8]
lea edx, [ebp - 0x38]
push edx
lea esi, [ebx + 0x2b4]
lea edi, [ebp - 0x6c]
call fcn.00403100
add esp, 4
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 0x21
call dword [0x40826c]
mov ecx, edi
mov byte [ebp - 4], 0x20
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402ce3
lea ecx, [ebp + 0xc]
push ecx
lea edx, [ebp - 0x64]
push edx
call fcn.00404350
mov ecx, dword [ebp - 0x4c]
add esp, 8
push ecx
mov ecx, eax
call dword [sym.imp.MFC71U.DLL_CWinThread::CommonConstruct]
test eax, eax
lea ecx, [ebp - 0x64]
setne bl
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
test bl, bl
je 0x402d0e
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0x2bc]
mov edx, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x58]
add esi, edx
push ecx
mov dword [eax + 0x2bc], esi
lea ecx, [eax + 0x270]
jmp 0x402cfe
mov esi, dword [ebx + 0x2bc]
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x58]
add esi, eax
push ecx
mov dword [ebx + 0x2bc], esi
lea ecx, [ebx + 0x270]
mov edx, dword [ebp - 0x30]
push edx
call fcn.00403500
mov dword [ebp - 0x50], 1
lea ecx, [ebp - 0x30]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [ebp - 0x58]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [ebp + 0xc]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xc
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov eax, dword [ebp - 0x54]
mov esi, dword [ebp - 0x44]
inc eax
mov dword [ebp - 0x54], eax
mov edi, eax
jmp 0x402820
lea ecx, [ebp - 0x5c]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [ebp - 0x4c]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [ebp - 0x60]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [ebp - 0x38]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x402d7c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
test esi, esi
mov byte [ebp - 4], 2
je 0x402d8a
mov edx, dword [esi]
push esi
call dword [edx + 8]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x402d9b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x402dac
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x402dc0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x50]
jmp 0x402e40
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.004063ff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8