Function at 0x40c7e7
Capabilities:
Connect to http server
Create http request
Delete file
Parse url
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0xff4]
mov eax, 0x1074
call fcn.00416300
mov eax, dword [0x42ea70]
xor eax, ebp
mov dword [ebp + 0xff0], eax
mov eax, dword [0x42e03c]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push edi
add eax, eax
push eax
push 0x40
pop ebx
push ebx
mov dword [ebp - 0x18], ecx
call esi
mov edi, eax
mov eax, dword [0x42e03c]
add eax, eax
push eax
push ebx
mov dword [ebp - 0x40], edi
call esi
mov dword [ebp - 0x20], eax
mov eax, dword [0x42e03c]
add eax, eax
push eax
push ebx
call esi
mov dword [ebp - 0x3c], eax
mov eax, dword [0x42e03c]
add eax, eax
push eax
push ebx
call esi
mov dword [ebp - 0x1c], eax
mov eax, dword [0x42e03c]
add eax, eax
push eax
push ebx
call esi
xor ebx, ebx
push ebx
mov ecx, eax
mov eax, dword [0x42e03c]
push ebx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x58], ecx
mov ecx, dword [ebp - 0x20]
push ebx
push dword [0x43054c]
xor edx, edx
mov word [ebp - 0x64], dx
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x50], ecx
mov ecx, dword [ebp - 0x3c]
push str.Better_Installer_Mozilla_
mov dword [ebp - 0x7c], 0x3c
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x2c], eax
cmp eax, ebx
je 0x40cc9b
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push 0x32
push eax
mov dword [ebp - 0x24], 4
mov dword [ebp - 0x14], ebx
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
test eax, eax
je 0x40c905
test byte [ebp - 0x14], 0x10
je 0x40c905
push 8
lea eax, [ebp - 0x34]
push eax
xor edi, edi
push 0x32
push dword [ebp - 0x2c]
inc edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], ebx
call esi
jmp 0x40c908
xor edi, edi
inc edi
push 4
push 0x42e800
push 2
push dword [ebp - 0x2c]
mov dword [0x42e800], 0x7530
call esi
push str.wininet.dll
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
je 0x40c943
push str.FtpCommandW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x43053c], eax
mov ecx, dword [ebp - 0x18]
mov esi, str.C:DOCUME1TommyLOCALS1TempJustin_Timberlake___Mirrors_2013_Pop__M4A_MP3___P2PDL_.8130409.TPB.torrent
push esi
push str.http:__piratebaydownload.co_8130409_Justin_Timberlake___Mirrors_2013_Pop__M4A_MP3___P2PDL_.8130409.TPB.torrent
call fcn.0040bfe4
test eax, eax
je 0x40c96e
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x24c]
push esi
add eax, 4
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
mov esi, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x20]
xor eax, eax
mov dword [0x430520], edi
mov word [esi], ax
mov word [ecx], ax
mov ecx, dword [ebp - 0x28]
mov word [ecx], ax
mov ecx, dword [ebp - 0x1c]
mov word [ecx], ax
mov ecx, dword [ebp - 0x40]
push ebx
mov word [ecx], ax
mov eax, dword [ebp - 0x18]
push edi
push 0x113
mov dword [0x430958], ebx
mov dword [0x430548], ebx
push dword [eax + 8]
call dword [sym.imp.USER32.dll_PostMessageW]
push ebx
push ebx
push 2
push ebx
push edi
push 0x40000000
push str.C:DOCUME1TommyLOCALS1TempJustin_Timberlake___Mirrors_2013_Pop__M4A_MP3___P2PDL_.8130409.TPB.torrent
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x38], eax
cmp eax, 0xffffffff
je 0x40cc86
mov eax, dword [0x42e03c]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x7c]
push eax
push ebx
push ebx
push str.http:__piratebaydownload.co_8130409_Justin_Timberlake___Mirrors_2013_Pop__M4A_MP3___P2PDL_.8130409.TPB.torrent
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x40cc3e
push esi
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_lstrcatW]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x430540], eax
mov eax, dword [0x430548]
push dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [0x430520], edi
mov dword [ebp - 0x24], eax
call esi
test eax, eax
jle 0x40ca3c
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
jmp 0x40ca3f
mov dword [ebp - 0x30], ebx
push dword [ebp - 0x1c]
call esi
test eax, eax
jle 0x40ca4d
mov eax, dword [ebp - 0x1c]
jmp 0x40ca4f
xor eax, eax
mov ecx, dword [ebp - 0x70]
dec ecx
neg ecx
sbb ecx, ecx
push ebx
and ecx, 0xf8000000
add ecx, 0x8000000
push ecx
xor ecx, ecx
cmp dword [ebp - 0x70], edi
setne cl
lea ecx, [ecx + ecx + 1]
push ecx
push dword [ebp - 0x30]
push eax
push dword [ebp - 0x64]
push dword [ebp - 0x40]
push dword [ebp - 0x2c]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 0x30], eax
cmp eax, ebx
je 0x40cb3b
push ebx
push ebx
push dword [ebp - 0x20]
mov dword [0x430520], 4
push dword [ebp - 0x70]
push eax
call fcn.0040b816
add esp, 0x14
cmp dword [0x430520], 4
mov esi, eax
je 0x40cac3
cmp esi, ebx
je 0x40cb2d
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor esi, esi
cmp esi, ebx
je 0x40cb2d
push ebx
cmp byte [0x430960], bl
je 0x40cb09
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x16
push esi
mov dword [ebp - 0x14], 0x800
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x40cb01
push ebx
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [0x430520], ebx
jmp 0x40cb26
mov eax, dword [ebp - 0x18]
push 0x3e8
push edi
push dword [eax + 8]
call dword [sym.imp.USER32.dll_SetTimer]
push esi
push dword [ebp - 0x38]
call fcn.0040b64b
pop ecx
pop ecx
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x30]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x40cbbf
mov dword [0x430520], 0xf
cmp dword [ebp - 0x70], edi
jne 0x40cba1
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x14], 0x1000
call dword [sym.imp.WININET.dll_InternetGetLastResponseInfoW]
test eax, eax
je 0x40cba1
mov esi, 0x4246d8
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.00414609
pop ecx
pop ecx
test eax, eax
je 0x40cba1
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.00414609
pop ecx
pop ecx
push 0x20
push eax
mov eax, dword [0x430520]
shl eax, 6
add eax, 0x42e040
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
jmp 0x40cbbf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
cmp eax, 0x2ee3
je 0x40cbb8
cmp eax, 0x2ee2
jne 0x40cbbf
mov byte [0x43051c], 1
cmp dword [ebp - 0x70], edi
jne 0x40cc03
mov eax, dword [0x430548]
cmp eax, dword [ebp - 0x24]
jbe 0x40cc03
cmp dword [0x430520], 0xa
jne 0x40cc03
mov esi, dword [sym.imp.KERNEL32.dll_SleepEx]
push ebx
push 0x7d0
call esi
test eax, eax
jne 0x40cc03
push ebx
push 0xbb8
mov dword [0x430520], 5
call esi
test eax, eax
je 0x40ca17
cmp byte [0x43051c], bl
je 0x40cc48
mov eax, dword [0x430520]
cmp eax, ebx
je 0x40cc48
cmp eax, 3
je 0x40cc48
cmp eax, 0x13
je 0x40cc48
push ebx
push 0x3e8
mov dword [0x430520], 5
call dword [sym.imp.KERNEL32.dll_SleepEx]
test eax, eax
je 0x40ca17
jmp 0x40cc48
mov dword [0x430520], 0x12
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x430520], ebx
je 0x40cc67
push str.C:DOCUME1TommyLOCALS1TempJustin_Timberlake___Mirrors_2013_Pop__M4A_MP3___P2PDL_.8130409.TPB.torrent
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x14], eax
mov esi, dword [ebp - 0x18]
push edi
push dword [esi + 8]
call dword [sym.imp.USER32.dll_KillTimer]
push ebx
push ebx
push 0x402
push dword [esi + 8]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x40cc90
mov dword [0x430520], 0xb
push dword [ebp - 0x2c]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x40cca5
mov dword [0x430520], 8
push dword [ebp - 0x40]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
call esi
push dword [ebp - 0x20]
call esi
push dword [ebp - 0x1c]
call esi
push dword [ebp - 0x28]
call esi
push dword [ebp - 0x3c]
call esi
mov ecx, dword [ebp + 0xff0]
mov eax, dword [0x430520]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004144c5
add ebp, 0xff4
leave
ret 4