Function at 0x401f90
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 0x40e478
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4ac
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], esi
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 0x10]
xor edi, edi
push edi
push edi
push edi
push edi
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp eax, edi
mov dword [esi + 0x208], eax
jne 0x401ff3
push edi
push 0x6e
mov ecx, esi
call fcn.00401ea0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x214], edi
je 0x40200b
mov eax, dword [esi + 0x20]
push edi
push edi
push 0x8001
push eax
jmp 0x4023bc
push 0x402560
push eax
call dword [sym.imp.WININET.dll_InternetSetStatusCallback]
cmp eax, 0xffffffff
jne 0x402037
push edi
push 0x6e
mov ecx, esi
call fcn.00401ea0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x214], edi
je 0x402046
push edi
push edi
jmp 0x4023b3
mov eax, dword [esi + 0x68]
cmp dword [eax - 8], edi
je 0x402074
mov ebx, dword [esi + 0x204]
mov ecx, dword [esi + 0x6c]
mov edx, dword [esi + 0x1f4]
push esi
push edi
push ebx
push ecx
mov ecx, dword [esi + 0x208]
push eax
mov ax, word [esi + 0x200]
push eax
push edx
push ecx
jmp 0x402095
mov edx, dword [esi + 0x204]
mov cx, word [esi + 0x200]
mov eax, dword [esi + 0x1f4]
push esi
push edi
push edx
mov edx, dword [esi + 0x208]
push edi
push edi
push ecx
push eax
push edx
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp eax, edi
mov dword [esi + 0x20c], eax
jne 0x4020c0
push edi
push 0x6f
mov ecx, esi
call fcn.00401ea0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x214], edi
je 0x4020d8
mov eax, dword [esi + 0x20]
push edi
push edi
push 0x8001
push eax
jmp 0x4023bc
mov ecx, esi
call fcn.00401e80
mov eax, dword [esi + 0x1f8]
mov edx, dword [esi + 0x20c]
push esi
lea ecx, [ebp - 0x38]
push 0x84400000
push ecx
push edi
push edi
push eax
push edi
push edx
mov dword [ebp - 0x38], 0x413078
mov dword [ebp - 0x34], edi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
cmp eax, edi
mov dword [esi + 0x210], eax
jne 0x40212f
push edi
push 0x6f
mov ecx, esi
call fcn.00401ea0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x214]
push edi
cmp ecx, edi
push edi
je 0x402149
mov eax, dword [esi + 0x20]
push 0x8001
push eax
jmp 0x4023bc
push edi
push edi
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestA]
cmp eax, edi
je 0x402202
mov ebx, dword [sym.imp.WININET.dll_InternetErrorDlg]
mov eax, dword [esi + 0x210]
lea ecx, [ebp - 0x1c]
push edi
lea edx, [ebp - 0x64]
push ecx
push edx
push 0x13
push eax
mov dword [ebp - 0x1c], 0x20
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x40221d
lea ecx, [ebp - 0x64]
push ecx
call dword [sym.imp.MSVCRT.dll_atol]
add esp, 4
cmp eax, 0x197
je 0x4021a6
cmp eax, 0x191
jne 0x402237
mov ecx, dword [esi + 0x210]
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0xb8]
push 0x32
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
cmp dword [ebp - 0x18], edi
jne 0x4021a6
cmp esi, edi
jne 0x4021cd
xor eax, eax
jmp 0x4021d0
mov eax, dword [esi + 0x20]
mov edx, dword [esi + 0x210]
push edi
push 7
push 0x2eee
push edx
push eax
call ebx
cmp eax, 0x2f00
jne 0x402259
mov eax, dword [esi + 0x210]
push edi
push edi
push edi
push edi
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x402160
push edi
push 0x6f
mov ecx, esi
call fcn.00401ea0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x70
mov ecx, esi
call fcn.00401f60
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0xc8
je 0x402259
push eax
push 0x71
mov ecx, esi
call fcn.00401ea0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x6c
mov ecx, esi
call fcn.00401c30
mov eax, dword [esi + 0x210]
lea ecx, [ebp - 0x1c]
push edi
lea edx, [ebp - 0x84]
push ecx
push edx
push 5
push eax
mov dword [ebp - 0x1c], 0x20
xor ebx, ebx
mov dword [ebp - 0x18], edi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x4022ae
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x18], 1
push ecx
call dword [sym.imp.MSVCRT.dll_atol]
add esp, 4
mov ebx, eax
mov ecx, esi
push ebx
call fcn.004017d0
push 0x74
mov ecx, esi
call fcn.00401c30
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], eax
mov ecx, dword [esi + 0x210]
lea edx, [ebp - 0x14]
mov eax, 0x400
push edx
push eax
lea eax, [ebp - 0x4b8]
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x40230b
push eax
push 0x72
mov ecx, esi
call fcn.00401ea0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40238c
mov eax, dword [esi + 0x214]
test eax, eax
jne 0x402377
lea ecx, [ebp - 0x44]
call sub.MFC42.DLL_AFX_EXCEPTION_LINK::AFX_EXCEPTION_LINK
mov eax, dword [ebp - 0x14]
mov edx, dword [esi + 0x21c]
lea ecx, [esi + 0x21c]
push eax
lea eax, [ebp - 0x4b8]
mov dword [ebp - 4], 0
push eax
mov byte [ebp - 4], 1
call dword [edx + 0x40]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_AfxTryCleanup
mov ecx, dword [ebp - 0x14]
push ebx
add edi, ecx
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0x30]
push ecx
lea eax, [ebp - 0x2c]
push edx
mov edx, dword [ebp - 0x28]
push eax
lea ecx, [ebp - 0x24]
push edi
push ecx
push edx
mov ecx, esi
call fcn.00402430
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40238c
mov eax, dword [esi + 0x214]
test eax, eax
je 0x4022ce
mov edx, dword [esi + 0x21c]
lea ecx, [esi + 0x21c]
call dword [edx + 0x54]
mov eax, dword [esi + 0x214]
test eax, eax
je 0x4023af
mov eax, dword [esi + 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0
mov ecx, dword [esi + 0x20]
push 0x8001
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret