Function at 0x413120
Capabilities:
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4451f5
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x459020]
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 edi, ecx
mov dword [ebp - 0x50], edi
mov ebx, dword [ebp + 8]
xorps xmm0, xmm0
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x28], ebx
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
sub esp, 8
mov dword [ebp - 4], 0
call fcn.00413060
test al, al
jne 0x4131e7
mov ecx, dword [ebp - 0x1c]
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
test ecx, ecx
je 0x413428
mov edx, dword [ebp - 0x14]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x4131d8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413448
push edx
push ecx
call fcn.00423b44
add esp, 8
jmp 0x413428
cmp dword [0x45d17c], 8
lea ecx, [ebp - 0x68]
mov esi, 0x45d168
mov edx, 0x42
cmovae esi, dword [0x45d168]
call fcn.00412330
cmp dword [eax + 0x14], 8
jb 0x41320f
mov eax, dword [eax]
push 0
push 0x4883000
push 0
push 0
push 0x453750
push esi
push eax
push dword [edi + 8]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov edx, dword [ebp - 0x54]
mov edi, eax
mov dword [ebp - 0x44], edi
cmp edx, 8
jb 0x413269
mov ecx, dword [ebp - 0x68]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41325f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41344d
push edx
push ecx
call fcn.00423b44
add esp, 8
xor eax, eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 7
mov word [ebp - 0x68], ax
test edi, edi
je 0x4133f9
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 4
push eax
lea eax, [ebp - 0x24]
push eax
push 0x1f
push edi
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
or dword [ebp - 0x24], 0x100
lea eax, [ebp - 0x24]
push 4
push eax
push 0x1f
push edi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov edx, 0x48
lea ecx, [ebp - 0x40]
call fcn.00412330
push dword [ebp + 0x18]
mov byte [ebp - 4], 1
lea eax, [ebp - 0x40]
push dword [ebp - 0x20]
cmp dword [ebp - 0x2c], 8
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
push eax
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
cmp eax, 1
jne 0x4133e7
mov dword [ebp - 0x20], 0
xor edi, edi
mov eax, dword [ebp - 0x18]
mov edx, eax
mov ecx, dword [ebp - 0x1c]
sub edx, ecx
mov ebx, edx
mov dword [ebp - 0x4c], eax
sub ebx, edi
test ebx, ebx
jg 0x413350
lea esi, [edi + 0x4000]
mov ebx, 0x4000
cmp esi, edx
jae 0x41331b
lea eax, [esi + ecx]
jmp 0x41334d
jbe 0x413350
mov eax, dword [ebp - 0x14]
sub eax, ecx
cmp esi, eax
jbe 0x413335
push ecx
push esi
lea ecx, [ebp - 0x1c]
call fcn.00413460
mov ecx, dword [ebp - 0x1c]
jmp 0x413350
sub esi, edx
push esi
push 0
push dword [ebp - 0x4c]
call fcn.004259e0
mov eax, dword [ebp - 0x4c]
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
add eax, esi
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
push ebx
lea eax, [ecx + edi]
push eax
push dword [ebp - 0x44]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x413371
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x413371
add edi, eax
jmp 0x4132f2
mov esi, dword [ebp - 0x18]
mov ecx, esi
mov edx, dword [ebp - 0x1c]
sub ecx, edx
cmp edi, ecx
jae 0x4133bd
lea eax, [edx + edi]
mov dword [ebp - 0x18], eax
mov edi, dword [ebp - 0x44]
mov ebx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x4133f9
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4133ef
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413452
jmp 0x4133ef
jbe 0x413385
mov eax, dword [ebp - 0x14]
sub eax, edx
cmp edi, eax
jbe 0x4133d4
push ecx
push edi
lea ecx, [ebp - 0x1c]
call fcn.00413460
jmp 0x413385
sub edi, ecx
push edi
push 0
push esi
call fcn.004259e0
add esp, 0xc
lea eax, [esi + edi]
jmp 0x413382
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
jmp 0x41338b
push edx
push ecx
call fcn.00423b44
add esp, 8
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
mov edi, dword [ebp - 0x50]
cmp byte [edi], 0
je 0x413417
push dword [edi + 8]
call esi
push dword [edi + 4]
call esi
mov byte [edi], 0
mov eax, dword [ebp - 0x1c]
mov dword [ebx], eax
mov eax, dword [ebp - 0x18]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [ebx + 8], eax
mov eax, ebx
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.00423b13
mov esp, ebp
pop ebp
ret 0x18
call fcn.0042823f
call fcn.0042823f
call fcn.0042823f
int3