Function at 0x4b7660
Capabilities:
Check http status code
Connect to http server
Create http request
Parse url
Read data from internet
Receive data
Resolve function by parsing pe exports
Send data
Send http request

Disassembly:
mov eax, 0x66d0
call fcn.004d96e0
mov eax, dword [0x541f38]
xor eax, esp
mov dword [esp + 0x66cc], eax
push ebx
push ebp
mov ebp, dword [esp + 0x66dc]
push esi
push edi
xor edi, edi
mov dword [esp + 0x14], ebp
cmp ebp, edi
je 0x4b77a7
xor eax, eax
push 0x206
lea edx, [esp + 0x4ce]
xor ecx, ecx
push edi
push edx
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x48], edi
mov word [esp + 0xac], ax
mov dword [esp + 0xae], eax
mov dword [esp + 0xb2], eax
mov dword [esp + 0xb6], eax
mov dword [esp + 0xba], eax
mov dword [esp + 0xbe], eax
mov dword [esp + 0xc2], eax
mov dword [esp + 0xc6], eax
mov word [esp + 0xca], ax
mov word [esp + 0x4d4], cx
call fcn.004d86e0
push 0x206
lea ecx, [esp + 0x2d2]
xor eax, eax
push edi
push ecx
mov word [esp + 0x2d8], ax
call fcn.004d86e0
push 0x1ffe
lea eax, [esp + 0x16f2]
xor edx, edx
push edi
push eax
mov word [esp + 0x16f8], dx
call fcn.004d86e0
push 0x3c
lea ecx, [esp + 0x70]
push edi
push ecx
call fcn.004d86e0
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x1704]
mov dword [esp + 0xa4], eax
lea edx, [esp + 0x2f0]
mov eax, ecx
add esp, 0x30
mov dword [esp + 0x48], 0x3c
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], 0x104
mov dword [esp + 0x78], 0x1000
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, di
jne 0x4b7780
lea edx, [esp + 0x48]
push edx
sub eax, esi
push edi
sar eax, 1
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x4b77c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0xffffffff
mov ecx, dword [esp + 0x66dc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004d7eb0
add esp, 0x66d0
ret 4
mov eax, dword [esp + 0x54]
cmp eax, 4
jne 0x4b77d8
mov dword [esp + 0x20], 1
jmp 0x4b77e1
cmp eax, 3
jne 0x4b77a7
mov dword [esp + 0x20], edi
movzx ebx, word [esp + 0x60]
push edi
push edi
push edi
push edi
push 0x527f5c
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, eax
mov dword [esp + 0x28], esi
cmp esi, edi
jne 0x4b7809
mov edi, 0xfffffffd
jmp 0x4b7db5
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea eax, [esp + 0x48]
push eax
push 2
push esi
mov dword [esp + 0x54], 0x7d0
mov dword [esp + 0x50], 0x7530
call edi
push 4
lea ecx, [esp + 0x44]
push ecx
push 6
push esi
call edi
push 4
lea edx, [esp + 0x44]
push edx
push 5
push esi
call edi
push 0
push 0
push 3
push 0
push 0
push ebx
lea eax, [esp + 0x2d8]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetConnectW]
mov edx, eax
mov dword [esp + 0x38], edx
test edx, edx
jne 0x4b7871
mov edi, 0xfffffffc
jmp 0x4b7d98
mov eax, dword [ebp + 0xb0]
cmp eax, 1
jne 0x4b7899
xor eax, eax
mov edi, edi
movzx ecx, word [eax + str.POST]
mov word [esp + eax + 0xa0], cx
add eax, 2
test cx, cx
jne 0x4b7880
jmp 0x4b7907
cmp eax, 2
jne 0x4b78b9
xor eax, eax
movzx ecx, word [eax + 0x52146c]
mov word [esp + eax + 0xa0], cx
add eax, 2
test cx, cx
jne 0x4b78a0
jmp 0x4b7907
cmp dword [ebp + 0x1c], 0
jbe 0x4b78e9
cmp dword [ebp + 0x18], 0
je 0x4b78e9
xor eax, eax
jmp 0x4b78d0
movzx ecx, word [eax + str.POST]
mov word [esp + eax + 0xa0], cx
add eax, 2
test cx, cx
jne 0x4b78d0
jmp 0x4b7907
xor eax, eax
jmp 0x4b78f0
movzx ecx, word [eax + 0x52146c]
mov word [esp + eax + 0xa0], cx
add eax, 2
test cx, cx
jne 0x4b78f0
cmp dword [esp + 0x20], 0
mov eax, 0x80048200
je 0x4b7926
cmp dword [ebp + 0xb4], 0
mov eax, 0x80848200
jne 0x4b7926
mov eax, 0x80849200
mov ecx, dword [ebp + 0xb8]
test ecx, ecx
je 0x4b7932
or eax, ecx
push 0
push eax
push 0
push 0
push str.HTTP_1.0
lea ecx, [esp + 0x16e8]
push ecx
lea eax, [esp + 0xb8]
push eax
push edx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov esi, eax
test esi, esi
jne 0x4b7968
mov dword [esp + 0x1c], 0xfffffffb
jmp 0x4b7d7d
lea ecx, [esp + 0x4c8]
push str.Accept:___r_nUser_Agent:_Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.1__r_nConnection:close_r_n
push ecx
call fcn.004a18f0
add esp, 8
push 0xa0000000
push 0xffffffffffffffff
lea edx, [esp + 0x4d0]
push edx
push esi
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
lea eax, [esp + 0x2c]
lea edi, [ebp + 0x20]
push eax
mov ecx, edi
call fcn.004254e0
mov ebp, 0x10
mov ebx, dword [edi + 0x10]
cmp dword [edi + 0xc], ebx
jbe 0x4b79b4
call fcn.004d8cf3
mov ecx, dword [esp + 0x2c]
mov eax, dword [edi]
test ecx, ecx
je 0x4b79c2
cmp ecx, eax
je 0x4b79c7
call fcn.004d8cf3
cmp dword [esp + 0x30], ebx
je 0x4b7a5d
lea ecx, [esp + 0x2c]
call fcn.00425c90
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x90]
mov dword [esp + 0xa8], 0xf
mov dword [esp + 0xa4], 0
mov byte [esp + 0x94], 0
call fcn.00425ff0
mov eax, dword [esp + 0x88]
cmp dword [esp + 0x9c], ebp
jae 0x4b7a20
lea eax, [esp + 0x88]
push 0x20000000
push 0xffffffffffffffff
push eax
push esi
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
cmp dword [esp + 0x9c], ebp
jb 0x4b7a48
mov ecx, dword [esp + 0x88]
push ecx
call fcn.004d72b6
add esp, 4
push 0
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x34]
call fcn.004b4be0
jmp 0x4b79a7
mov edi, dword [sym.imp.WININET.dll_InternetQueryOptionW]
mov ebx, dword [sym.imp.WININET.dll_HttpSendRequestW]
lea esp, [esp]
inc dword [esp + 0x18]
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0x1f
push esi
mov dword [esp + 0x20], 0
mov dword [esp + 0x3c], 4
call edi
or dword [esp + 0x10], 0x3180
push 4
lea edx, [esp + 0x14]
push edx
push 0x1f
push esi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x1c]
mov edx, dword [eax + 0x18]
push ecx
push edx
push 0
push 0
push esi
call ebx
mov ebp, eax
test ebp, ebp
jne 0x4b7b0b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f0d
jne 0x4b7b0b
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x24]
push ecx
push 0x1f
push esi
mov dword [esp + 0x3c], 4
call edi
or dword [esp + 0x20], 0x100
push 4
lea edx, [esp + 0x24]
push edx
push 0x1f
push esi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
cmp dword [esp + 0x18], 2
jl 0x4b7a70
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4b7d7d
test ebp, ebp
je 0x4b7cea
push 0x1fe
xor ebp, ebp
lea edx, [esp + 0xc6]
xor ecx, ecx
push ebp
push edx
mov word [esp + 0xcc], cx
call fcn.004d86e0
mov ebx, dword [sym.imp.WININET.dll_HttpQueryInfoW]
add esp, 0xc
push ebp
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0xc8]
push ecx
push 0x13
push esi
mov dword [esp + 0x2c], 0x100
xor edi, edi
mov dword [esp + 0x34], ebp
call ebx
test eax, eax
je 0x4b7e18
lea edx, [esp + 0xc0]
push edx
call fcn.004da869
mov edi, eax
add esp, 4
cmp edi, 0xc8
jne 0x4b7ded
push ebp
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0xc8]
push ecx
push 5
push esi
call ebx
test eax, eax
je 0x4b7bc7
lea edx, [esp + 0xc0]
push edx
call fcn.004da869
add esp, 4
mov dword [esp + 0x20], eax
jmp 0x4b7bcd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 0x14]
lea ecx, [eax + 0x58]
push ecx
sub esp, 0x20
add eax, 0x38
mov ecx, esp
push eax
call fcn.004b74c0
push esi
call fcn.004b71d0
add esp, 0x28
xor ebp, ebp
xor edi, edi
push 0x2001
xor ebx, ebx
lea edx, [esp + 0x46dc]
push ebx
push edx
call fcn.004d86e0
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push 0x2000
lea ecx, [esp + 0x46e0]
push ecx
push esi
mov dword [esp + 0x20], ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4b7c9b
mov edx, dword [esp + 0x10]
add edx, edi
push edx
push ebp
call fcn.004dd2c9
mov ebp, eax
add esp, 8
cmp ebp, ebx
je 0x4b7d7d
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x46dc]
push ecx
lea edx, [edi + ebp]
push edx
call fcn.004d8210
add edi, dword [esp + 0x1c]
add esp, 0xc
cmp edi, 0x500000
jbe 0x4b7c76
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4b7de0
cmp dword [esp + 0x10], 0
jne 0x4b7bf0
jmp 0x4b7cb3
mov eax, dword [esp + 0x20]
cmp eax, ebx
jbe 0x4b7dce
cmp edi, eax
jne 0x4b7dce
mov dword [esp + 0x10], ebx
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x10]
test eax, eax
je 0x4b7ccb
mov ecx, dword [ecx + 0x14]
push ecx
push edi
push ebp
push 0xc8
call eax
mov dword [esp + 0x3c], 1
test ebp, ebp
je 0x4b7ce2
push 0
push ebp
call fcn.004dd2c9
add esp, 8
mov dword [esp + 0x1c], 0xc8
push 0x1001
lea ecx, [esp + 0x36d8]
push 0
push ecx
call fcn.004d86e0
mov edi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
add esp, 0xc
push 0
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x36dc]
push eax
push SafeArrayGetElement
mov ebp, 0x1000
push esi
mov dword [esp + 0x48], ebp
call edi
mov ebx, dword [esp + 0x14]
lea ecx, [esp + 0x36d4]
push ecx
lea ecx, [ebx + 0x78]
call fcn.00424c70
push 0x1001
lea edx, [esp + 0x6d4]
push 0
push edx
call fcn.004d86e0
add esp, 0xc
push 0
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x6d8]
push ecx
push 0x16
push esi
mov dword [esp + 0x48], ebp
call edi
lea edx, [esp + 0x6d0]
push edx
lea ecx, [ebx + 0x94]
call fcn.00424c70
test esi, esi
je 0x4b7d88
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov esi, dword [esp + 0x28]
mov ebp, dword [esp + 0x14]
mov edx, dword [esp + 0x38]
mov edi, dword [esp + 0x1c]
test edx, edx
je 0x4b7da3
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
test esi, esi
je 0x4b7dae
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [esp + 0x3c], 0
jne 0x4b7dc7
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4b7dc7
mov ecx, dword [ebp + 0x14]
push ecx
push 0
push 0
push edi
call eax
mov eax, edi
jmp 0x4b77aa
mov dword [esp + 0x1c], 0xfffffffa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebp, ebx
je 0x4b7d7d
push 0
push ebp
call fcn.004dd2c9
add esp, 8
jmp 0x4b7d7d
cmp edi, 0x197
je 0x4b7dfd
cmp edi, 0x193
jne 0x4b7e18
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
push esi
call ebx
mov edx, dword [esp + 0x38]
push edx
call ebx
mov eax, dword [esp + 0x28]
push eax
call ebx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x1c], edi
jmp 0x4b7d7d