Function at 0x402a50
Capabilities:
Check http status code
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4336ce
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x94
push ebx
push esi
push edi
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x10], esp
push eax
mov edi, 0x43a538
mov ebx, ecx
call fcn.00403b10
mov eax, dword [eax]
add esp, 4
push eax
push 3
mov esi, 0x446c08
call fcn.00406530
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402ab3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 4], 4
call fcn.00424eee
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 5
call fcn.00424eee
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x40], eax
mov byte [ebp - 4], 6
call fcn.00424eee
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x30], eax
push 0x17
push esi
push str.Msxml2.XMLHTTP.3.0
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 8
call fcn.00403c20
cmp eax, esi
jge 0x402b2b
push eax
call fcn.00423110
mov word [ebp - 0x70], 0xb
mov word [ebp - 0x68], si
push 0x4441b8
push ecx
mov byte [ebp - 4], 9
mov eax, dword [ebx]
mov ebx, esp
mov dword [ebp - 0x44], esp
push eax
mov esi, 0x4441b8
lea edi, [ebp - 0x70]
call fcn.004014b0
push ecx
mov byte [ebp - 4], 0xa
mov ebx, esp
mov dword [ebp - 0x48], esp
push 0x43a520
call fcn.004014b0
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x18]
xor ebx, ebx
cmp eax, ebx
jne 0x402b7f
push 0x80004003
call fcn.00423110
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, esi
mov edx, edi
call fcn.00401650
lea edx, [ebp - 0x70]
push edx
mov esi, eax
mov byte [ebp - 4], 8
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp eax, ebx
jge 0x402baa
push eax
call fcn.00423110
cmp esi, ebx
jge 0x402bb4
push esi
call fcn.00423110
mov eax, dword [ebp - 0x18]
cmp eax, ebx
jne 0x402bc8
push 0x80004003
call fcn.00423110
mov eax, dword [ebp - 0x18]
mov esi, dword [0x4441b8]
mov ecx, dword [eax]
sub esp, 0x10
mov edx, esp
mov dword [edx], esi
mov esi, dword [0x4441bc]
mov dword [edx + 4], esi
mov esi, dword [0x4441c0]
mov dword [edx + 8], esi
mov esi, dword [0x4441c4]
push eax
mov edi, eax
mov dword [edx + 0xc], esi
call dword [ecx + 0x2c]
mov esi, eax
cmp esi, ebx
jge 0x402c10
push 0x43a2d8
push edi
push esi
call fcn.00423120
push esi
call fcn.00423110
mov eax, dword [ebp - 0x18]
cmp eax, ebx
jne 0x402c24
push 0x80004003
call fcn.00423110
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push eax
mov esi, eax
mov dword [ebp - 0x14], ebx
call dword [ecx + 0x34]
cmp eax, ebx
jge 0x402c43
push 0x43a2d8
push esi
push eax
call fcn.00423120
cmp dword [ebp - 0x14], 0xc8
je 0x402c5d
push 0x43ee0c
lea eax, [ebp - 0x5c]
push eax
mov dword [ebp - 0x5c], ebx
call fcn.0041629b
cmp dword [ebp - 0x18], ebx
jne 0x402c6c
push 0x80004003
call fcn.00423110
mov esi, dword [ebp - 0x18]
lea edi, [ebp - 0x14]
call fcn.004017b0
mov eax, dword [eax]
cmp eax, ebx
je 0x402c8a
mov ecx, dword [eax]
mov esi, eax
push eax
mov dword [ebp - 0x38], esi
call dword [ecx + 4]
jmp 0x402c8d
mov esi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x402c9a
mov edx, dword [eax]
push eax
call dword [edx + 8]
cmp esi, ebx
jne 0x402ca8
push 0x80004003
call fcn.00423110
mov eax, dword [ebp - 0x28]
cmp eax, ebx
je 0x402cb5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x28]
push eax
push 0x43a318
mov dword [ebp - 0x28], ebx
mov edx, dword [esi]
push esi
call dword [edx]
cmp eax, ebx
jge 0x402cd0
push eax
call fcn.00423110
push ecx
mov ebx, esp
mov dword [ebp - 0x44], esp
push str._manifest_filelist_file
call fcn.004014b0
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x402cf5
push 0x80004003
call fcn.00423110
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 8
mov edi, dword [ebp - 0x28]
push ecx
call fcn.004017f0
mov eax, dword [eax]
test eax, eax
je 0x402d18
mov edx, dword [eax]
mov ebx, eax
push eax
mov dword [ebp - 0x34], ebx
call dword [edx + 4]
jmp 0x402d1b
mov ebx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x14]
xor edi, edi
cmp eax, edi
je 0x402d2a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp ebx, edi
jne 0x402d38
push 0x80004003
call fcn.00423110
mov edx, dword [ebx]
lea eax, [ebp - 0x14]
push eax
push ebx
mov dword [ebp - 0x14], edi
call dword [edx + 0x20]
cmp eax, edi
jge 0x402d55
push 0x43a2e8
push ebx
push eax
call fcn.00423120
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x14], edi
mov edi, edi
cmp edi, dword [ebp - 0x4c]
jge 0x40311a
test ebx, ebx
jne 0x402d77
push 0x80004003
call fcn.00423110
mov edx, edi
lea edi, [ebp - 0x54]
mov esi, ebx
call fcn.004018b0
mov byte [ebp - 4], 0xd
mov esi, dword [eax]
test esi, esi
je 0x402dda
mov edx, dword [esi]
push esi
call dword [edx + 4]
mov eax, dword [esi]
lea ecx, [ebp - 0x58]
push ecx
push 0x43a308
push esi
call dword [eax]
mov edi, dword [ebp - 0x58]
xor edx, edx
mov ebx, eax
mov eax, dword [ebp - 0x20]
test ebx, ebx
setl dl
dec edx
and edi, edx
test eax, eax
je 0x402dbd
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi]
push esi
mov dword [ebp - 0x20], edi
call dword [eax + 8]
test ebx, ebx
jge 0x402df5
cmp ebx, 0x80004002
je 0x402df5
push ebx
call fcn.00423110
jmp 0x402df5
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x402df2
test eax, eax
mov dword [ebp - 0x20], 0
je 0x402df2
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov edi, dword [ebp - 0x20]
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x402e06
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push ecx
mov ebx, esp
mov dword [ebp - 0x3c], esp
push str.filename
call fcn.004014b0
test edi, edi
mov byte [ebp - 4], 0xe
jne 0x402e28
push 0x80004003
call fcn.00423110
lea edx, [ebp - 0x70]
mov bl, 8
push edx
mov byte [ebp - 4], bl
call fcn.004018f0
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xf
call fcn.004044c0
lea eax, [ebp - 0x70]
mov byte [ebp - 4], bl
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
push eax
call esi
test eax, eax
jge 0x402e5c
push eax
call fcn.00423110
push ecx
mov ebx, esp
mov dword [ebp - 0x3c], esp
push str.filesize
call fcn.004014b0
test edi, edi
mov byte [ebp - 4], 0x10
jne 0x402e7e
push 0x80004003
call fcn.00423110
lea ecx, [ebp - 0x90]
mov bl, 8
push ecx
mov byte [ebp - 4], bl
call fcn.004018f0
mov ecx, eax
mov byte [ebp - 4], 0x11
call fcn.00401580
lea edx, [ebp - 0x90]
push edx
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], bl
call esi
test eax, eax
jge 0x402eb3
push eax
call fcn.00423110
push ecx
mov ebx, esp
mov dword [ebp - 0x50], esp
push str.fileversion
call fcn.004014b0
test edi, edi
mov byte [ebp - 4], 0x12
jne 0x402ed5
push 0x80004003
call fcn.00423110
lea eax, [ebp - 0x80]
mov bl, 8
push eax
mov byte [ebp - 4], bl
call fcn.004018f0
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x13
call fcn.004044c0
lea ecx, [ebp - 0x80]
push ecx
mov byte [ebp - 4], bl
call esi
test eax, eax
jge 0x402f03
push eax
call fcn.00423110
push ecx
mov ebx, esp
mov dword [ebp - 0x50], esp
push 0x43a4e0
call fcn.004014b0
test edi, edi
mov byte [ebp - 4], 0x14
jne 0x402f25
push 0x80004003
call fcn.00423110
lea edx, [ebp - 0xa0]
push edx
mov byte [ebp - 4], 8
call fcn.004018f0
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x15
call fcn.004044c0
lea eax, [ebp - 0xa0]
push eax
mov byte [ebp - 4], 8
call esi
test eax, eax
jge 0x402f59
push eax
call fcn.00423110
mov eax, dword [ebp - 0x3c]
test eax, eax
jne 0x402fee
mov esi, dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
push 0
push 0x43a4c4
push esi
call fcn.00426699
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402f98
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402fb9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esi - 0x10]
mov byte [ebp - 4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402fd7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test edi, edi
mov byte [ebp - 4], 3
je 0x403250
mov eax, dword [edi]
push edi
call dword [eax + 8]
jmp 0x403250
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
lea esi, [edi + 0x2ac]
lea ecx, [ebp - 0x60]
push esi
push ecx
call fcn.004039a0
mov eax, dword [eax]
add esp, 0xc
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov ebx, eax
mov eax, dword [ebp - 0x60]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403030
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test ebx, ebx
je 0x4030cf
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x44]
push esi
push ecx
call fcn.004039a0
add esp, 0xc
push eax
lea edx, [ebp - 0x48]
push edx
mov byte [ebp - 4], 0x16
call fcn.00406bf0
mov ebx, dword [ebp - 0x30]
mov eax, dword [eax]
add esp, 8
push ebx
push eax
call fcn.0041414a
add esp, 8
test eax, eax
mov eax, dword [ebp - 0x48]
setne byte [ebp - 0x29]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40308c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x44]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4030ad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov al, byte [ebp - 0x29]
test al, al
je 0x403106
mov eax, dword [ebp - 0x3c]
mov edx, dword [edi + 0x2b4]
push 0
push ebx
add edx, eax
push eax
mov eax, dword [ebp - 0x24]
mov dword [edi + 0x2b4], edx
push eax
jmp 0x4030eb
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x3c]
mov ebx, dword [edi + 0x2b4]
mov edx, dword [ebp - 0x24]
push 0
push ecx
add ebx, eax
push eax
mov dword [edi + 0x2b4], ebx
push edx
lea ecx, [edi + 0x25c]
call fcn.00404bf0
mov ecx, edi
push 5
call fcn.00428f5c
mov dword [ebp - 0x1c], 1
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x38]
mov ebx, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x14], eax
mov edi, eax
jmp 0x402d60
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40313b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40315c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40317d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x40318e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
test ebx, ebx
mov byte [ebp - 4], 2
je 0x40319c
mov edx, dword [ebx]
push ebx
call dword [edx + 8]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x4031ad
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
test esi, esi
mov byte [ebp - 4], 0
je 0x4031bb
mov edx, dword [esi]
push esi
call dword [edx + 8]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4031cf
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x403261
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x403272
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x403283
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x403297
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4