Function at 0x41c270
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 0x4a04e0
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x4c6184]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x41c577
push ebx
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
push 0
push 0
push 0
push 0
push str.MessengerPlusLive
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edi, eax
mov dword [ebp - 0x38], edi
test edi, edi
je 0x41c323
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea eax, [ebp - 0x20]
push eax
push 2
push edi
mov dword [ebp - 0x20], 0x4e20
call esi
push 4
lea ecx, [ebp - 0x20]
push ecx
push 5
push edi
call esi
push 4
lea edx, [ebp - 0x20]
push edx
push 6
push edi
call esi
push 0
push 0x84000100
push 0
push 0
push ebx
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov esi, eax
xor ebx, ebx
mov dword [ebp - 0x28], esi
cmp esi, ebx
jne 0x41c338
push edi
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
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x1c]
push edx
push 0x20000005
push esi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x30], 4
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x41c398
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov edx, dword [ebp + 0x10]
mov byte [ebp - 4], 1
cmp edx, ebx
je 0x41c3bd
push 0x80
push 2
lea eax, [ebp - 0x4c]
push eax
mov eax, 1
mov ecx, 0xc0000000
call fcn.00418310
jmp 0x41c427
cmp dword [ebp - 0x1c], ebx
jne 0x41c368
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push edi
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
push ecx
mov dword [ebp - 0x3c], esp
push esp
mov ecx, 0x4a970c
call fcn.0041bf30
push ecx
mov byte [ebp - 4], 2
mov dword [ebp - 0x34], esp
push esp
mov ecx, 0x4a970c
call fcn.0041bf30
push ecx
mov byte [ebp - 4], 3
mov dword [ebp - 0x40], esp
push esp
mov ecx, 0x4a970c
call fcn.0041bf30
lea ecx, [ebp - 0x24]
push ecx
mov byte [ebp - 4], 1
call fcn.00418560
add esp, 0x10
push 0x4000180
push 2
lea edx, [ebp - 0x4c]
push edx
mov edx, dword [ebp - 0x24]
mov eax, 1
mov ecx, 0xc0000000
call fcn.00418310
lea eax, [ebp - 0x24]
call fcn.0043ec30
cmp dword [ebp - 0x4c], ebx
je 0x41c577
push 0x1000
mov byte [ebp - 0x15], 0
call fcn.004867fb
mov edi, eax
add esp, 4
mov dword [ebp - 0x34], edi
mov byte [ebp - 4], 4
cmp byte [ebp - 0x15], 0
jne 0x41c58b
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x41c486
cmp dword [ebp - 0x64], 0x12
je 0x41c486
lea ecx, [ebp - 0x68]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [ebp - 0x68]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x41c454
xor eax, eax
je 0x41c49a
push eax
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x41c525
xor esi, esi
je 0x41c4bd
mov ecx, dword [ebp - 0x1c]
cmp ecx, 0xffffffff
je 0x41c4bd
mov eax, ebx
imul eax, eax, 0x64
xor edx, edx
div ecx
push esi
push eax
push 0x81de
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
lea eax, [ebp - 0x24]
push eax
push 0x1000
mov dword [ebp - 0x24], esi
mov esi, dword [ebp - 0x28]
push edi
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x41c528
mov eax, dword [ebp - 0x24]
test eax, eax
jle 0x41c51c
mov edx, dword [ebp - 0x4c]
push 0
lea ecx, [ebp - 0x3c]
push ecx
push eax
push edi
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x41c4fe
call fcn.004182f0
test eax, eax
js 0x41c528
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0x3c], eax
jne 0x41c528
add ebx, eax
mov eax, dword [ebp - 0x1c]
cmp eax, 0xffffffff
je 0x41c44a
cmp eax, ebx
jne 0x41c44a
mov byte [ebp - 0x15], 1
jmp 0x41c44a
mov esi, dword [ebp - 0x28]
cmp byte [ebp - 0x15], 0
jne 0x41c58e
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
mov ecx, dword [ebp - 0x38]
push ecx
call esi
mov esi, dword [ebp - 0x4c]
test esi, esi
je 0x41c555
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x4c], 0
mov esi, dword [ebp - 0x4c]
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x41c563
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call fcn.004875f2
add esp, 4
test esi, esi
je 0x41c577
push esi
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
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp + 8]
push 7
push str.http:__
push eax
mov dword [ebp - 0x28], 0
call fcn.0048877c
add esp, 0xc
test eax, eax
jne 0x41c5ce
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x30]
push edx
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x28]
push eax
push 0x20000013
push esi
mov dword [ebp - 0x30], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
mov ecx, dword [ebp - 0x38]
push ecx
call esi
cmp dword [ebp - 0x28], 0x190
jae 0x41c53d
mov eax, dword [ebp - 0x1c]
cmp eax, 0xffffffff
je 0x41c5fa
cmp eax, ebx
jne 0x41c53d
test ebx, ebx
jle 0x41c53d
cmp dword [ebp + 0xc], 0
je 0x41c668
lea esi, [ebp - 0x44]
lea ecx, [ebp - 0x4c]
call fcn.0041c8c0
lea ecx, [ebp - 0x4c]
call fcn.0041c900
push ebx
call fcn.004867fb
mov edi, dword [ebp + 0xc]
add esp, 4
call fcn.0041c750
lea edx, [ebp - 0x4c]
push edx
mov edx, dword [edi]
lea eax, [ebp + 8]
mov ecx, ebx
mov dword [ebp + 8], 0
call fcn.0041c890
cmp dword [ebp + 8], ebx
je 0x41c665
mov eax, dword [ebp - 0x34]
push eax
call fcn.004875f2
mov eax, dword [ebp - 0x4c]
add esp, 4
test eax, eax
je 0x41c577
push eax
jmp 0x41c571
mov edi, dword [ebp - 0x34]
push edi
call fcn.004875f2
mov eax, dword [ebp - 0x4c]
add esp, 4
test eax, eax
je 0x41c67f
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