Function at 0x404ca0
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
lea ebp, [esp - 0x478]
sub esp, 0x478
push 0xffffffffffffffff
push 0x43f155
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4535c4]
xor eax, ebp
mov dword [ebp + 0x474], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
push 0x447ff0
mov dword [ebp - 0x1c], edi
mov esi, edx
call fcn.00428db1
add esp, 4
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push str.Test
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [edi + 0x880], eax
cmp eax, ebx
jne 0x404d31
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [esi + 0x18]
push eax
push str._s___Failed_in_call_to_InternetOpen__Error:_d_n
call fcn.00428db1
add esp, 0xc
push 0x6e
xor ecx, ecx
call fcn.00407110
jmp 0x4050da
push 0x405ef0
push eax
call dword [sym.imp.WININET.dll_InternetSetStatusCallback]
cmp eax, 0xffffffff
jne 0x404d64
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_in_c0all_to_InternetSetStatusCallback__Error:_d_n
call fcn.00428db1
add esp, 8
push 0x6e
xor ecx, ecx
call fcn.00407110
jmp 0x4050da
mov ecx, dword [0x457758]
mov edx, dword [edi + 0x880]
push ebx
push ebx
push 3
push 0x44899b
push 0x44899b
push 0x50
push ecx
push edx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [edi + 0x884], eax
cmp eax, ebx
jne 0x404db4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x448098
call fcn.00428db1
add esp, 8
push 0x6f
xor ecx, ecx
call fcn.00407110
jmp 0x4050da
mov edx, dword [0x457fac]
push edi
push 0x84400000
lea ecx, [ebp - 0x38]
push ecx
push ebx
push ebx
push edx
push 0x4480d0
push eax
mov dword [ebp - 0x38], 0x4480cc
mov dword [ebp - 0x34], ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [edi + 0x888], eax
cmp eax, ebx
jne 0x404df5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4480d4
jmp 0x404d9e
cmp dword [edi + 0x898], ebx
je 0x404e13
mov eax, dword [edi + 0x20]
push ebx
push ebx
push 0x8001
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x4050da
mov ecx, dword [edi + 0x888]
push ebx
push ebx
push ebx
push ebx
push ecx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
cmp eax, ebx
je 0x404f91
mov ecx, dword [edi + 0x888]
push ebx
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp + 0x454]
push eax
push 0x13
push ecx
mov dword [ebp - 0x20], 0x20
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x404fa2
lea edx, [ebp + 0x454]
push edx
call fcn.00428e76
mov esi, eax
push esi
push 0x44818c
call fcn.00428db1
add esp, 0xc
cmp esi, 0x197
je 0x404e86
cmp esi, 0x191
jne 0x404fc2
mov edx, dword [edi + 0x888]
lea eax, [ebp - 0x18]
push eax
push 0x32
lea ecx, [ebp + 0x400]
push ecx
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
cmp dword [ebp - 0x18], ebx
jne 0x404e86
mov eax, dword [edi + 0x888]
push ebx
push 7
push 0x2eee
push eax
mov ecx, edi
call fcn.00401000
push eax
call dword [sym.imp.WININET.dll_InternetErrorDlg]
cmp eax, 0x2f00
je 0x404e13
mov esi, 0x6c
call fcn.004067f0
mov eax, dword [edi + 0x888]
push ebx
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp + 0x434]
push edx
push 5
push eax
mov dword [ebp - 0x20], 0x20
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x404f1c
lea ecx, [ebp + 0x434]
push ecx
mov dword [ebp - 0x18], 1
call fcn.00428e76
add esp, 4
mov dword [ebp - 0x24], eax
mov esi, 0x74
call fcn.004067f0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, esi
mov ebx, eax
push 0x4481e8
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], esi
call fcn.00428db1
add esp, 4
lea esp, [esp]
mov ecx, dword [edi + 0x888]
lea edx, [ebp - 0x14]
push edx
mov eax, 0x400
push eax
lea eax, [ebp]
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x404fea
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x448204
call fcn.00428db1
add esp, 8
push 0x72
xor ecx, ecx
call fcn.00407110
jmp 0x4050da
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x448108
jmp 0x404d9e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x448140
call fcn.00428db1
add esp, 8
mov esi, edi
call fcn.00407250
jmp 0x4050da
cmp esi, 0xc8
je 0x404ecd
push esi
push 0x4481ac
call fcn.00428db1
add esp, 8
push 0x71
mov ecx, esi
call fcn.00407110
jmp 0x4050da
cmp dword [ebp - 0x14], 0
je 0x40504e
lea ecx, [ebp - 0x40]
call fcn.00413fef
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
mov edx, dword [edi + 0x8a0]
mov edx, dword [edx + 0x38]
lea ecx, [edi + 0x8a0]
push eax
lea eax, [ebp]
push eax
call edx
mov dword [ebp - 4], 0xffffffff
call fcn.00414007
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x18]
add esi, dword [ebp - 0x14]
push eax
push ecx
lea edx, [ebp - 0x30]
push edx
push ebx
push edi
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x28]
call fcn.00405d30
cmp dword [ebp - 0x14], 0
jne 0x404f50
mov eax, dword [edi + 0x8a0]
mov edx, dword [eax + 0x4c]
lea ecx, [edi + 0x8a0]
call edx
push 0x448278
call fcn.00428db1
add esp, 4
cmp dword [edi + 0x898], 0
je 0x40509b
push 0x457fac
lea eax, [edi + 0x78]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00407f30
mov edx, dword [eax]
add esp, 0xc
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x1c]
call fcn.00401a80
mov eax, dword [edi + 0x20]
push 0
push 0
push 0x8001
push eax
mov dword [0x457620], 1
call dword [sym.imp.USER32.dll_PostMessageA]
push 0x448290
call fcn.00428db1
add esp, 4
call fcn.00408380
mov ecx, dword [eax + 0x20]
push 0
push 0
push 0x10
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x474]
xor ecx, ebp
call fcn.00428549
add ebp, 0x478
mov esp, ebp
pop ebp
ret