Function at 0x413fb0
Capabilities:
Check http status code
Create http request
Read data from internet
Receive data
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46b1b0
mov eax, dword fs:[0]
push eax
mov eax, 0x1050
call fcn.00446880
mov eax, dword [0x4cc5a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x1058], ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1044], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x105c], eax
xor eax, eax
mov dword [ebp - 0x1040], 0
mov dword [ebp - 0x1048], 0
mov dword [ebp - 0x104c], 4
mov dword [ebp - 0x1030], 0
mov dword [ebp - 0x102c], 7
mov word [ebp - 0x1040], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x28]
push 5
push eax
push dword [0x516d90]
call fcn.00456a47
push 5
lea eax, [ebp - 0x18]
push eax
push dword [0x516d94]
call fcn.00456a47
push 5
lea eax, [ebp - 0x20]
push eax
push dword [0x516d98]
call fcn.00456a47
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea edx, [ebp - 0x18]
add esp, 0x24
lea ecx, [ebx + 0xdd3c]
cmp dword [ebx + 0x454], 0
lea eax, [ebx + 0x4ad0]
lea edi, [ebx + 0x42d0]
push edx
lea edx, [ebp - 0x20]
push edx
lea edx, [ebp - 0x28]
push edx
push 0x54e9dc
push 0x5267c8
push 0x50be38
push 0x50be60
jne 0x4140e9
lea edi, [ebx + 0x1cc4]
push edi
push str.WINCSECB
push 0x50a538
push ecx
push 0x50ba38
push str.Mozilla_5.0___s__AppleWebKit_537.36_Chrome_84.0.4147.30_Edg__s__SecureBrowser__s__s__s_s__s__TS__s__UUID__s__DKM:_s._s._s
push eax
call esi
push edi
push str.WINCSECB
lea eax, [ebx + 0x42d0]
push str._s__s
push eax
call esi
add esp, 0x48
jmp 0x414111
push str.WINCSECB
push 0x50a538
push ecx
push 0x50ba38
push str.Mozilla_5.0___s__AppleWebKit_537.36_Chrome_84.0.4147.30_Edg__s__SecureBrowser__s__s_s__s__TS__s__UUID__s__DKM:_s._s._s
push eax
call esi
push str.WINCSECB
push 0x46e8f8
push edi
call esi
add esp, 0x40
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0xffffffffffffffff
push 0x521898
push 0
push 0xfde9
call edi
mov esi, eax
lea eax, [esi + esi]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push esi
push eax
push 0xffffffffffffffff
lea esi, [ebx + 0x4ad0]
mov dword [ebx + 0xdd50], eax
push esi
push 0
push 0xfde9
call edi
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.WININET.dll_InternetOpenA]
mov esi, eax
test esi, esi
je 0x41458f
push dword [ebp - 0x1044]
lea eax, [ebp - 0x828]
push 0x800
push eax
call fcn.0044c498
add esp, 0xc
mov dword [ebp - 0x1054], 0x800
lea eax, [ebp - 0x1054]
push 0x2000000
push eax
lea eax, [ebp - 0x1028]
push eax
lea eax, [ebp - 0x828]
push eax
call dword [sym.imp.WININET.dll_InternetCanonicalizeUrlA]
push 0
push 0x84000c00
push 0
push 0
lea eax, [ebp - 0x1028]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov edi, eax
mov dword [ebp - 0x1044], edi
test edi, edi
je 0x41456c
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
lea eax, [ebp - 0x104c]
push 0
push eax
lea eax, [ebp - 0x1048]
push eax
push 0x20000013
push edi
call esi
test eax, eax
je 0x41456c
cmp dword [ebp - 0x104c], 4
jne 0x41456c
cmp dword [ebp - 0x1048], 0xc8
jne 0x41456c
push 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push eax
push 0
push 0x16
push edi
call esi
mov eax, dword [ebp - 0x20]
inc eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 0
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push ecx
push eax
push 0x16
push edi
call esi
test eax, eax
je 0x4143a5
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp - 0x18]
push 0xc00
push 1
mov byte [esi + eax], 0
call fcn.0044c619
add esp, 8
mov dword [ebx + 0x33c84], eax
mov ecx, ebx
push 0
push 0
push 0x4720b0
push str.X_ITS_Hash:
push esi
push 0xc00
push eax
call fcn.00414d20
mov edx, dword [ebx + 0x33c84]
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x18], eax
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4142a0
sub ecx, dword [ebp - 0x18]
push 0xc00
push 1
mov byte [edx + ecx - 1], al
call fcn.0044c619
add esp, 8
mov dword [ebx + 0x33c94], eax
mov ecx, ebx
push 0
push 0
push 0x4720b0
push str.X_ITS_Content_Length:
push esi
push 0xc00
push eax
call fcn.00414d20
mov edx, dword [ebx + 0x33c94]
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x18], eax
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4142f0
sub ecx, dword [ebp - 0x18]
push 0xc00
push 1
mov byte [edx + ecx - 1], al
call fcn.0044c619
add esp, 8
mov dword [ebx + 0x33c98], eax
mov ecx, ebx
push 0
push 0
push 0x4720b0
push str.x_public_keys_size:
push esi
push 0xc00
push eax
call fcn.00414d20
mov edx, dword [ebx + 0x33c98]
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x18], eax
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x414340
sub ecx, dword [ebp - 0x18]
push 0xc00
push 1
mov byte [edx + ecx - 1], al
call fcn.0044c619
add esp, 8
mov dword [ebx + 0x34a88], eax
mov ecx, ebx
push 0
push 0
push 0x4720b0
push str.x_multi_public_keys_size:
push esi
push 0xc00
push eax
call fcn.00414d20
mov edx, dword [ebx + 0x34a88]
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x18], eax
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x414390
sub ecx, dword [ebp - 0x18]
push esi
mov byte [edx + ecx - 1], al
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebx + 0x33c94]
call fcn.00456114
push dword [ebx + 0x33c98]
mov dword [ebx + 0x33c9c], eax
call fcn.00456114
push dword [ebx + 0x34a88]
mov dword [ebx + 0x33c8c], eax
call fcn.00456114
mov dword [ebx + 0x34a8c], eax
add esp, 0xc
mov eax, dword [ebx + 0x33c9c]
test eax, eax
jne 0x4143f4
mov dword [ebx + 0x33c9c], 0x18c00
mov eax, 0x18c00
add eax, eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebx + 0x33c90], eax
mov dword [eax], 0
lea eax, [ebp - 0x1050]
mov esi, dword [ebx + 0x33c90]
push eax
push 0x800
push esi
push edi
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
call edi
cmp eax, 1
jne 0x414459
mov ebx, dword [ebp - 0x1044]
mov eax, dword [ebp - 0x1050]
test eax, eax
je 0x414453
add esi, eax
lea eax, [ebp - 0x1050]
push eax
push 0x800
push esi
push ebx
call edi
cmp eax, 1
je 0x414432
mov ebx, dword [ebp - 0x1058]
mov byte [esi], 0
mov edx, dword [ebx + 0x33c90]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x414467
push 0
push 0x46ea58
sub ecx, esi
push ecx
push edx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebx + 0x33c88], eax
test eax, eax
je 0x41454b
lea eax, [eax*2 + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edx, dword [ebx + 0x33c90]
mov esi, eax
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4144b1
push dword [ebx + 0x33c88]
sub ecx, edi
push esi
push ecx
push edx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push dword [ebx + 0x33c90]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebx + 0x33c88]
xor ecx, ecx
mov word [esi + eax*2], cx
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4144f0
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, esi
mov edx, eax
mov dword [ebx + 0x33c7c], edx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414520
sub ecx, edi
sar ecx, 1
push esi
lea eax, [ecx + 1]
push eax
push edx
call fcn.00455534
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push str.Downloading_successful
jmp 0x414550
push str.Downloading_failed
push 1
push dword [0x50a534]
call fcn.004429d0
add esp, 0xc
push dword [ebp - 0x1044]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x1048]
push 0x47213c
push 5
push dword [ebp - 0x105c]
call fcn.00408300
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x414591
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004465ed
mov esp, ebp
pop ebp
ret 8