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

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 4
add esp, 0xfffff004
push eax
dec eax
jne 0x4fe759
mov eax, dword [ebp - 4]
add esp, 0xfffffa78
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040573c
mov eax, dword [ebp - 0xc]
call fcn.0040573c
mov eax, dword [ebp + 0x14]
call fcn.0040573c
mov eax, dword [ebp + 0x10]
call fcn.0040573c
mov eax, dword [ebp + 0xc]
call fcn.0040573c
xor eax, eax
push ebp
push 0x4feb1d
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
mov word [ebp - 0x1e], 0
push 0
push 0
push 0
push 0
push 0x4feb30
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x4feaeb
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x18], 0
je 0x4fead4
mov dword [ebp - 0x24], 0x400
lea eax, [ebp - 0x4440]
xor ecx, ecx
mov edx, 0x400
call fcn.00403464
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x4440]
push eax
push 6
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_InternetQueryOptionA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x35], al
cmp byte [ebp - 0x35], 0
je 0x4fe866
push 0x2710
lea eax, [ebp - 0x4440]
xor ecx, ecx
mov edx, 0x3ff
call fcn.004c0fa8
mov eax, dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x4440]
push eax
push 6
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_InternetSetOptionA
mov eax, dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x4440]
push eax
push 2
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_InternetSetOptionA
cmp dword [ebp - 8], 0
jne 0x4fe871
xor eax, eax
mov dword [ebp - 8], eax
push 0
push 0
push 3
push 0
push 0
mov ax, word [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0040574c
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_InternetConnectA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4feacb
push 0
push 0x400000
push 0
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.0040574c
push eax
push 0x4feb64
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_HttpOpenRequestA
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x4fe8ef
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x1c]
push eax
call sub.wininet.dll_HttpSendRequestA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4fe90d
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], 4
xor eax, eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0x20000013
mov eax, dword [ebp - 0x1c]
push eax
call sub.wininet.dll_HttpQueryInfoA
cmp dword [ebp - 0x2c], 0x191
jne 0x4fe9a0
mov eax, dword [ebp + 0x10]
call fcn.0040554c
inc eax
push eax
mov eax, dword [ebp + 0x10]
call fcn.0040574c
push eax
push 0x1c
mov eax, dword [ebp - 0x1c]
push eax
call sub.wininet.dll_InternetSetOptionA
mov eax, dword [ebp + 0xc]
call fcn.0040554c
inc eax
push eax
mov eax, dword [ebp + 0xc]
call fcn.0040574c
push eax
push 0x1d
mov eax, dword [ebp - 0x1c]
push eax
call sub.wininet.dll_InternetSetOptionA
inc word [ebp - 0x1e]
cmp word [ebp - 0x1e], 3
jb 0x4fe8c6
mov eax, dword [ebp - 0x1c]
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp + 8]
mov byte [eax], 1
xor eax, eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x2c], 0
jne 0x4fe9b4
mov eax, dword [ebp - 0x1c]
push eax
call sub.wininet.dll_InternetCloseHandle
xor eax, eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4feacb
xor eax, eax
push ebp
push 0x4feac4
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp + 0x14]
lea eax, [ebp - 0x458c]
call fcn.00403098
mov edx, 1
lea eax, [ebp - 0x458c]
call fcn.00403808
call fcn.0040d398
fstp qword [ebp - 0x40]
wait
lea eax, [ebp - 0x34]
push eax
push 0x4000
lea eax, [ebp - 0x4040]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.wininet.dll_InternetReadFile
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
call fcn.0040d398
add esp, 0xfffffff8
fstp qword [esp]
wait
call fcn.0049b738
cmp edx, 0
jne 0x4fea31
cmp eax, 0x1388
jb 0x4fea7d
jmp 0x4fea33
jl 0x4fea7d
mov eax, dword [ebp - 0x1c]
push eax
call sub.wininet.dll_InternetCloseHandle
lea eax, [ebp - 0x458c]
call fcn.0040323c
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004fe750
mov byte [ebp - 0xd], al
call fcn.00404cd4
call fcn.00404cd4
jmp 0x4feaf2
cmp dword [ebp - 0x34], 0
je 0x4fea9e
push 0
lea edx, [ebp - 0x4040]
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x458c]
call fcn.0040321c
jmp 0x4fe9ea
lea eax, [ebp - 0x458c]
call fcn.0040323c
mov byte [ebp - 0xd], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4feacb
mov eax, dword [ebp - 0x1c]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetCloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4feaf2
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4feb24
lea eax, [ebp - 0xc]
call fcn.0040528c
lea eax, [ebp - 4]
call fcn.0040528c
lea eax, [ebp + 0xc]
mov edx, 3
call fcn.004052b0
ret