Function at 0x40d890
Capabilities:
Check http status code
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x438a3d
mov eax, dword fs:[0]
push eax
mov eax, 0x1130
call fcn.0041a350
mov eax, dword [0x448080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x1114]
mov dword [ebp - 0x101c], edi
xorps xmm0, xmm0
push 0x14
push 0x442680
mov dword [ebp - 0x1120], edi
movups xmmword [ebp - 0x1114], xmm0
mov dword [ebp - 0x1104], 0
mov dword [ebp - 0x1100], 0
call fcn.0040a2f0
lea ecx, [ebp - 0x1114]
mov dword [ebp - 4], 0
call fcn.0040c070
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1100]
mov dword [ebp - 0x111c], eax
cmp ecx, 7
jbe 0x40d95f
mov edx, dword [ebp - 0x1114]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40d955
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40df17
push ecx
push edx
call fcn.0041936d
add esp, 8
push 5
xorps xmm0, xmm0
mov dword [ebp - 0x1104], 0
push 0x4426ac
lea ecx, [ebp - 0x1114]
mov dword [ebp - 0x1100], 0
movups xmmword [ebp - 0x1114], xmm0
call fcn.0040a2f0
push 0
push 0
push 0
push 1
lea ecx, [ebp - 0x1114]
mov dword [ebp - 4], 1
call fcn.0040c100
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 4], 0xffffffff
mov esi, eax
mov ecx, dword [ebp - 0x1100]
mov dword [ebp - 0x1118], esi
cmp ecx, 7
jbe 0x40d9ff
mov edx, dword [ebp - 0x1114]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40d9f5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40df17
push ecx
push edx
call fcn.0041936d
add esp, 8
test esi, esi
jne 0x40daa6
push 0x1c
xorps xmm0, xmm0
mov dword [ebp - 0x1104], esi
push 0x4426b8
lea ecx, [ebp - 0x1114]
mov dword [ebp - 0x1100], esi
movups xmmword [ebp - 0x1114], xmm0
call fcn.0040a2f0
push ecx
lea edx, [ebp - 0x1114]
mov dword [ebp - 4], 2
mov ecx, edi
call fcn.004029f0
mov ecx, dword [ebp - 0x1100]
add esp, 4
cmp ecx, 7
jbe 0x40da87
mov edx, dword [ebp - 0x1114]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40da7d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40df17
push ecx
push edx
call fcn.0041936d
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00419325
mov esp, ebp
pop ebp
ret 4
push 0
push 0x80200000
push 0
push 0
push dword [ebp - 0x111c]
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov esi, eax
mov dword [ebp - 0x111c], esi
test esi, esi
jne 0x40dc45
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x1118]
mov esi, eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push 0xb0
lea eax, [ebp - 0x10fc]
push 0
push eax
call fcn.0041af90
add esp, 8
lea ecx, [ebp - 0x10fc]
call fcn.00412950
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x1138]
push 0x1f
xorps xmm0, xmm0
mov dword [ebp - 0x1128], 0
push 0x4426f8
movups xmmword [ebp - 0x1138], xmm0
mov dword [ebp - 0x1124], 0
call fcn.0040a2f0
push ecx
lea edx, [ebp - 0x1138]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1114]
call fcn.004029f0
mov byte [ebp - 4], 5
lea edx, [ebp - 0x1114]
cmp dword [ebp - 0x1100], 7
lea ecx, [ebp - 0x10ec]
push dword [ebp - 0x1104]
cmova edx, dword [ebp - 0x1114]
call fcn.0040bb30
add esp, 8
mov ecx, eax
push esi
call fcn.00406fd0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x1100]
cmp ecx, 7
jbe 0x40dbc8
mov edx, dword [ebp - 0x1114]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40dbbe
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40df1c
push ecx
push edx
call fcn.0041936d
add esp, 8
xor eax, eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x1124]
mov dword [ebp - 0x1104], 0
mov dword [ebp - 0x1100], 7
mov word [ebp - 0x1114], ax
cmp ecx, 7
jbe 0x40dc29
mov edx, dword [ebp - 0x1138]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40dc1f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40df1c
push ecx
push edx
call fcn.0041936d
add esp, 8
push edi
lea ecx, [ebp - 0x10e4]
call fcn.00413460
lea ecx, [ebp - 0x10fc]
call fcn.0040d5d0
jmp 0x40da87
push 0
lea eax, [ebp - 0x101c]
mov dword [ebp - 0x1014], 0
push eax
lea eax, [ebp - 0x1014]
mov dword [ebp - 0x101c], 4
push eax
push 0x20000013
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x40de80
cmp dword [ebp - 0x1014], 0xc8
jne 0x40de80
xorps xmm0, xmm0
mov dword [ebp - 0x1024], 0
movups xmmword [ebp - 0x1034], xmm0
mov dword [ebp - 0x1020], 0xf
mov byte [ebp - 0x1034], 0
lea eax, [ebp - 0x1018]
mov dword [ebp - 4], 7
push eax
push 0x1000
lea eax, [ebp - 0x1010]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x40dd75
nop dword [eax + eax]
mov edi, dword [ebp - 0x1018]
test edi, edi
je 0x40dd75
mov edx, dword [ebp - 0x1020]
mov eax, edx
mov ecx, dword [ebp - 0x1024]
sub eax, ecx
push edi
cmp edi, eax
ja 0x40dd3a
lea eax, [edi + ecx]
cmp edx, 0xf
mov dword [ebp - 0x1024], eax
lea esi, [ebp - 0x1034]
cmova esi, dword [ebp - 0x1034]
lea eax, [ebp - 0x1010]
add esi, ecx
push eax
push esi
call fcn.0041aa10
mov byte [esi + edi], 0
add esp, 0xc
mov esi, dword [ebp - 0x111c]
jmp 0x40dd53
lea eax, [ebp - 0x1010]
push eax
push dword [ebp - 0x1120]
lea ecx, [ebp - 0x1034]
push edi
call fcn.0040ab50
lea eax, [ebp - 0x1018]
push eax
push 0x1000
lea eax, [ebp - 0x1010]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x40dce0
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x1118]
call esi
cmp dword [ebp - 0x1020], 0xf
lea eax, [ebp - 0x1034]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmova eax, dword [ebp - 0x1034]
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call edi
mov esi, eax
mov dword [ebp - 0x103c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x1038], 0
movups xmmword [ebp - 0x104c], xmm0
lea ecx, [esi - 1]
push ecx
push 0
lea ecx, [ebp - 0x104c]
call fcn.0040a1b0
cmp dword [ebp - 0x1038], 7
lea ecx, [ebp - 0x104c]
push esi
cmova ecx, dword [ebp - 0x104c]
lea eax, [ebp - 0x1034]
cmp dword [ebp - 0x1020], 0xf
push ecx
cmova eax, dword [ebp - 0x1034]
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call edi
mov edi, dword [ebp - 0x1120]
xorps xmm0, xmm0
mov ecx, dword [ebp - 0x1020]
xor eax, eax
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
movups xmm0, xmmword [ebp - 0x104c]
mov word [ebp - 0x104c], ax
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x103c]
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0x103c], 0
mov dword [ebp - 0x1038], 7
cmp ecx, 0xf
jbe 0x40da87
mov edx, dword [ebp - 0x1034]
inc ecx
jmp 0x40da5f
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x1118]
call esi
push 0x25
xorps xmm0, xmm0
mov dword [ebp - 0x1128], 0
push 0x442738
lea ecx, [ebp - 0x1138]
mov dword [ebp - 0x1124], 0
movups xmmword [ebp - 0x1138], xmm0
call fcn.0040a2f0
push ecx
lea edx, [ebp - 0x1138]
mov dword [ebp - 4], 6
mov ecx, edi
call fcn.004029f0
mov ecx, dword [ebp - 0x1124]
add esp, 4
cmp ecx, 7
jbe 0x40da87
mov edx, dword [ebp - 0x1138]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40da7d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40da7d
call fcn.00421825
call fcn.00421825
int3