Function at 0x40525a
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 0x417078
call fcn.00409b90
mov dword [ebp - 0x44], 4
push dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
call ebx
test eax, eax
je 0x405647
push dword [ebp + 8]
call fcn.00406c6a
pop ecx
test eax, eax
je 0x405647
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 0x416fec
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x38], eax
cmp eax, esi
je 0x40560c
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, pe_nt_image_headers32
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 0x416ff4
push 0x416ff5
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 0x40560c
lea eax, [ebp - 0x194]
cmp dword [ebp - 0x5c], esi
je 0x405355
push dword [ebp - 0x60]
jmp 0x40535a
push 0x416ff8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp dword [ebp - 0x54], esi
je 0x405376
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 0x416ffa
push 0x416ffc
lea eax, [ebp - 0x194]
push eax
push 0x417008
push dword [ebp - 0x30]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x40560c
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 0x405429
cmp dword [ebp - 0x1c], esi
je 0x40560c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x94], eax
mov ecx, eax
sub ecx, 0x2ee2
je 0x405413
sub ecx, 5
je 0x405413
sub ecx, 0x16
je 0x405413
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 0x4053b9
jmp 0x4053b6
mov dword [ebp - 0x1c], esi
cmp dword [ebp + 0x14], esi
je 0x4053b9
push esi
push esi
push eax
push esi
call fcn.004050b0
add esp, 0x10
jmp 0x4053b9
cmp dword [ebp - 0x1c], esi
je 0x40560c
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 0x405461
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 0x4054c0
cmp dword [ebp - 0x1c], esi
je 0x4054c0
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 0x405497
mov dword [ebp - 0x1c], esi
jmp 0x405467
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 0x405467
cmp edx, 0xc8
jne 0x40550f
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 0x4054fa
add ebx, dword [ebp - 0x3c]
mov dword [ebp - 0x50], ebx
cmp dword [ebp - 0x3c], esi
ja 0x4054d0
cmp ebx, esi
jbe 0x405603
mov dword [ebp - 0x40], esi
jmp 0x405603
cmp edx, 0x190
jb 0x4055e8
cmp edx, 0x258
jae 0x4055e8
mov eax, 0x193
cmp edx, eax
je 0x4055b8
add eax, 0x61
cmp edx, eax
jne 0x405559
cmp dword [ebp + 0x14], esi
je 0x4055cc
push ebx
push esi
push eax
push esi
call fcn.004050b0
add esp, 0x10
test eax, eax
je 0x4055cc
mov dword [ebp - 0x24], ebx
jmp 0x4055cc
mov ecx, 0x1f7
cmp edx, ecx
jne 0x4055b0
cmp dword [ebp - 0x28], 5
jge 0x40558c
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], esi
jl 0x405583
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
dec dword [ebp - 0x48]
jmp 0x40556e
inc dword [ebp - 0x28]
add dword [ebp - 0x34], 0x1e
jmp 0x4055ab
cmp dword [ebp + 0x14], esi
je 0x4055cc
push ebx
push esi
push ecx
push esi
call fcn.004050b0
add esp, 0x10
test eax, eax
je 0x4055cc
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x34], 0x3c
mov dword [ebp - 0x24], ebx
jmp 0x405603
cmp edx, 0x194
je 0x4055cc
xor ecx, ecx
cmp dword [ebp + 0x14], esi
sete cl
push esi
push ecx
push eax
push esi
call fcn.004050b0
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 0x405603
push esi
xor eax, eax
cmp dword [ebp + 0x14], esi
sete al
push eax
push edx
push esi
call fcn.004050b0
add esp, 0x10
mov dword [ebp - 0x40], 0x80004005
cmp dword [ebp - 0x24], esi
jne 0x40537f
or dword [ebp - 4], 0xffffffff
call fcn.0040561c
mov eax, dword [ebp - 0x40]
jmp 0x405649
xor eax, eax
call fcn.00409bcb
ret