Function at 0x47cbb0
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a8148
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x4cfc64]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 0x18], edi
call fcn.00480035
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x47cbf7
push 0x80004005
call fcn.00420000
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.00480035
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x47cc2c
push 0x80004005
call fcn.00420000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov ecx, 0x4b280c
mov byte [ebp - 4], 1
test ecx, 0xffff0000
jne 0x47cd27
mov edx, ecx
movzx edi, dx
push edi
call fcn.00487f55
mov ebx, eax
test ebx, ebx
je 0x47cd41
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 0x47cd41
push edi
push eax
push ebx
call fcn.0042066d
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x47cd41
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 0x47ccb5
push edi
mov ecx, esi
call fcn.004204f5
movzx eax, word [ebx]
mov edx, dword [esi]
add ebx, 2
mov dword [ebp - 0x1c], edx
cmp eax, 0xffffffff
jne 0x47cccf
push ebx
call fcn.0048e8dc
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.0048e0d0
add esp, 0x10
cmp eax, 0x50
ja case.0x47ce2e.1
movzx edx, byte [eax + 0x47d2bc]
jmp dword [edx*4 + 0x47d2ac]
call fcn.0048059d
test edi, edi
jl 0x47cd1d
mov eax, dword [esi]
cmp edi, dword [eax - 8]
jg 0x47cd1d
mov edx, dword [ebp - 0x20]
mov dword [eax - 0xc], edi
mov eax, dword [esi]
xor ecx, ecx
mov word [edx + eax], cx
jmp 0x47cd41
push 0x80070057
call fcn.00420000
push 0x4b280c
call fcn.0048e8dc
add esp, 4
push eax
push 0x4b280c
mov ecx, esi
call fcn.00421168
push ecx
mov byte [ebp - 4], 2
mov ebx, esp
mov dword [ebp - 0x2c], esp
mov dword [ebp - 0x30], ebx
call fcn.00480035
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x47cd68
push 0x80004005
call fcn.00420000
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 0x47ce5d
mov edx, ecx
movzx esi, dx
push esi
call fcn.00487f55
mov edi, eax
test edi, edi
je 0x47ce77
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 0x47ce77
push esi
push eax
push edi
call fcn.0042066d
mov edi, eax
add esp, 0xc
test edi, edi
je 0x47ce77
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 0x47cdf1
push esi
mov ecx, ebx
call fcn.004204f5
movzx eax, word [edi]
mov edx, dword [ebx]
add edi, 2
mov dword [ebp - 0x20], edx
cmp eax, 0xffffffff
jne 0x47ce0b
push edi
call fcn.0048e8dc
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.0048e0d0
add esp, 0x10
cmp eax, 0x50
ja case.0x47ce2e.1
movzx edx, byte [eax + 0x47d320]
jmp dword [edx*4 + 0x47d310]
call fcn.004805d5
test esi, esi
jl 0x47cd1d
mov eax, dword [ebx]
cmp esi, dword [eax - 8]
jg 0x47cd1d
mov edx, dword [ebp - 0x1c]
mov dword [eax - 0xc], esi
mov eax, dword [ebx]
xor ecx, ecx
mov word [edx + eax], cx
jmp 0x47ce77
push str.AutoUpdate.xml
call fcn.0048e8dc
add esp, 4
push eax
push str.AutoUpdate.xml
mov ecx, ebx
call fcn.00421168
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.00421e21
add eax, 0x10
mov dword [edi], eax
add esp, 4
lea edi, [ebp - 0x10]
mov byte [ebp - 4], 0
call fcn.004555d0
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.00423c6c
mov eax, dword [eax]
push str.http:__
push eax
call fcn.0048ed05
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 0x47cef4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x47cf27
push 0xc
call fcn.0047f920
mov ebx, eax
add esp, 4
cmp ebx, edi
je 0x47cf22
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 0x47cf24
xor ebx, ebx
mov dword [esi + 0xc], ebx
push ecx
mov dword [ebp - 0x30], esp
cmp dword [esi + 0xc], edi
jne 0x47d0cc
mov ebx, esp
mov dword [ebp - 0x30], ebx
call fcn.00480035
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x47cf53
push 0x80004005
call fcn.00420000
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 0x47d047
mov edx, ecx
movzx esi, dx
push esi
call fcn.00487f55
mov edi, eax
test edi, edi
je 0x47d061
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 0x47d061
push esi
push eax
push edi
call fcn.0042066d
mov edi, eax
add esp, 0xc
test edi, edi
je 0x47d061
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 0x47cfdc
push esi
mov ecx, ebx
call fcn.004204f5
movzx eax, word [edi]
mov edx, dword [ebx]
add edi, 2
mov dword [ebp - 0x20], edx
cmp eax, 0xffffffff
jne 0x47cff6
push edi
call fcn.0048e8dc
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.0048e0d0
add esp, 0x10
cmp eax, 0x50
ja case.0x47ce2e.1
movzx edx, byte [eax + 0x47d384]
jmp dword [edx*4 + 0x47d374]
test esi, esi
jl 0x47cd1d
mov eax, dword [ebx]
cmp esi, dword [eax - 8]
jg 0x47cd1d
mov edx, dword [ebp - 0x1c]
mov dword [eax - 0xc], esi
mov eax, dword [ebx]
xor ecx, ecx
mov word [edx + eax], cx
jmp 0x47d061
push str.CVirtAutoUpdate::CheckForNewVersion:_unknown_protocol_
call fcn.0048e8dc
add esp, 4
push eax
push str.CVirtAutoUpdate::CheckForNewVersion:_unknown_protocol_
mov ecx, ebx
call fcn.00421168
mov byte [ebp - 4], 5
call fcn.0047c4d0
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 0x47d090
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 0x47d0b6
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.00421e21
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.00421e21
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.00458e70
add esp, 0xc
test eax, eax
jne 0x47d193
push ecx
mov ecx, esp
mov dword [ebp - 0x30], esp
push str.CVirtAutoUpdate::CheckForNewVersion:_cannot_get_local_file_size
call fcn.00421017
call fcn.0047c4d0
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 0x47d153
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 0x47d0b6
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 0x47d222
push str.CVirtAutoUpdate::CheckForNewVersion:_cannot_get_remote_file_size
call fcn.00421017
call fcn.0047c4d0
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 0x47d1e2
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 0x47d0b6
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.004559f0
add esp, 0x10
call fcn.0047c4d0
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 0x47d26d
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 0x47d293
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