Function at 0x48c070
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b8188
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x4e5c64]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 0x18], edi
call fcn.0048f565
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x48c0b7
push 0x80004005
call fcn.00421000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
push ecx
mov dword [ebp - 4], edi
mov esi, esp
mov dword [ebp - 0x28], esp
mov dword [ebp - 0x2c], esi
call fcn.0048f565
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x48c0ec
push 0x80004005
call fcn.00421000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov ecx, 0x4c2ec8
mov byte [ebp - 4], 1
test ecx, 0xffff0000
jne 0x48c1e7
mov edx, ecx
movzx edi, dx
push edi
call fcn.00497482
mov ebx, eax
test ebx, ebx
je 0x48c201
mov eax, edi
shr eax, 4
inc eax
movzx ecx, ax
push 6
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x48c201
push edi
push eax
push ebx
call fcn.00421708
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x48c201
mov eax, dword [esi]
movzx edi, word [ebx]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, edi
or eax, ecx
jge 0x48c175
push edi
mov ecx, esi
call fcn.00421527
movzx eax, word [ebx]
mov edx, dword [esi]
add ebx, 2
mov dword [ebp - 0x1c], edx
cmp eax, 0xffffffff
jne 0x48c18f
push ebx
call fcn.0049db0a
add esp, 4
inc eax
add eax, eax
push eax
lea ecx, [edi + edi]
push ebx
push ecx
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.0049d600
add esp, 0x10
cmp eax, 0x50
ja case.0x48c2ee.1
movzx edx, byte [eax + 0x48c77c]
jmp dword [edx*4 + 0x48c76c]
call fcn.0048facd
test edi, edi
jl 0x48c1dd
mov eax, dword [esi]
cmp edi, dword [eax - 8]
jg 0x48c1dd
mov edx, dword [ebp - 0x20]
mov dword [eax - 0xc], edi
mov eax, dword [esi]
xor ecx, ecx
mov word [edx + eax], cx
jmp 0x48c201
push 0x80070057
call fcn.00421000
push 0x4c2ec8
call fcn.0049db0a
add esp, 4
push eax
push 0x4c2ec8
mov ecx, esi
call fcn.00423f19
push ecx
mov byte [ebp - 4], 2
mov ebx, esp
mov dword [ebp - 0x2c], esp
mov dword [ebp - 0x30], ebx
call fcn.0048f565
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x48c228
push 0x80004005
call fcn.00421000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebx], eax
mov ecx, str.AutoUpdate.xml
mov byte [ebp - 4], 3
test ecx, 0xffff0000
jne 0x48c31d
mov edx, ecx
movzx esi, dx
push esi
call fcn.00497482
mov edi, eax
test edi, edi
je 0x48c337
mov eax, esi
shr eax, 4
inc eax
movzx ecx, ax
push 6
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x48c337
push esi
push eax
push edi
call fcn.00421708
mov edi, eax
add esp, 0xc
test edi, edi
je 0x48c337
mov eax, dword [ebx]
movzx esi, word [edi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, esi
or eax, ecx
jge 0x48c2b1
push esi
mov ecx, ebx
call fcn.00421527
movzx eax, word [edi]
mov edx, dword [ebx]
add edi, 2
mov dword [ebp - 0x20], edx
cmp eax, 0xffffffff
jne 0x48c2cb
push edi
call fcn.0049db0a
add esp, 4
inc eax
add eax, eax
push eax
lea ecx, [esi + esi]
push edi
push ecx
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.0049d600
add esp, 0x10
cmp eax, 0x50
ja case.0x48c2ee.1
movzx edx, byte [eax + 0x48c7e0]
jmp dword [edx*4 + 0x48c7d0]
call fcn.0048fb05
test esi, esi
jl 0x48c1dd
mov eax, dword [ebx]
cmp esi, dword [eax - 8]
jg 0x48c1dd
mov edx, dword [ebp - 0x1c]
mov dword [eax - 0xc], esi
mov eax, dword [ebx]
xor ecx, ecx
mov word [edx + eax], cx
jmp 0x48c337
push str.AutoUpdate.xml
call fcn.0049db0a
add esp, 4
push eax
push str.AutoUpdate.xml
mov ecx, ebx
call fcn.00423f19
mov byte [ebp - 4], 4
mov esi, dword [ebp + 8]
mov eax, dword [esi + 4]
push ecx
sub eax, 0x10
mov dword [ebp - 0x30], esp
mov edi, esp
push eax
call fcn.00423f8a
add eax, 0x10
mov dword [edi], eax
add esp, 4
lea edi, [ebp - 0x10]
mov byte [ebp - 4], 0
call fcn.004618b0
add esp, 0xc
push 7
lea eax, [ebp + 8]
mov byte [ebp - 4], 5
xor edi, edi
push eax
mov ecx, esi
mov dword [ebp - 0x24], edi
mov dword [esi + 0xc], edi
call fcn.00423631
mov eax, dword [eax]
push str.http:__
push eax
call fcn.0049dd50
add esp, 8
cmp eax, edi
mov eax, dword [ebp + 8]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48c3b4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x48c3e7
push 0xc
call fcn.0048ee50
mov ebx, eax
add esp, 4
cmp ebx, edi
je 0x48c3e2
push edi
push edi
push edi
push edi
push str.CHttpRemoteFile
mov dword [ebx], vtable.CHttpRemoteFile.0
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebx + 4], eax
jmp 0x48c3e4
xor ebx, ebx
mov dword [esi + 0xc], ebx
push ecx
mov dword [ebp - 0x30], esp
cmp dword [esi + 0xc], edi
jne 0x48c58c
mov ebx, esp
mov dword [ebp - 0x30], ebx
call fcn.0048f565
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x48c413
push 0x80004005
call fcn.00421000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebx], eax
mov ecx, str.CVirtAutoUpdate::CheckForNewVersion:_unknown_protocol_
mov byte [ebp - 4], 6
test ecx, 0xffff0000
jne 0x48c507
mov edx, ecx
movzx esi, dx
push esi
call fcn.00497482
mov edi, eax
test edi, edi
je 0x48c521
mov eax, esi
shr eax, 4
inc eax
movzx ecx, ax
push 6
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x48c521
push esi
push eax
push edi
call fcn.00421708
mov edi, eax
add esp, 0xc
test edi, edi
je 0x48c521
mov eax, dword [ebx]
movzx esi, word [edi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, esi
or eax, ecx
jge 0x48c49c
push esi
mov ecx, ebx
call fcn.00421527
movzx eax, word [edi]
mov edx, dword [ebx]
add edi, 2
mov dword [ebp - 0x20], edx
cmp eax, 0xffffffff
jne 0x48c4b6
push edi
call fcn.0049db0a
add esp, 4
inc eax
add eax, eax
push eax
lea ecx, [esi + esi]
push edi
push ecx
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.0049d600
add esp, 0x10
cmp eax, 0x50
ja case.0x48c2ee.1
movzx edx, byte [eax + 0x48c844]
jmp dword [edx*4 + 0x48c834]
test esi, esi
jl 0x48c1dd
mov eax, dword [ebx]
cmp esi, dword [eax - 8]
jg 0x48c1dd
mov edx, dword [ebp - 0x1c]
mov dword [eax - 0xc], esi
mov eax, dword [ebx]
xor ecx, ecx
mov word [edx + eax], cx
jmp 0x48c521
push str.CVirtAutoUpdate::CheckForNewVersion:_unknown_protocol_
call fcn.0049db0a
add esp, 4
push eax
push str.CVirtAutoUpdate::CheckForNewVersion:_unknown_protocol_
mov ecx, ebx
call fcn.00423f19
mov byte [ebp - 4], 5
call fcn.0048b990
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48c550
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48c576
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi]
sub eax, 0x10
mov edi, esp
push eax
call fcn.00423f8a
add eax, 0x10
mov dword [edi], eax
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
add esp, 4
call eax
mov eax, dword [esi + 8]
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x20]
push edx
push ecx
sub eax, 0x10
mov dword [ebp - 0x30], esp
mov edi, esp
push eax
call fcn.00423f8a
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.00465400
add esp, 0xc
test eax, eax
jne 0x48c653
push ecx
mov ecx, esp
mov dword [ebp - 0x30], esp
push str.CVirtAutoUpdate::CheckForNewVersion:_cannot_get_local_file_size
call fcn.00423442
call fcn.0048b990
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48c613
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48c576
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov esi, dword [esi + 0xc]
mov edx, dword [esi]
mov edx, dword [edx + 4]
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call edx
push ecx
mov ecx, esp
mov dword [ebp - 0x30], esp
test eax, eax
jne 0x48c6e2
push str.CVirtAutoUpdate::CheckForNewVersion:_cannot_get_remote_file_size
call fcn.00423442
call fcn.0048b990
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48c6a2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48c576
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x20]
push edx
push esi
push str.CVirtAutoUpdate::CheckForNewVersion:_LocalFileSize_d__RemoteFileSize_d
push ecx
call fcn.00461d60
add esp, 0x10
call fcn.0048b990
xor eax, eax
add esp, 4
cmp esi, dword [ebp - 0x18]
mov byte [ebp - 4], 0
setne al
or edx, 0xffffffff
mov esi, eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48c72d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48c753
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4