Function at 0x412c40
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 0x468ed0
mov eax, dword fs:[0]
push eax
mov eax, 0x1050
call fcn.00444240
mov eax, dword [0x4c8578]
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 [0x50a1d4]
call fcn.00454128
push 5
lea eax, [ebp - 0x18]
push eax
push dword [0x50add8]
call fcn.00454128
push 5
lea eax, [ebp - 0x20]
push eax
push dword [0x50addc]
call fcn.00454128
add esp, 0x24
lea esi, [ebp - 0x18]
cmp dword [ebx + 0x454], 0
lea ecx, [ebx + 0x2ec4]
lea edx, [ebx + 0xb0d4]
lea eax, [ebx + 0x463c]
push esi
lea esi, [ebp - 0x20]
push esi
lea esi, [ebp - 0x28]
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea edi, [ebx + 0x3e3c]
push 0x503f78
push 0x503fa0
jne 0x412d71
lea edi, [ebx + 0x1cc0]
push edi
push 0x49608c
push ecx
push edx
push 0x503b78
push str.Mozilla_5.0___s__AppleWebKit_537.36_Chrome_84.0.4147.30_Edg__s__SecureBrowser__s__s__s_s__s__DKM:_s._s._s
push eax
call esi
push edi
push 0x49608c
lea eax, [ebx + 0x3e3c]
push 0x46d23c
push eax
call esi
add esp, 0x40
jmp 0x412d95
push 0x49608c
push ecx
push edx
push 0x503b78
push str.Mozilla_5.0___s__AppleWebKit_537.36_Chrome_84.0.4147.30_Edg__s__SecureBrowser__s__s_s__s__DKM:_s._s._s
push eax
call esi
push 0x49608c
push 0x46c878
push edi
call esi
add esp, 0x38
mov edi, dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
push 0
push 0
push 0xffffffffffffffff
push 0x51418c
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 + 0x463c]
mov dword [ebx + 0xb0e8], 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 0x41320d
push dword [ebp - 0x1044]
lea eax, [ebp - 0x828]
push 0x800
push eax
call fcn.00449d78
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 0x4131ea
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 0x4131ea
cmp dword [ebp - 0x104c], 4
jne 0x4131ea
cmp dword [ebp - 0x1048], 0xc8
jne 0x4131ea
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 0x413025
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp - 0x18]
push 0xc00
push 1
mov byte [esi + eax], 0
call fcn.00449ef9
add esp, 8
mov dword [ebx + 0x2ce00], eax
mov ecx, ebx
push 0
push 0
push 0x46f938
push 0x46f93c
push esi
push 0xc00
push eax
call fcn.00413b00
mov edx, dword [ebx + 0x2ce00]
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x18], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x412f21
sub ecx, dword [ebp - 0x18]
push 0xc00
push 1
mov byte [edx + ecx - 1], al
call fcn.00449ef9
add esp, 8
mov dword [ebx + 0x2ce10], eax
mov ecx, ebx
push 0
push 0
push 0x46f938
push 0x46f94c
push esi
push 0xc00
push eax
call fcn.00413b00
mov edx, dword [ebx + 0x2ce10]
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x18], eax
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x412f70
sub ecx, dword [ebp - 0x18]
push 0xc00
push 1
mov byte [edx + ecx - 1], al
call fcn.00449ef9
add esp, 8
mov dword [ebx + 0x2ce14], eax
mov ecx, ebx
push 0
push 0
push 0x46f938
push 0x46f964
push esi
push 0xc00
push eax
call fcn.00413b00
mov edx, dword [ebx + 0x2ce14]
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 0x412fc0
sub ecx, dword [ebp - 0x18]
push 0xc00
push 1
mov byte [edx + ecx - 1], al
call fcn.00449ef9
add esp, 8
mov dword [ebx + 0x2dc08], eax
mov ecx, ebx
push 0
push 0
push 0x46f938
push 0x46f97c
push esi
push 0xc00
push eax
call fcn.00413b00
mov edx, dword [ebx + 0x2dc08]
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 0x413010
sub ecx, dword [ebp - 0x18]
push esi
mov byte [edx + ecx - 1], al
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
push dword [ebx + 0x2ce10]
call fcn.004548f0
push dword [ebx + 0x2ce14]
mov dword [ebx + 0x2ce18], eax
call fcn.004548f0
push dword [ebx + 0x2dc08]
mov dword [ebx + 0x2ce08], eax
call fcn.004548f0
mov dword [ebx + 0x2dc0c], eax
add esp, 0xc
mov eax, dword [ebx + 0x2ce18]
test eax, eax
jne 0x413074
mov dword [ebx + 0x2ce18], 0x18c00
mov eax, 0x18c00
add eax, eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov dword [ebx + 0x2ce0c], eax
mov dword [eax], 0
lea eax, [ebp - 0x1050]
mov esi, dword [ebx + 0x2ce0c]
push eax
push 0x800
push esi
push edi
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
call edi
cmp eax, 1
jne 0x4130d9
mov ebx, dword [ebp - 0x1044]
mov eax, dword [ebp - 0x1050]
test eax, eax
je 0x4130d3
add esi, eax
lea eax, [ebp - 0x1050]
push eax
push 0x800
push esi
push ebx
call edi
cmp eax, 1
je 0x4130b2
mov ebx, dword [ebp - 0x1058]
mov byte [esi], 0
mov edx, dword [ebx + 0x2ce0c]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4130e7
push 0
push 0x46c9dc
sub ecx, esi
push ecx
push edx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
mov dword [ebx + 0x2ce04], eax
test eax, eax
je 0x4131cb
lea eax, [eax*2 + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov edx, dword [ebx + 0x2ce0c]
mov esi, eax
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x413131
push dword [ebx + 0x2ce04]
sub ecx, edi
push esi
push ecx
push edx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
push dword [ebx + 0x2ce0c]
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov eax, dword [ebx + 0x2ce04]
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 0x413170
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 + 0x2cdf8], edx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4131a0
sub ecx, edi
sar ecx, 1
push esi
lea eax, [ecx + 1]
push eax
push edx
call fcn.00452e14
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
push 0x46f998
jmp 0x4131d0
push 0x46f9b0
push dword [0x502db0]
call fcn.004403a0
add esp, 8
push dword [ebp - 0x1044]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x1048]
push 0x46f9c4
push 5
push dword [ebp - 0x105c]
call fcn.00407d30
add esp, 0x10
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x41320f
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.00443fa5
mov esp, ebp
pop ebp
ret 8