Function at 0x410142
Capabilities:
Check http status code
Connect to http server
Create http request
Parse url
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push 0x484
push 0x421c80
call fcn.00412678
mov dword [ebp - 0x44], 4
push dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
call ebx
test eax, eax
je 0x41052f
push dword [ebp + 8]
call fcn.0040c683
pop ecx
test eax, eax
je 0x41052f
xor esi, esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x40], 0x80004005
mov dword [ebp - 4], esi
push esi
push esi
push esi
push esi
push 0x421b0c
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x38], eax
cmp eax, esi
je 0x4104f4
push 0xf
pop ecx
xor eax, eax
lea edi, [ebp - 0x8c]
rep stosd dword es:[edi], eax
push 0x3c
pop edi
mov dword [ebp - 0x8c], edi
lea eax, [ebp - 0x294]
mov dword [ebp - 0x7c], eax
mov eax, 0x100
mov dword [ebp - 0x78], eax
mov word [ebp - 0x74], si
lea ecx, [ebp - 0x394]
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x5c], eax
lea ecx, [ebp - 0x494]
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x8c]
push eax
push esi
push dword [ebp + 8]
call ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
push esi
push esi
push 3
push 0x421b14
push 0x421b15
push dword [ebp - 0x74]
push dword [ebp - 0x7c]
push dword [ebp - 0x38]
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp - 0x30], eax
cmp eax, esi
je 0x4104f4
lea eax, [ebp - 0x194]
cmp dword [ebp - 0x5c], esi
je 0x41023d
push dword [ebp - 0x60]
jmp 0x410242
push 0x421b18
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp dword [ebp - 0x54], esi
je 0x41025e
push dword [ebp - 0x58]
lea eax, [ebp - 0x194]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x24], esi
push esi
push 0x4400000
push esi
push 0x421b1a
push str.HTTP_1.1
lea eax, [ebp - 0x194]
push eax
push 0x421b28
push dword [ebp - 0x30]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x4104f4
xor edi, edi
inc edi
mov dword [ebp - 0x1c], edi
push esi
push esi
push esi
push esi
push dword [ebp - 0x20]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x410311
cmp dword [ebp - 0x1c], esi
je 0x4104f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x94], eax
mov ecx, eax
sub ecx, 0x2ee2
je 0x4102fb
sub ecx, 5
je 0x4102fb
sub ecx, 0x16
je 0x4102fb
mov dword [ebp - 0x1c], esi
push esi
push 7
push eax
push dword [ebp - 0x20]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.WININET.dll_InternetErrorDlg]
cmp eax, 0x2f00
jne 0x4102a1
jmp 0x41029e
mov dword [ebp - 0x1c], esi
cmp dword [ebp + 0x14], esi
je 0x4102a1
push esi
push esi
push eax
push esi
call fcn.0040ff98
add esp, 0x10
jmp 0x4102a1
cmp dword [ebp - 0x1c], esi
je 0x4104f4
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x2c], esi
push esi
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0x20000013
mov edi, dword [ebp - 0x20]
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x410349
call ebx
mov dword [ebp - 0x4c], eax
xor ebx, ebx
inc ebx
mov dword [ebp - 0x1c], ebx
mov edx, dword [ebp - 0x2c]
cmp edx, 0x197
jne 0x4103a8
cmp dword [ebp - 0x1c], esi
je 0x4103a8
push esi
push 7
push dword [ebp - 0x4c]
push edi
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.WININET.dll_InternetErrorDlg]
cmp eax, 0x2f00
je 0x41037f
mov dword [ebp - 0x1c], esi
jmp 0x41034f
push esi
push esi
push esi
push esi
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
mov dword [ebp - 0x44], 4
push esi
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0x20000013
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
jmp 0x41034f
cmp edx, 0xc8
jne 0x4103f7
mov dword [ebp - 0x3c], esi
xor ebx, ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x3c], esi
mov eax, dword [ebp + 0xc]
add eax, ebx
mov dword [ebp - 0x90], eax
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, dword [ebp + 0x10]
sub ecx, ebx
push ecx
push eax
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4103e2
add ebx, dword [ebp - 0x3c]
mov dword [ebp - 0x50], ebx
cmp dword [ebp - 0x3c], esi
ja 0x4103b8
cmp ebx, esi
jbe 0x4104eb
mov dword [ebp - 0x40], esi
jmp 0x4104eb
cmp edx, 0x190
jb 0x4104d0
cmp edx, 0x258
jae 0x4104d0
mov eax, 0x193
cmp edx, eax
je 0x4104a0
add eax, 0x61
cmp edx, eax
jne 0x410441
cmp dword [ebp + 0x14], esi
je 0x4104b4
push ebx
push esi
push eax
push esi
call fcn.0040ff98
add esp, 0x10
test eax, eax
je 0x4104b4
mov dword [ebp - 0x24], ebx
jmp 0x4104b4
mov ecx, 0x1f7
cmp edx, ecx
jne 0x410498
cmp dword [ebp - 0x28], 5
jge 0x410474
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], esi
jl 0x41046b
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
dec dword [ebp - 0x48]
jmp 0x410456
inc dword [ebp - 0x28]
add dword [ebp - 0x34], 0x1e
jmp 0x410493
cmp dword [ebp + 0x14], esi
je 0x4104b4
push ebx
push esi
push ecx
push esi
call fcn.0040ff98
add esp, 0x10
test eax, eax
je 0x4104b4
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x34], 0x3c
mov dword [ebp - 0x24], ebx
jmp 0x4104eb
cmp edx, 0x194
je 0x4104b4
xor ecx, ecx
cmp dword [ebp + 0x14], esi
sete cl
push esi
push ecx
push eax
push esi
call fcn.0040ff98
add esp, 0x10
xor eax, eax
cmp dword [ebp - 0x2c], 0x194
setne al
dec eax
and eax, 0x6c1fd
add eax, 0x80004005
mov dword [ebp - 0x40], eax
jmp 0x4104eb
push esi
xor eax, eax
cmp dword [ebp + 0x14], esi
sete al
push eax
push edx
push esi
call fcn.0040ff98
add esp, 0x10
mov dword [ebp - 0x40], 0x80004005
cmp dword [ebp - 0x24], esi
jne 0x410267
or dword [ebp - 4], 0xffffffff
call fcn.00410504
mov eax, dword [ebp - 0x40]
jmp 0x410531
xor eax, eax
call fcn.004126b3
ret