Function at 0x4b4b98
Capabilities:
Connect to http server
Make an http request with a cookie
Read data from internet
Receive data
Send data
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x98
push 0
push 0
dec ecx
jne 0x4b4ba1
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov ebx, eax
mov eax, dword [ebp - 8]
call fcn.00404d18
mov eax, dword [ebp + 0x1c]
call fcn.00404d18
mov eax, dword [ebp + 0x18]
call fcn.00404d18
mov eax, dword [ebp + 0x14]
call fcn.00404d18
mov eax, dword [ebp + 0x10]
call fcn.00404d18
xor eax, eax
push ebp
push 0x4b54c8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404868
test edi, edi
je 0x4b547d
push ebp
lea ecx, [ebp - 0x2c]
lea edx, [ebp - 0x28]
mov eax, dword [ebp + 0x1c]
call fcn.004b4850
pop ecx
lea edx, [ebp - 0x448]
mov eax, dword [ebp - 0x28]
call fcn.00408bf8
cmp dword [ebp - 0x448], 0
jne 0x4b4c28
call fcn.0040c814
push 0
push 0
push 3
push 0
push 0
mov ax, word [ebp - 4]
push eax
mov eax, dword [ebp - 0x28]
call fcn.00404d28
push eax
push edi
call sub.wininet.dll_InternetConnectA
mov dword [ebp - 0xc], eax
push 0
mov eax, dword [ebp + 0xc]
push eax
push 0
push 0
push 0x4b54d8
mov eax, dword [ebp - 0x2c]
call fcn.00404d28
push eax
mov eax, dword [ebp - 8]
call fcn.00404d28
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_HttpOpenRequestA
mov dword [ebp - 0x10], eax
push 0x20000000
lea eax, [ebp - 0x44c]
mov edx, 0x4b54e4
call fcn.00404a60
mov eax, dword [ebp - 0x44c]
call fcn.00404b28
push eax
push 0x4b54e4
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_HttpAddRequestHeadersA
push 0x20000000
lea eax, [ebp - 0x454]
mov ecx, dword [ebp + 0x18]
mov edx, 0x4b559c
call fcn.00404b74
mov eax, dword [ebp - 0x454]
call fcn.00404d28
mov edx, eax
lea eax, [ebp - 0x450]
call fcn.00404a60
mov eax, dword [ebp - 0x450]
call fcn.00404b28
push eax
lea eax, [ebp - 0x458]
mov ecx, dword [ebp + 0x18]
mov edx, 0x4b559c
call fcn.00404b74
mov eax, dword [ebp - 0x458]
call fcn.00404d28
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_HttpAddRequestHeadersA
cmp dword [ebx + 0x64], 0
je 0x4b4d2f
push 0x20000000
mov eax, dword [ebx + 0x64]
call fcn.00404b28
push eax
mov eax, dword [ebx + 0x64]
call fcn.00404d28
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_HttpAddRequestHeadersA
push 0x20000000
push 0x16
push 0x4b55a8
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_HttpAddRequestHeadersA
mov eax, dword [ebp - 8]
mov edx, 0x4b55c8
call fcn.00404c74
jne 0x4b4d85
push 0x20000000
mov eax, dword [ebx + 0x68]
call fcn.00404d28
mov edi, eax
mov edx, edi
lea eax, [ebp - 0x45c]
call fcn.00404a60
mov eax, dword [ebp - 0x45c]
call fcn.00404b28
push eax
push edi
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_HttpAddRequestHeadersA
push 0x20000000
mov eax, dword [ebx + 0x6c]
call fcn.00404d28
mov edi, eax
mov edx, edi
lea eax, [ebp - 0x460]
call fcn.00404a60
mov eax, dword [ebp - 0x460]
call fcn.00404b28
push eax
push edi
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_HttpAddRequestHeadersA
cmp dword [ebp - 4], 0x50
je 0x4b4e4b
push 0x20000000
push 0x4b55d8
push dword [ebp - 0x28]
push 0x4b55e8
lea edx, [ebp - 0x468]
mov eax, dword [ebp - 4]
call fcn.00408fc8
push dword [ebp - 0x468]
lea eax, [ebp - 0x464]
mov edx, 4
call fcn.00404be8
mov eax, dword [ebp - 0x464]
call fcn.00404b28
push eax
push 0x4b55d8
push dword [ebp - 0x28]
push 0x4b55e8
lea edx, [ebp - 0x470]
mov eax, dword [ebp - 4]
call fcn.00408fc8
push dword [ebp - 0x470]
lea eax, [ebp - 0x46c]
mov edx, 4
call fcn.00404be8
mov eax, dword [ebp - 0x46c]
call fcn.00404d28
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_HttpAddRequestHeadersA
jmp 0x4b4e97
push 0x20000000
lea eax, [ebp - 0x474]
mov ecx, dword [ebp - 0x28]
mov edx, 0x4b55d8
call fcn.00404b74
mov eax, dword [ebp - 0x474]
call fcn.00404b28
push eax
lea eax, [ebp - 0x478]
mov ecx, dword [ebp - 0x28]
mov edx, 0x4b55d8
call fcn.00404b74
mov eax, dword [ebp - 0x478]
call fcn.00404d28
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_HttpAddRequestHeadersA
mov eax, dword [ebp - 8]
mov edx, 0x4b55c8
call fcn.00404c74
jne 0x4b4f1e
push 0x20000000
mov eax, dword [ebp + 0x14]
call fcn.00404b28
lea edx, [ebp - 0x480]
call fcn.00408fc8
mov ecx, dword [ebp - 0x480]
lea eax, [ebp - 0x47c]
mov edx, 0x4b55f4
call fcn.00404b74
mov eax, dword [ebp - 0x47c]
call fcn.00404b28
push eax
mov eax, dword [ebp + 0x14]
call fcn.00404b28
lea edx, [ebp - 0x488]
call fcn.00408fc8
mov ecx, dword [ebp - 0x488]
lea eax, [ebp - 0x484]
mov edx, 0x4b55f4
call fcn.00404b74
mov eax, dword [ebp - 0x484]
call fcn.00404d28
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_HttpAddRequestHeadersA
push 0x20000000
push 0x16
push 0x4b5608
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_HttpAddRequestHeadersA
mov eax, dword [ebp - 8]
mov edx, 0x4b55c8
call fcn.00404c74
jne 0x4b4f57
push 0x20000000
push 0x17
push 0x4b5620
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_HttpAddRequestHeadersA
cmp dword [ebp + 0x10], 0
je 0x4b4f7d
push 0x20000000
mov eax, dword [ebp + 0x10]
call fcn.00404b28
push eax
mov eax, dword [ebp + 0x10]
call fcn.00404d28
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_HttpAddRequestHeadersA
mov eax, dword [ebp - 8]
mov edx, 0x4b55c8
call fcn.00404c74
jne 0x4b4fb5
mov eax, dword [ebp + 0x14]
call fcn.00404d28
call fcn.00409760
push eax
mov eax, dword [ebp + 0x14]
call fcn.00404d28
push eax
push 0
push 0x4b5638
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_HttpSendRequestA
jmp 0x4b4fc6
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_HttpSendRequestA
xor eax, eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], 0x2800
lea eax, [ebx + 0x58]
call fcn.00404868
mov eax, dword [ebp - 0x3c]
call fcn.00402754
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x3c]
call fcn.00402754
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x38]
push eax
push 0x16
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_HttpQueryInfoA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x2d], al
lea eax, [ebp - 0x24]
call fcn.00404868
cmp byte [ebp - 0x2d], 0
je 0x4b5029
lea eax, [ebx + 0x58]
mov edx, dword [ebp - 0x38]
call fcn.00404a60
lea eax, [ebx + 0x70]
mov edx, dword [ebx + 0x58]
call fcn.004048bc
jmp 0x4b5140
lea eax, [ebp - 0x20]
push eax
lea edx, [ebp - 0x48c]
mov eax, dword [ebx + 0x58]
call fcn.004089a8
mov eax, dword [ebp - 0x48c]
push eax
lea edx, [ebp - 0x490]
mov eax, 0x4b5644
call fcn.004089a8
mov eax, dword [ebp - 0x490]
pop edx
call fcn.00404e6c
add eax, 0xb
push eax
mov eax, dword [ebx + 0x58]
call fcn.00404b28
mov ecx, eax
mov eax, dword [ebx + 0x58]
pop edx
call fcn.00404d88
mov edx, dword [ebp - 0x20]
mov eax, 0x4b5658
call fcn.00404e6c
test eax, eax
jle 0x4b50b8
lea eax, [ebp - 0x20]
push eax
mov edx, dword [ebp - 0x20]
mov eax, 0x4b5658
call fcn.00404e6c
mov ecx, eax
mov edx, 1
mov eax, dword [ebp - 0x20]
call fcn.00404d88
jmp 0x4b50d8
lea eax, [ebp - 0x20]
push eax
mov edx, dword [ebp - 0x20]
mov eax, 0x4b5664
call fcn.00404e6c
mov ecx, eax
mov edx, 1
mov eax, dword [ebp - 0x20]
call fcn.00404d88
mov edx, dword [ebp - 0x20]
mov eax, 0x4b5670
call fcn.00404e6c
test eax, eax
jne 0x4b50f4
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0x20]
call fcn.00404b30
lea eax, [ebx + 0x58]
push eax
lea edx, [ebp - 0x494]
mov eax, dword [ebx + 0x58]
call fcn.004089a8
mov eax, dword [ebp - 0x494]
push eax
lea edx, [ebp - 0x498]
mov eax, 0x4b5644
call fcn.004089a8
mov eax, dword [ebp - 0x498]
pop edx
call fcn.00404e6c
add eax, 0xb
push eax
mov eax, dword [ebx + 0x58]
call fcn.00404b28
mov ecx, eax
mov eax, dword [ebx + 0x58]
pop edx
call fcn.00404d88
lea edx, [ebp - 0x49c]
mov eax, dword [ebx + 0x58]
call fcn.004089a8
mov eax, dword [ebp - 0x49c]
push eax
lea edx, [ebp - 0x4a0]
mov eax, 0x4b5644
call fcn.004089a8
mov eax, dword [ebp - 0x4a0]
pop edx
call fcn.00404e6c
test eax, eax
jg 0x4b5039
lea eax, [ebx + 0x58]
mov edx, dword [ebp - 0x24]
call fcn.004048bc
lea edx, [ebp - 0x4a4]
mov eax, dword [ebx + 0x70]
call fcn.004089a8
mov eax, dword [ebp - 0x4a4]
push eax
lea edx, [ebp - 0x4a8]
mov eax, 0x4b55f4
call fcn.004089a8
mov eax, dword [ebp - 0x4a8]
pop edx
call fcn.00404e6c
test eax, eax
jle 0x4b5232
lea eax, [ebp - 0x24]
push eax
lea edx, [ebp - 0x4ac]
mov eax, dword [ebx + 0x70]
call fcn.004089a8
mov eax, dword [ebp - 0x4ac]
push eax
lea edx, [ebp - 0x4b0]
mov eax, 0x4b55f4
call fcn.004089a8
mov eax, dword [ebp - 0x4b0]
pop edx
call fcn.00404e6c
mov edx, eax
add edx, 0x10
mov eax, dword [ebx + 0x70]
mov ecx, 0x64
call fcn.00404d88
lea eax, [ebp - 0x24]
push eax
mov edx, dword [ebp - 0x24]
mov eax, 0x4b5684
call fcn.00404e6c
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x24]
call fcn.00404d88
mov edx, 0x802
mov eax, dword [ebp - 0x24]
call fcn.00409170
mov edi, eax
jmp 0x4b5237
mov edi, 0x802
lea eax, [ebp - 0x24]
call fcn.00404868
lea eax, [ebp - 0x20]
call fcn.00404868
cmp dword [ebp - 0x38], 0
je 0x4b5255
mov eax, dword [ebp - 0x38]
call fcn.00402774
mov eax, dword [ebp - 0x3c]
call fcn.00402754
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x38]
push eax
push 0x13
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_HttpQueryInfoA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x2d], al
lea eax, [ebp - 0x4b4]
mov edx, dword [ebp - 0x38]
call fcn.00404a60
mov eax, dword [ebp - 0x4b4]
mov edx, 0x194
call fcn.00409170
mov dword [ebx + 0x9c], eax
cmp byte [ebp - 0x2d], 0
jne 0x4b52b7
cmp byte [0x4c3c54], 0
jne 0x4b547d
xor eax, eax
push ebp
push 0x4b5476
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x14], 0x400
lea eax, [ebp - 0x14]
push eax
push 0x401
lea eax, [ebp - 0x441]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetReadFile
cmp dword [ebp - 0x14], 0
je 0x4b53e1
cmp dword [ebp - 0x18], 0x989680
ja 0x4b53e1
mov eax, dword [ebp - 0x14]
mov byte [ebp + eax - 0x441], 0
lea eax, [ebp - 0x4b8]
lea edx, [ebp - 0x441]
mov ecx, 0x401
call fcn.00404ad8
mov edx, dword [ebp - 0x4b8]
lea eax, [ebp - 0x20]
call fcn.00404b30
add esi, dword [ebp - 0x14]
imul eax, esi, 0x64
xor edx, edx
div edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0x94]
cmp eax, dword [0x4c3bac]
jne 0x4b52c5
mov eax, dword [0x4c241c]
mov eax, dword [eax + 0x390]
mov edx, esi
call fcn.004336bc
push 0x4b5690
mov eax, esi
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x4c0]
call fcn.004090b4
push dword [ebp - 0x4c0]
push 0x4b56a4
mov eax, edi
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x4c4]
call fcn.004090b4
push dword [ebp - 0x4c4]
push 0x4b56b0
mov eax, dword [ebp - 0x1c]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x4c8]
call fcn.004090b4
push dword [ebp - 0x4c8]
push 0x4b56bc
lea eax, [ebp - 0x4bc]
mov edx, 7
call fcn.00404be8
mov edx, dword [ebp - 0x4bc]
mov eax, dword [0x4c241c]
mov eax, dword [eax + 0x3d8]
call fcn.004471cc
jmp 0x4b52c5
mov eax, dword [ebx + 0x94]
cmp eax, dword [0x4c3bac]
jne 0x4b543a
mov eax, dword [0x4c241c]
mov eax, dword [eax + 0x3d8]
mov edx, 0x4b56c8
call fcn.004471cc
mov eax, dword [0x4c241c]
mov eax, dword [eax + 0x390]
xor edx, edx
call fcn.004336a0
mov eax, dword [0x4c241c]
mov eax, dword [eax + 0x390]
xor edx, edx
call fcn.004336bc
mov eax, dword [0x4c241c]
mov eax, dword [eax + 0x390]
mov edx, edi
call fcn.004336ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b547d
cmp dword [ebp - 0x34], 0
je 0x4b5455
mov eax, dword [ebp - 0x34]
call fcn.00402774
cmp dword [ebp - 0x38], 0
je 0x4b5463
mov eax, dword [ebp - 0x38]
call fcn.00402774
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x20]
call fcn.004048bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b54cf
lea eax, [ebp - 0x4c8]
mov edx, 0x21
call fcn.0040488c
lea eax, [ebp - 0x2c]
mov edx, 4
call fcn.0040488c
lea eax, [ebp - 8]
call fcn.00404868
lea eax, [ebp + 0x10]
mov edx, 4
call fcn.0040488c
ret