Function at 0x47a850
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a5d98
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x4ccc64]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 0x18], edi
call fcn.0047dccb
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x47a897
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.0047dccb
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x47a8cc
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, 0x4b11ac
mov byte [ebp - 4], 1
test ecx, 0xffff0000
jne 0x47a9c7
mov edx, ecx
movzx edi, dx
push edi
call fcn.00485bef
mov ebx, eax
test ebx, ebx
je 0x47a9e1
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 0x47a9e1
push edi
push eax
push ebx
call fcn.004206ac
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x47a9e1
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 0x47a955
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 0x47a96f
push ebx
call fcn.0048c02b
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.0048bd6a
add esp, 0x10
cmp eax, 0x50
ja case.0x47aace.1
movzx edx, byte [eax + 0x47af5c]
jmp dword [edx*4 + 0x47af4c]
call fcn.0047e233
test edi, edi
jl 0x47a9bd
mov eax, dword [esi]
cmp edi, dword [eax - 8]
jg 0x47a9bd
mov edx, dword [ebp - 0x20]
mov dword [eax - 0xc], edi
mov eax, dword [esi]
xor ecx, ecx
mov word [edx + eax], cx
jmp 0x47a9e1
push 0x80070057
call fcn.00420000
push 0x4b11ac
call fcn.0048c02b
add esp, 4
push eax
push 0x4b11ac
mov ecx, esi
call fcn.004214c7
push ecx
mov byte [ebp - 4], 2
mov ebx, esp
mov dword [ebp - 0x2c], esp
mov dword [ebp - 0x30], ebx
call fcn.0047dccb
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x47aa08
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 0x47aafd
mov edx, ecx
movzx esi, dx
push esi
call fcn.00485bef
mov edi, eax
test edi, edi
je 0x47ab17
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 0x47ab17
push esi
push eax
push edi
call fcn.004206ac
mov edi, eax
add esp, 0xc
test edi, edi
je 0x47ab17
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 0x47aa91
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 0x47aaab
push edi
call fcn.0048c02b
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.0048bd6a
add esp, 0x10
cmp eax, 0x50
ja case.0x47aace.1
movzx edx, byte [eax + 0x47afc0]
jmp dword [edx*4 + 0x47afb0]
call fcn.0047e26b
test esi, esi
jl 0x47a9bd
mov eax, dword [ebx]
cmp esi, dword [eax - 8]
jg 0x47a9bd
mov edx, dword [ebp - 0x1c]
mov dword [eax - 0xc], esi
mov eax, dword [ebx]
xor ecx, ecx
mov word [edx + eax], cx
jmp 0x47ab17
push str.AutoUpdate.xml
call fcn.0048c02b
add esp, 4
push eax
push str.AutoUpdate.xml
mov ecx, ebx
call fcn.004214c7
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.00421538
add eax, 0x10
mov dword [edi], eax
add esp, 4
lea edi, [ebp - 0x10]
mov byte [ebp - 4], 0
call fcn.00453850
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.00423bc8
mov eax, dword [eax]
push str.http:__
push eax
call fcn.0048c708
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 0x47ab94
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x47abc7
push 0xc
call fcn.0047d5ba
mov ebx, eax
add esp, 4
cmp ebx, edi
je 0x47abc2
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 0x47abc4
xor ebx, ebx
mov dword [esi + 0xc], ebx
push ecx
mov dword [ebp - 0x30], esp
cmp dword [esi + 0xc], edi
jne 0x47ad6c
mov ebx, esp
mov dword [ebp - 0x30], ebx
call fcn.0047dccb
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x47abf3
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 0x47ace7
mov edx, ecx
movzx esi, dx
push esi
call fcn.00485bef
mov edi, eax
test edi, edi
je 0x47ad01
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 0x47ad01
push esi
push eax
push edi
call fcn.004206ac
mov edi, eax
add esp, 0xc
test edi, edi
je 0x47ad01
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 0x47ac7c
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 0x47ac96
push edi
call fcn.0048c02b
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.0048bd6a
add esp, 0x10
cmp eax, 0x50
ja case.0x47aace.1
movzx edx, byte [eax + 0x47b024]
jmp dword [edx*4 + 0x47b014]
test esi, esi
jl 0x47a9bd
mov eax, dword [ebx]
cmp esi, dword [eax - 8]
jg 0x47a9bd
mov edx, dword [ebp - 0x1c]
mov dword [eax - 0xc], esi
mov eax, dword [ebx]
xor ecx, ecx
mov word [edx + eax], cx
jmp 0x47ad01
push str.CVirtAutoUpdate::CheckForNewVersion:_unknown_protocol_
call fcn.0048c02b
add esp, 4
push eax
push str.CVirtAutoUpdate::CheckForNewVersion:_unknown_protocol_
mov ecx, ebx
call fcn.004214c7
mov byte [ebp - 4], 5
call fcn.0047a170
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 0x47ad30
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 0x47ad56
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.00421538
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.00421538
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.00457000
add esp, 0xc
test eax, eax
jne 0x47ae33
push ecx
mov ecx, esp
mov dword [ebp - 0x30], esp
push str.CVirtAutoUpdate::CheckForNewVersion:_cannot_get_local_file_size
call fcn.00421197
call fcn.0047a170
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 0x47adf3
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 0x47ad56
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 0x47aec2
push str.CVirtAutoUpdate::CheckForNewVersion:_cannot_get_remote_file_size
call fcn.00421197
call fcn.0047a170
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 0x47ae82
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 0x47ad56
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.00453c70
add esp, 0x10
call fcn.0047a170
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 0x47af0d
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 0x47af33
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