Function at 0x408110
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x467b21
mov eax, dword fs:[0]
push eax
sub esp, 0x46c
mov eax, dword [0x47d00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x430], eax
xor al, al
mov dword [ebp - 4], 0
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov byte [ebp - 0x419], al
mov eax, dword [esi + 0x34]
mov dword [ebp - 0x464], esi
mov dword [ebp - 0x43c], 0
test eax, eax
je 0x408185
push eax
call edi
mov dword [esi + 0x34], 0
mov eax, dword [esi + 0x30]
test eax, eax
je 0x408196
push eax
call edi
mov dword [esi + 0x30], 0
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x4081a7
push eax
call edi
mov dword [esi + 0x2c], 0
push 0
push 0
push 0
push 0
push str.Http_connect
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi + 0x2c], eax
test eax, eax
je 0x4085fd
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x428], 0
lea eax, [ebp - 0x424]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x428]
mov dword [ebp - 0x424], 0x50
push eax
lea edx, [ebp - 0x42c]
mov ecx, ebx
call fcn.00404fd0
mov edi, dword [ebp - 0x424]
mov eax, 0x1bb
add esp, 8
cmp di, ax
jne 0x408219
mov byte [esi + 0x28], 1
mov eax, dword [ebp - 0x42c]
test eax, eax
jne 0x40822b
lea eax, [ebp - 0x42c]
jmp 0x408259
mov eax, dword [eax + 4]
lea ecx, [ebp - 0x42c]
inc eax
push eax
call fcn.004019f0
mov eax, dword [ebp - 0x42c]
mov ecx, dword [eax + 4]
cmp byte [ecx + eax + 0x10], 0
je 0x408256
mov byte [ecx + eax + 0x10], 0
mov eax, dword [ebp - 0x42c]
add eax, 0x10
push 0
push 0
push 3
push 0
push 0
push edi
push eax
push dword [esi + 0x2c]
call dword [sym.imp.WININET.dll_InternetConnectA]
mov ecx, eax
mov dword [esi + 0x30], ecx
test ecx, ecx
je 0x408618
cmp byte [esi + 0x28], 0
mov eax, accept
mov edi, 0x80802000
cmove edi, eax
mov eax, dword [ebp - 0x428]
test eax, eax
jne 0x40829e
lea eax, [ebp - 0x428]
jmp 0x4082cf
mov eax, dword [eax + 4]
lea ecx, [ebp - 0x428]
inc eax
push eax
call fcn.004019f0
mov eax, dword [ebp - 0x428]
mov ecx, dword [eax + 4]
cmp byte [ecx + eax + 0x10], 0
je 0x4082c9
mov byte [ecx + eax + 0x10], 0
mov eax, dword [ebp - 0x428]
mov ecx, dword [esi + 0x30]
add eax, 0x10
push 0
push edi
push 0
push 0
push str.HTTP_1.1
push eax
push 0x4778f4
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [esi + 0x34], eax
test eax, eax
je 0x408633
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x40864e
push 0x401
lea eax, [ebp - 0x418]
push 0
push eax
call fcn.0044c9f0
mov edi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
lea eax, [ebp - 0x420]
add esp, 0xc
mov dword [ebp - 0x420], 0x400
push 0
push eax
lea eax, [ebp - 0x418]
push eax
push 0x15
push dword [esi + 0x34]
call edi
test eax, eax
je 0x408669
lea eax, [ebp - 0x418]
push eax
lea ecx, [ebp - 0x438]
call fcn.00401460
push 0x477924
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], 3
call fcn.00401680
cmp eax, 0xffffffff
jne 0x408684
push 0
lea eax, [ebp - 0x420]
mov dword [ebp - 0x420], 0x400
push eax
lea eax, [ebp - 0x418]
push eax
push 5
push dword [esi + 0x34]
call edi
test eax, eax
je 0x40869f
mov eax, dword [ebp - 0x420]
cmp eax, 0x401
jae 0x4086f0
lea ecx, [ebp - 0x418]
mov byte [ebp + eax - 0x418], 0
call fcn.00402fb0
mov ebx, eax
mov eax, dword [ebp - 0x430]
mov dword [ebp - 0x424], ebx
test eax, eax
je 0x4083df
mov dword [eax], ebx
lea ecx, [ebp - 0x431]
call fcn.00403d60
mov eax, dword fs:[0x2c]
push str.__font__br_
push ebx
push 0x47779c
mov eax, dword [eax]
push 0x477750
mov ecx, dword [eax + 4]
call fcn.00403ad0
mov ecx, eax
call fcn.00403ad0
mov ecx, eax
call fcn.00403a60
mov ecx, eax
call fcn.00403ad0
call fcn.00403dc0
mov eax, 0x20000
cmp ebx, eax
cmovl eax, ebx
push eax
mov dword [ebp - 0x430], eax
call fcn.00414d84
mov ebx, eax
add esp, 4
mov dword [ebp - 0x43c], ebx
xor edi, edi
push dword [ebp - 0x430]
push 0
push ebx
call fcn.0044c9f0
mov ecx, dword [esi + 0x20]
add esp, 0xc
test ecx, ecx
je 0x40846e
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
test al, al
jne 0x4086ba
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0x430]
push ebx
push dword [esi + 0x34]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4086d5
mov ecx, dword [ebp - 0x420]
test ecx, ecx
je 0x4086d5
cmp dword [esi + 4], 0
mov eax, dword [esi]
push edi
push dword [ebp - 0x424]
push ecx
push ebx
mov ecx, esi
jne 0x4084b3
call dword [eax + 0x1c]
jmp 0x4084b6
call dword [eax + 0x20]
mov eax, dword [ebp - 0x420]
add edi, eax
mov ecx, dword [esi + 0x20]
movd xmm1, edi
cvtdq2pd xmm1, xmm1
test ecx, ecx
je 0x40851e
movd xmm0, dword [ebp - 0x424]
sub esp, 0x10
mov eax, dword [ecx]
cvtdq2pd xmm0, xmm0
movsd qword [esp + 8], xmm1
movsd qword [esp], xmm0
push 0
push dword [esi + 0x1c]
movsd qword [ebp - 0x478], xmm1
movsd qword [ebp - 0x470], xmm0
call dword [eax]
mov eax, dword [ebp - 0x420]
movsd xmm0, qword [ebp - 0x470]
movsd xmm1, qword [ebp - 0x478]
mov ecx, dword [ebp - 0x424]
jmp 0x40852c
mov ecx, dword [ebp - 0x424]
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
cmp edi, ecx
jl 0x408557
mov ecx, dword [esi + 0x20]
mov byte [ebp - 0x419], 1
test ecx, ecx
je 0x40855f
mov eax, dword [ecx]
sub esp, 0x10
movsd qword [esp + 8], xmm1
movsd qword [esp], xmm0
push 2
push dword [esi + 0x1c]
call dword [eax]
jmp 0x40855f
test eax, eax
jne 0x408447
lea ecx, [ebp - 0x438]
call fcn.004013f0
lea ecx, [ebp - 0x428]
call fcn.004013f0
lea ecx, [ebp - 0x42c]
call fcn.004013f0
jmp 0x4085cc
test ebx, ebx
je 0x4085d9
push ebx
call fcn.00414d7f
add esp, 4
mov al, byte [ebp - 0x419]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00414803
mov esp, ebp
pop ebp
ret 8
push 0x47b71c
lea eax, [ebp - 0x440]
mov dword [ebp - 0x440], 1
push eax
call fcn.0044c78e
push 0x47b71c
lea eax, [ebp - 0x444]
mov dword [ebp - 0x444], 2
push eax
call fcn.0044c78e
push 0x47b71c
lea eax, [ebp - 0x448]
mov dword [ebp - 0x448], 1
push eax
call fcn.0044c78e
push 0x47b71c
lea eax, [ebp - 0x44c]
mov dword [ebp - 0x44c], 3
push eax
call fcn.0044c78e
push 0x47b71c
lea eax, [ebp - 0x450]
mov dword [ebp - 0x450], 4
push eax
call fcn.0044c78e
push 0x47b71c
lea eax, [ebp - 0x454]
mov dword [ebp - 0x454], 5
push eax
call fcn.0044c78e
push 0x47b71c
lea eax, [ebp - 0x458]
mov dword [ebp - 0x458], 4
push eax
call fcn.0044c78e
push 0x47b71c
lea eax, [ebp - 0x45c]
mov dword [ebp - 0x45c], 0xd
push eax
call fcn.0044c78e
push 0x47b71c
lea eax, [ebp - 0x460]
mov dword [ebp - 0x460], 0xa
push eax
call fcn.0044c78e
call fcn.00414eae
int3