Function at 0x525bac
Capabilities:
Connect to http server
Create http request
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x209
push 0
push 0
dec ecx
jne 0x525bb5
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x14], edx
mov esi, eax
mov ebx, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x525fea
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x15], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.00525260
test al, al
je 0x525f94
push dword [ebp - 8]
push dword [ebp - 0xc]
push 0x52600c
push dword [ebp - 0x14]
lea eax, [ebp - 8]
mov edx, 4
call fcn.00407280
xor eax, eax
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x28], eax
xor edx, edx
push ebp
push 0x525f8d
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 0
push 0
push 1
push 0
call sub.wininet.dll_InternetOpenW
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x525c67
call fcn.0040568c
jmp 0x525f94
push 0
push 0
push 3
push 0
push 0
movzx eax, word [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
call fcn.00406e68
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.wininet.dll_InternetConnectW
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x20], 0
jne 0x525c9b
call fcn.0040568c
jmp 0x525f94
push 0
push 0x80000000
push 0
mov eax, esi
call fcn.00406e68
push eax
push 0x526010
mov eax, dword [ebp - 8]
call fcn.00406e68
push eax
push 0x526024
mov eax, dword [ebp - 0x24]
push eax
call sub.wininet.dll_HttpOpenRequestW
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x525cdb
call fcn.0040568c
jmp 0x525f94
xor ecx, ecx
mov dl, 1
mov eax, dword [0x48b79c]
call fcn.00492604
mov dword [ebp - 0x1c], eax
push 0x526038
push dword [ebp - 4]
push 0x526054
lea eax, [ebp - 0x1034]
mov edx, 3
call fcn.00407280
mov edx, dword [ebp - 0x1034]
mov eax, dword [ebp - 0x1c]
call fcn.00492874
mov edx, 0x526068
mov eax, dword [ebp - 0x1c]
call fcn.00492874
mov edx, 0x52614c
mov eax, dword [ebp - 0x1c]
call fcn.00492874
mov edx, 0x526174
mov eax, dword [ebp - 0x1c]
call fcn.00492874
mov edx, 0x5261b4
mov eax, dword [ebp - 0x1c]
call fcn.00492874
mov edx, 0x526224
mov eax, dword [ebp - 0x1c]
call fcn.00492874
mov edx, 0x526264
mov eax, dword [ebp - 0x1c]
call fcn.00492874
mov edx, 0x526298
mov eax, dword [ebp - 0x1c]
call fcn.00492874
test edi, edi
jne 0x525d7e
test ebx, ebx
je 0x525e07
call fcn.0047c1e0
push eax
push 1
push edi
push 0x5262d8
push ebx
lea eax, [ebp - 0x1038]
mov edx, 3
call fcn.00407280
mov ecx, dword [ebp - 0x1038]
mov dl, 1
mov eax, dword [0x48b79c]
call fcn.00492648
mov esi, eax
mov eax, esi
mov edx, dword [eax]
call dword [edx]
mov edx, eax
lea ecx, [ebp - 0x103c]
mov eax, dword [esi + 4]
call fcn.00523188
mov edx, dword [ebp - 0x103c]
lea eax, [ebp - 0x10]
call fcn.00406ff8
push 0x5262e8
push dword [ebp - 0x10]
push 0x526054
lea eax, [ebp - 0x1040]
mov edx, 3
call fcn.00407280
mov edx, dword [ebp - 0x1040]
mov eax, dword [ebp - 0x1c]
call fcn.00492874
mov eax, esi
call fcn.00404700
mov edx, 0x526054
mov eax, dword [ebp - 0x1c]
call fcn.00492874
lea edx, [ebp - 0x1044]
mov eax, dword [ebp - 0x1c]
call fcn.00492854
mov eax, dword [ebp - 0x1044]
mov dword [ebp - 0x1048], eax
mov ebx, dword [ebp - 0x1048]
test ebx, ebx
je 0x525e3d
sub ebx, 4
mov ebx, dword [ebx]
push 0x20000000
push ebx
lea edx, [ebp - 0x104c]
mov eax, dword [ebp - 0x1c]
call fcn.00492854
mov eax, dword [ebp - 0x104c]
call fcn.00406e68
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.wininet.dll_HttpAddRequestHeadersW
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x28]
push eax
call sub.wininet.dll_HttpSendRequestW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x15], al
cmp dword [ebp + 8], 0
je 0x525f2c
mov dl, 1
mov eax, dword [0x48b67c]
call fcn.004046d0
mov dword [ebp - 0x2c], eax
jmp 0x525eb2
cmp dword [ebp - 0x30], 0
je 0x525ecf
lea edx, [ebp - 0x1030]
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
mov ebx, dword [eax]
call dword [ebx + 0x10]
lea eax, [ebp - 0x30]
push eax
push 0x1000
lea eax, [ebp - 0x1030]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.wininet.dll_InternetReadFile
test eax, eax
jne 0x525e9b
mov word [ebp - 0x1030], 0
lea edx, [ebp - 0x1030]
mov ecx, 1
mov eax, dword [ebp - 0x2c]
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov dl, 1
mov eax, dword [0x4700f4]
call fcn.0047c478
mov esi, eax
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
call dword [edx]
push eax
lea eax, [ebp - 0x1050]
push eax
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax + 4]
xor ecx, ecx
mov eax, esi
call fcn.0047c134
mov edx, dword [ebp - 0x1050]
mov eax, dword [ebp + 8]
call fcn.00406ddc
mov eax, esi
call fcn.00404700
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x525f94
cmp dword [ebp - 0x2c], 0
je 0x525f4c
mov eax, dword [ebp - 0x2c]
xor edx, edx
mov dword [ebp - 0x2c], edx
call fcn.00404700
cmp dword [ebp - 0x1c], 0
je 0x525f5f
mov eax, dword [ebp - 0x1c]
xor edx, edx
mov dword [ebp - 0x1c], edx
call fcn.00404700
cmp dword [ebp - 0x28], 0
je 0x525f6e
mov eax, dword [ebp - 0x28]
push eax
call sub.wininet.dll_InternetCloseHandle
cmp dword [ebp - 0x24], 0
je 0x525f7d
mov eax, dword [ebp - 0x24]
push eax
call sub.wininet.dll_InternetCloseHandle
cmp dword [ebp - 0x20], 0
je 0x525f8c
mov eax, dword [ebp - 0x20]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x525ff1
lea eax, [ebp - 0x1050]
mov edx, 2
call fcn.00406dd4
lea eax, [ebp - 0x1044]
mov edx, 2
call fcn.00406dd4
lea eax, [ebp - 0x103c]
call fcn.00405dac
lea eax, [ebp - 0x1038]
mov edx, 2
call fcn.00406dd4
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00406dd4
ret