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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x433920
mov eax, dword fs:[0]
push eax
mov eax, 0x2060
call fcn.00414c30
mov eax, dword [0x448020]
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 dword [ebp - 0x2050], ecx
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x2014]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x204c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x202c], edi
mov dword [ebp - 0x205c], eax
xor eax, eax
mov dword [ebp - 0x2068], edi
mov dword [ebp - 0x202c], ebx
mov dword [ebp - 0x2048], eax
mov dword [ebp - 0x2054], eax
mov dword [ebp - 0x2014], eax
call fcn.00402a99
xor eax, eax
lea ecx, [ebp - 0x201c]
mov dword [ebp - 4], eax
mov dword [ebp - 0x2058], eax
mov dword [ebp - 0x201c], eax
call fcn.00402a99
and dword [ebp - 0x2018], 0
lea ecx, [ebp - 0x2018]
call fcn.00402a99
lea eax, [ebp - 0x2018]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x201c]
push eax
push esi
call fcn.0040290e
test eax, eax
jne 0x401ec0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4420e0
push ebx
call fcn.00402e1a
add esp, 0xc
xor eax, eax
mov dword [edi], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 0xf
mov byte [edi], al
jmp 0x402287
mov eax, dword [ebp - 0x205c]
cmp dword [eax + 8], 0
jne 0x401eda
push str.Ready...
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
xor eax, eax
push eax
push eax
push 3
push eax
push eax
mov eax, dword [ebp - 0x2050]
push 0x1bb
push dword [ebp - 0x201c]
push dword [eax]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 0x2060], eax
test eax, eax
jne 0x401f13
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.InternetConnect_Failed_:__d
jmp 0x401ea2
xor ecx, ecx
push ecx
push 0x4802000
push ecx
push ecx
push str.HTTP_1.1
push dword [ebp - 0x2018]
push 0x44216c
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov esi, eax
test esi, esi
jne 0x401f60
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.HttpOpenRequest_Failed_:__d
push ebx
call fcn.00402e1a
add esp, 0xc
push dword [ebp - 0x2060]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x401eab
mov eax, dword [ebp - 0x2050]
add eax, 0x10
push eax
mov dword [ebp - 0x205c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x2050]
push dword [ebp - 0x205c]
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
push eax
push eax
push eax
push eax
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x401fbd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.HttpSendRequest_Failed_:__d
push ebx
call fcn.00402e1a
add esp, 0xc
or dword [ebp - 0x2054], 0xffffffff
jmp 0x4021c8
mov ecx, dword [ebp - 0x204c]
lea eax, [ebp - 0x2020]
and dword [ebp - 0x2020], 0
push eax
lea eax, [ebp - 0x2024]
mov dword [ebp - 0x2024], 0x1ff
push eax
push 0x200
call fcn.00402ae0
push eax
push 0x13
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
push ecx
mov ecx, dword [ebp - 0x204c]
call fcn.00402ac0
and dword [ebp - 0x2020], 0
lea eax, [ebp - 0x2020]
push eax
lea eax, [ebp - 0x2024]
mov dword [ebp - 0x2024], 0x1ff
push eax
push 0x200
mov ecx, ebx
call fcn.00402ae0
push eax
push 0x14
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
push ecx
mov ecx, ebx
call fcn.00402ac0
mov ecx, dword [ebp - 0x204c]
push 0x4421e4
call fcn.00402b18
test eax, eax
jne 0x4021c8
and dword [ebp - 0x2020], eax
lea ecx, [ebp - 0x2014]
lea eax, [ebp - 0x2020]
mov dword [ebp - 0x2024], 0x1ff
push eax
lea eax, [ebp - 0x2024]
push eax
push 0x200
call fcn.00402ae0
push eax
push 5
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
push ecx
lea ecx, [ebp - 0x2014]
call fcn.00402ac0
push dword [ebp - 0x2014]
call fcn.0041d2e7
mov dword [ebp - 0x2064], eax
pop ecx
test eax, eax
jle 0x4021c8
push 0x4000
call fcn.00413eaf
mov dword [esp], 0x4000
push 0
push eax
mov dword [ebp - 0x2058], eax
call fcn.00415870
mov eax, dword [ebp - 0x2058]
lea ecx, [ebp - 0x2048]
add esp, 0xc
mov dword [ebp - 0x2028], eax
push ecx
push 0x1000
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x40215b
mov edi, dword [ebp - 0x2054]
mov ebx, dword [ebp - 0x2028]
mov eax, dword [ebp - 0x2048]
test eax, eax
je 0x402141
mov byte [ebx + eax], 0
add edi, dword [ebp - 0x2048]
add ebx, dword [ebp - 0x2048]
cmp edi, 0x2710
jg 0x402141
lea eax, [ebp - 0x2048]
push eax
push 0x1000
push ebx
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x402107
cmp edi, dword [ebp - 0x2064]
mov ebx, dword [ebp - 0x202c]
mov dword [ebp - 0x2054], edi
mov edi, dword [ebp - 0x2068]
jge 0x4021c8
and dword [ebp - 0x2028], 0
lea eax, [ebp - 0x2010]
push 0x2000
push 0
push eax
call fcn.00415870
add esp, 0xc
mov dword [ebp - 0x202c], 0xffe
lea eax, [ebp - 0x202c]
push eax
lea eax, [ebp - 0x2010]
push eax
lea eax, [ebp - 0x2028]
push eax
call dword [sym.imp.WININET.dll_InternetGetLastResponseInfoW]
test eax, eax
je 0x4021c8
push dword [ebp - 0x2028]
push 0x4421ec
push dword [ebp - 0x204c]
call fcn.00402e1a
add esp, 0xc
lea eax, [ebp - 0x2010]
mov ecx, ebx
push eax
call fcn.004029f8
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x2060]
call esi
mov ebx, dword [ebp - 0x205c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x2050]
push ebx
and dword [eax + 4], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ebx, ebx
mov dword [ebp - 0x2030], 0xf
mov dword [ebp - 0x2044], ebx
mov dword [ebp - 0x2034], ebx
mov byte [ebp - 0x2044], bl
mov esi, dword [ebp - 0x2058]
mov byte [ebp - 4], 3
cmp dword [ebp - 0x2054], ebx
jle 0x402242
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40222c
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x2044]
call fcn.004019d4
push esi
call fcn.00413a12
pop ecx
lea eax, [ebp - 0x2044]
mov ecx, edi
push eax
call fcn.004017c1
mov eax, dword [ebp - 0x2030]
cmp eax, 0x10
jb 0x402271
inc eax
push eax
push dword [ebp - 0x2044]
call fcn.0040196a
pop ecx
pop ecx
mov dword [ebp - 0x2034], ebx
mov dword [ebp - 0x2030], 0xf
mov byte [ebp - 0x2044], bl
lea ecx, [ebp - 0x2018]
call fcn.00402b89
lea ecx, [ebp - 0x201c]
call fcn.00402b89
lea ecx, [ebp - 0x2014]
call fcn.00402b89
mov eax, edi
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.00413a04
leave
ret 0x14