Function at 0x407f04
Capabilities:
Create http request

Disassembly:
push ebp
sub esp, 0x288
lea ebp, [esp - 4]
mov eax, dword [0x48e104]
xor eax, ebp
mov dword [ebp + 0x288], eax
push 0x34
mov eax, 0x45ad89
call fcn.0042084a
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x34]
push eax
push dword [0x4959e4]
push dword [0x4959e0]
call fcn.00402cec
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x4082f2
lea eax, [ebp - 0x34]
push eax
call fcn.0040565f
mov ebx, eax
mov dword [ebp - 0x18], ebx
pop ecx
test ebx, ebx
jne 0x407f73
push 4
pop ebx
jmp 0x4082f2
push ebx
lea ecx, [ebp + 0x48]
call fcn.00404554
cmp dword [ebp + 0x5c], 0x10
lea ecx, [ebp + 0x48]
mov eax, dword [ebp + 0x58]
lea edx, [ebp - 0x1d]
cmovae ecx, dword [ebp + 0x48]
add eax, ecx
mov byte [ebp - 4], 3
cmp dword [ebp + 0x5c], 0x10
lea ecx, [ebp + 0x48]
push edx
cmovae ecx, dword [ebp + 0x48]
push eax
mov dword [ebp - 0x3c], ecx
push ecx
lea ecx, [ebp]
mov dword [ebp - 0x38], eax
call fcn.004041f6
push eax
mov ecx, 0x48e0a0
call fcn.00404878
push 0
push 1
lea ecx, [ebp]
call fcn.00408eb6
push 0
push 1
lea ecx, [ebp + 0x48]
mov byte [ebp - 4], 0
call fcn.00408e63
call fcn.00405f53
mov esi, eax
push esi
push 0x45f514
mov dword [ebp - 0x1c], esi
call fcn.00402c7f
push esi
call fcn.00402aea
xorps xmm0, xmm0
add esp, 0xc
movlpd qword [0x48e038], xmm0
xor edi, edi
push edi
lea eax, [ebp + 0x268]
push str.SpWebInst_d.exe
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp + 0x268]
push eax
push esi
call fcn.004038ed
mov esi, eax
mov dword [ebp - 0x24], esi
push esi
mov byte [ebp - 4], 4
call fcn.004032b5
add esp, 0x18
test al, al
je 0x408064
push esi
call fcn.00403242
push esi
call fcn.004032b5
pop ecx
pop ecx
test al, al
je 0x408064
push esi
mov byte [ebp - 4], 0
call fcn.0043bc57
mov esi, dword [ebp - 0x1c]
inc edi
pop ecx
cmp edi, 0xa
jl 0x408001
push 0xd
jmp 0x407f6d
push 0x104
lea eax, [ebp + 0x60]
push eax
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
test eax, eax
je 0x4082e8
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
lea eax, [ebp + 0x60]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4082e4
push edi
push ebx
call fcn.004064db
pop ecx
pop ecx
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp ebx, 0x34
jne 0x40816b
mov edi, dword [ebp - 0x18]
lea ecx, [ebp + 0x18]
push edi
call fcn.00404554
lea eax, [ebp + 0x18]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp + 0x30]
push eax
call fcn.00404cb8
pop ecx
pop ecx
push 0
push 1
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 4
call fcn.00408e63
push edi
lea ecx, [ebp + 0x30]
call fcn.00409475
test eax, eax
je 0x40815a
xor eax, eax
push eax
push eax
push eax
push eax
push str.SpotifyInstaller_1.0
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
test edi, edi
je 0x40815a
xor eax, eax
lea ecx, [ebp + 0x30]
cmp dword [ebp + 0x44], 0x10
push eax
cmovae ecx, dword [ebp + 0x30]
push 0x80000200
push eax
push eax
push ecx
push edi
mov byte [ebp - 0xd], al
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
test eax, eax
je 0x408149
push eax
mov byte [ebp - 0xd], 1
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp byte [ebp - 0xd], 0
push 0x39
pop eax
cmovne ebx, eax
push 0
push 1
lea ecx, [ebp + 0x30]
call fcn.00408e63
cmp ebx, 0x34
je 0x408174
cmp ebx, 0x33
jne 0x408209
mov ecx, dword [0x48e038]
mov eax, dword [0x48e03c]
add ecx, 1
mov dword [0x48e038], ecx
adc eax, 0
mov dword [0x48e03c], eax
test eax, eax
jg 0x408209
jl 0x40819b
cmp ecx, 3
jae 0x408209
push 5
pop eax
shl eax, cl
mov dword [0x495974], eax
mov byte [0x495970], 0
cmp dword [0x495974], 0
je 0x4081d2
cmp byte [0x495950], 0
jne 0x4081fe
push 0x3e8
call dword [sym.imp.KERNEL32.DLL_Sleep]
sub dword [0x495974], 1
jne 0x4081b5
mov esi, dword [ebp - 0x24]
lea eax, [ebp + 0x60]
push 0x104
push eax
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
test eax, eax
je 0x4082e8
mov ebx, dword [ebp - 0x18]
jmp 0x408085
mov esi, dword [ebp - 0x24]
push 0x13
pop ebx
jmp 0x4082db
mov byte [0x4959ec], 1
test ebx, ebx
jne 0x4082db
mov eax, dword [0x495978]
test eax, eax
je 0x40822e
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
and dword [0x495978], ebx
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push dword [0x495964]
and dword [ebp - 0x14], 0
push str.__webinstall
push dword [0x495960]
mov dword [ebp - 0x18], eax
lea eax, [ebp + 0x268]
push eax
push 4
call fcn.00402a4e
mov edi, eax
mov dword [ebp - 0x40], edi
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 8
push eax
push 0
push edi
push esi
call fcn.00407dd3
add esp, 0x24
test al, al
je 0x4082cd
call fcn.0040635a
push 0xffffffffffffffff
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
or dword [ebp - 0x1c], 0xffffffff
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
sub eax, dword [ebp - 0x18]
and dword [0x48e04c], 0
and dword [0x48e05c], 0
mov dword [0x48e048], eax
mov eax, dword [ebp - 0x1c]
mov dword [0x48e058], eax
test eax, eax
je 0x4082d0
push 0x37
jmp 0x4082cf
push 0x35
pop ebx
push edi
mov byte [ebp - 4], 4
call fcn.0043bc57
pop ecx
push esi
call fcn.00403242
pop ecx
jmp 0x4082eb
push 0xd
jmp 0x4082ea
push 0xa
pop ebx
push esi
call fcn.0043bc57
pop ecx
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 0xa
call fcn.004022b8
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x288]
xor ecx, ebp
call fcn.00420802
lea esp, [ebp + 0x28c]
pop ebp
ret