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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bbf6c
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x4c8
mov eax, dword [0x4dd704]
xor eax, ebp
mov dword [ebp - 0x20], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x4d8], ecx
push 0
push 0
push 0
push 0
call fcn.0040ad90
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ecx, dword [ebp - 0x4d8]
mov dword [ecx + 0x298], eax
mov edx, dword [ebp - 0x4d8]
cmp dword [edx + 0x298], 0
jne 0x4a89ce
push 0
push 0x6f10
mov ecx, dword [ebp - 0x4d8]
call fcn.004a8010
jmp 0x4a9001
mov eax, dword [ebp - 0x4d8]
cmp dword [eax + 0x2a4], 0
je 0x4a89f6
push 0
push 0
push 0x8001
mov ecx, dword [ebp - 0x4d8]
call fcn.004055b0
jmp 0x4a9001
push 0x4a7fe0
mov ecx, dword [ebp - 0x4d8]
mov edx, dword [ecx + 0x298]
push edx
call dword [sym.imp.WININET.dll_InternetSetStatusCallback]
cmp eax, 0xffffffff
jne 0x4a8a2a
push 0
push 0x6f10
mov ecx, dword [ebp - 0x4d8]
call fcn.004a8010
jmp 0x4a9001
mov eax, dword [ebp - 0x4d8]
cmp dword [eax + 0x2a4], 0
je 0x4a8a52
push 0
push 0
push 0x8001
mov ecx, dword [ebp - 0x4d8]
call fcn.004055b0
jmp 0x4a9001
mov ecx, dword [ebp - 0x4d8]
add ecx, 0x80
call fcn.00401600
test eax, eax
je 0x4a8ae2
mov ecx, dword [ebp - 0x4d8]
push ecx
push 0
mov edx, dword [ebp - 0x4d8]
mov eax, dword [edx + 0x294]
push eax
mov ecx, dword [ebp - 0x4d8]
add ecx, 0x84
call fcn.00404330
push eax
mov ecx, dword [ebp - 0x4d8]
add ecx, 0x80
call fcn.00404330
push eax
mov ecx, dword [ebp - 0x4d8]
mov dx, word [ecx + 0x290]
push edx
mov ecx, dword [ebp - 0x4d8]
add ecx, 0x284
call fcn.00404330
push eax
mov eax, dword [ebp - 0x4d8]
mov ecx, dword [eax + 0x298]
push ecx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov edx, dword [ebp - 0x4d8]
mov dword [edx + 0x29c], eax
jmp 0x4a8b3b
mov eax, dword [ebp - 0x4d8]
push eax
push 0
mov ecx, dword [ebp - 0x4d8]
mov edx, dword [ecx + 0x294]
push edx
push 0
push 0
mov eax, dword [ebp - 0x4d8]
mov cx, word [eax + 0x290]
push ecx
mov ecx, dword [ebp - 0x4d8]
add ecx, 0x284
call fcn.00404330
push eax
mov edx, dword [ebp - 0x4d8]
mov eax, dword [edx + 0x298]
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov ecx, dword [ebp - 0x4d8]
mov dword [ecx + 0x29c], eax
mov edx, dword [ebp - 0x4d8]
cmp dword [edx + 0x29c], 0
jne 0x4a8b61
push 0
push 0x6f11
mov ecx, dword [ebp - 0x4d8]
call fcn.004a8010
jmp 0x4a9001
mov eax, dword [ebp - 0x4d8]
cmp dword [eax + 0x2a4], 0
je 0x4a8b89
push 0
push 0
push 0x8001
mov ecx, dword [ebp - 0x4d8]
call fcn.004055b0
jmp 0x4a9001
mov ecx, dword [ebp - 0x4d8]
call fcn.004a7890
mov dword [ebp - 0x458], 0x4c8a64
mov dword [ebp - 0x454], 0
mov ecx, dword [ebp - 0x4d8]
push ecx
push 0x84400000
lea edx, [ebp - 0x458]
push edx
push 0
push 0
mov ecx, dword [ebp - 0x4d8]
add ecx, 0x288
call fcn.00404330
push eax
push 0
mov eax, dword [ebp - 0x4d8]
mov ecx, dword [eax + 0x29c]
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edx, dword [ebp - 0x4d8]
mov dword [edx + 0x2a0], eax
mov eax, dword [ebp - 0x4d8]
cmp dword [eax + 0x2a0], 0
jne 0x4a8c18
push 0
push 0x6f11
mov ecx, dword [ebp - 0x4d8]
call fcn.004a8010
jmp 0x4a9001
mov ecx, dword [ebp - 0x4d8]
cmp dword [ecx + 0x2a4], 0
je 0x4a8c40
push 0
push 0
push 0x8001
mov ecx, dword [ebp - 0x4d8]
call fcn.004055b0
jmp 0x4a9001
push 0
push 0
push 0
push 0
mov edx, dword [ebp - 0x4d8]
mov eax, dword [edx + 0x2a0]
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestA]
mov dword [ebp - 0x460], eax
cmp dword [ebp - 0x460], 0
jne 0x4a8c81
push 0
push 0x6f11
mov ecx, dword [ebp - 0x4d8]
call fcn.004a8010
jmp 0x4a9001
mov dword [ebp - 0x4c], 0x20
push 0
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x488]
push edx
push 0x13
mov eax, dword [ebp - 0x4d8]
mov ecx, dword [eax + 0x2a0]
push ecx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x4a8cc8
push 0x6f12
mov ecx, dword [ebp - 0x4d8]
call fcn.004a7a80
jmp 0x4a9001
lea edx, [ebp - 0x488]
push edx
call fcn.00489f59
add esp, 4
mov dword [ebp - 0x490], eax
cmp dword [ebp - 0x490], 0x197
je 0x4a8cf5
cmp dword [ebp - 0x490], 0x191
jne 0x4a8d57
lea eax, [ebp - 0x4c8]
push eax
push 0x32
lea ecx, [ebp - 0x4c4]
push ecx
mov edx, dword [ebp - 0x4d8]
mov eax, dword [edx + 0x2a0]
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
cmp dword [ebp - 0x4c8], 0
jne 0x4a8cf5
push 0
push 7
push 0x2eee
mov ecx, dword [ebp - 0x4d8]
mov edx, dword [ecx + 0x2a0]
push edx
mov ecx, dword [ebp - 0x4d8]
call fcn.00405470
push eax
call dword [sym.imp.WININET.dll_InternetErrorDlg]
cmp eax, 0x2f00
jne 0x4a8d55
jmp 0x4a8c40
jmp 0x4a8d7f
cmp dword [ebp - 0x490], 0xc8
je 0x4a8d7f
mov eax, dword [ebp - 0x490]
push eax
push 0x6f13
mov ecx, dword [ebp - 0x4d8]
call fcn.004a8010
jmp 0x4a9001
push 0x6f08
mov ecx, dword [ebp - 0x4d8]
call fcn.004a7b30
mov dword [ebp - 0x4c], 0x20
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x48], 0
push 0
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x40]
push edx
push 5
mov eax, dword [ebp - 0x4d8]
mov ecx, dword [eax + 0x2a0]
push ecx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x4a8dec
mov dword [ebp - 0x48], 1
lea edx, [ebp - 0x40]
push edx
call fcn.00489f59
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x4d8]
call fcn.004a78e0
push 0x6f16
mov ecx, dword [ebp - 0x4d8]
call fcn.004a7b30
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [ebp - 0x464], eax
mov ecx, dword [ebp - 0x464]
mov dword [ebp - 0x45c], ecx
mov dword [ebp - 0x48c], 0
mov dword [ebp - 0x18], 0x400
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x468], 0
mov dword [ebp - 0x44], 0
lea edx, [ebp - 0x48c]
push edx
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0x450]
push ecx
mov edx, dword [ebp - 0x4d8]
mov eax, dword [edx + 0x2a0]
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x4a8e82
push 0
push 0x6f14
mov ecx, dword [ebp - 0x4d8]
call fcn.004a8010
jmp 0x4a9001
cmp dword [ebp - 0x48c], 0
je 0x4a8f90
mov ecx, dword [ebp - 0x4d8]
cmp dword [ecx + 0x2a4], 0
jne 0x4a8f90
lea ecx, [ebp - 0x4d0]
call fcn.00462767
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x48c]
push edx
lea eax, [ebp - 0x450]
push eax
mov ecx, dword [ebp - 0x4d8]
add ecx, 0x2ac
mov edx, dword [ebp - 0x4d8]
mov eax, dword [edx + 0x2ac]
mov edx, dword [eax + 0x38]
call edx
jmp 0x4a8f22
mov dword [ebp - 4], 0
jmp 0x4a8f42
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4d0]
call fcn.0040ad80
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x48c]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x48]
push edx
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x468]
push ecx
mov edx, dword [ebp - 0x14]
push edx
lea eax, [ebp - 0x45c]
push eax
mov ecx, dword [ebp - 0x464]
push ecx
mov ecx, dword [ebp - 0x4d8]
call fcn.004a87b0
cmp dword [ebp - 0x48c], 0
je 0x4a8fac
mov edx, dword [ebp - 0x4d8]
cmp dword [edx + 0x2a4], 0
je 0x4a8e3d
mov ecx, dword [ebp - 0x4d8]
add ecx, 0x2ac
mov eax, dword [ebp - 0x4d8]
mov edx, dword [eax + 0x2ac]
mov eax, dword [edx + 0x4c]
call eax
mov ecx, dword [ebp - 0x4d8]
cmp dword [ecx + 0x2a4], 0
je 0x4a8fed
mov ecx, dword [ebp - 0x4d8]
add ecx, 0x78
call fcn.00404330
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
push 0
push 0
push 0x8001
mov ecx, dword [ebp - 0x4d8]
call fcn.004055b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.00485605
mov esp, ebp
pop ebp
ret