Function at 0x41bec0
Capabilities:
Check http status code
Create http request
Delete file
Download and write a file
Get http content length
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a1740
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push esi
push edi
mov eax, dword [0x4c9144]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [ebp + 8]
cmp eax, edi
je 0x41c256
push eax
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
push edi
push edi
push edi
push edi
push str.MessengerPlusLive
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebx, eax
mov dword [ebp - 0x34], ebx
cmp ebx, edi
je 0x41bf6b
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea eax, [ebp - 0x24]
push eax
push 2
push ebx
mov dword [ebp - 0x24], 0x4e20
call esi
push 4
lea ecx, [ebp - 0x24]
push ecx
push 5
push ebx
call esi
push 4
lea edx, [ebp - 0x24]
push edx
push 6
push ebx
call esi
mov eax, dword [ebp + 8]
push edi
push 0x84000100
push edi
push edi
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov esi, eax
mov dword [ebp - 0x1c], esi
cmp esi, edi
jne 0x41bf80
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, edi
je 0x41bfb3
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x41bfb3
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebx
call esi
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x18]
push eax
push 0x20000005
push esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x30], 4
mov dword [ebp - 0x2c], edi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x41bfe5
mov dword [ebp - 0x18], 0xffffffff
jmp 0x41bfea
cmp dword [ebp - 0x18], edi
je 0x41bf93
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], edi
mov edx, dword [ebp + 0x10]
mov byte [ebp - 4], 1
cmp edx, edi
je 0x41c017
push 0x80
push 2
lea ecx, [ebp - 0x44]
push ecx
mov eax, 1
mov ecx, 0xc0000000
call fcn.00418030
jmp 0x41c081
push ecx
mov dword [ebp - 0x38], esp
push esp
mov ecx, 0x4ab684
call fcn.0041be20
push ecx
mov byte [ebp - 4], 2
mov dword [ebp - 0x20], esp
push esp
mov ecx, 0x4ab684
call fcn.0041be20
push ecx
mov dword [ebp - 0x3c], esp
push esp
mov ecx, 0x4ab684
mov byte [ebp - 4], 3
call fcn.0041be20
lea edx, [ebp - 0x28]
push edx
mov byte [ebp - 4], 1
call fcn.00418320
mov edx, dword [ebp - 0x28]
add esp, 0x10
push 0x4000180
push 2
lea eax, [ebp - 0x44]
push eax
mov eax, 1
mov ecx, 0xc0000000
call fcn.00418030
lea eax, [ebp - 0x28]
call fcn.0041b950
cmp dword [ebp - 0x44], edi
je 0x41c256
push 0x1000
mov byte [ebp - 0x11], 0
call fcn.00487e0b
add esp, 4
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 4
xor ebx, ebx
cmp byte [ebp - 0x11], 0
jne 0x41c190
mov edi, edi
push 1
push edi
push edi
push edi
lea ecx, [ebp - 0x60]
push ecx
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x41c0df
cmp dword [ebp - 0x5c], 0x12
je 0x41c0df
lea edx, [ebp - 0x60]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x41c0b0
mov eax, dword [ebp + 0xc]
cmp eax, edi
je 0x41c0f6
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x41c186
mov esi, dword [ebp + 0x14]
cmp esi, edi
je 0x41c11c
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xffffffff
je 0x41c11c
mov eax, ebx
imul eax, eax, 0x64
xor edx, edx
div ecx
push edi
push eax
push 0x81de
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
mov esi, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x28]
push ecx
push 0x1000
push esi
push edx
mov dword [ebp - 0x28], edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x41c186
mov eax, dword [ebp - 0x28]
cmp eax, edi
jle 0x41c17d
mov edx, dword [ebp - 0x44]
push edi
lea ecx, [ebp - 0x38]
push ecx
push eax
push esi
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, edi
jne 0x41c15f
call fcn.00418010
cmp eax, edi
jl 0x41c186
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0x38], eax
jne 0x41c186
add ebx, eax
mov eax, dword [ebp - 0x18]
cmp eax, 0xffffffff
je 0x41c0a4
cmp eax, ebx
jne 0x41c0a4
mov byte [ebp - 0x11], 1
jmp 0x41c0a4
cmp byte [ebp - 0x11], 0
je 0x41c29a
mov eax, dword [ebp + 8]
push 7
push str.http:__
push eax
mov dword [ebp - 0x28], edi
call fcn.00489b8c
add esp, 0xc
test eax, eax
jne 0x41c1cf
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x28]
push eax
push 0x20000013
push ecx
mov dword [ebp - 0x30], 4
mov dword [ebp - 0x2c], edi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov edx, dword [ebp - 0x1c]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edx
call esi
mov eax, dword [ebp - 0x34]
push eax
call esi
cmp dword [ebp - 0x28], 0x190
jae 0x41c2ac
mov eax, dword [ebp - 0x18]
cmp eax, 0xffffffff
je 0x41c1fe
cmp eax, ebx
jne 0x41c2ac
cmp ebx, edi
jle 0x41c2ac
xor esi, esi
cmp esi, edi
je 0x41c26c
lea ecx, [ebp - 0x44]
call fcn.0041c510
push ebx
call fcn.00487e0b
add esp, 4
mov edi, esi
call fcn.0041c3b0
mov edx, dword [esi]
lea ecx, [ebp - 0x44]
push ecx
lea eax, [ebp + 8]
mov ecx, ebx
mov dword [ebp + 8], esi
call fcn.0041c4e0
cmp dword [ebp + 8], ebx
je 0x41c26a
mov edx, dword [ebp - 0x20]
push edx
call fcn.00488a62
mov eax, dword [ebp - 0x44]
add esp, 4
test eax, eax
je 0x41c256
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor edi, edi
mov eax, dword [ebp - 0x20]
push eax
call fcn.00488a62
mov eax, dword [ebp - 0x44]
add esp, 4
cmp eax, edi
je 0x41c286
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x1c]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ecx
call esi
mov edx, dword [ebp - 0x34]
push edx
call esi
mov esi, dword [ebp - 0x44]
cmp esi, edi
je 0x41c2bf
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x44], edi
mov esi, edi
mov eax, dword [ebp + 0x10]
cmp eax, edi
je 0x41c2cd
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x20]
push eax
call fcn.00488a62
add esp, 4
cmp esi, edi
je 0x41c256
push esi
jmp 0x41c250