Function at 0x40493f
Capabilities:
Create http request

Disassembly:
push 0x2ec
mov eax, 0x46631b
call fcn.0043dbf7
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x2f4], ebx
mov dword [ebp - 0x2f0], ebx
mov dword [ebp - 0x2ec], ebx
lea ecx, [ebp - 0x2e8]
mov dword [ebp - 4], ebx
push ecx
lea ecx, [ebp - 0x2f4]
mov dword [ebp - 0x2e8], ebx
push ecx
push eax
mov dword [ebp - 0x2e4], 0x4e0010
call fcn.00414f09
add esp, 0xc
test al, al
jne 0x40499e
mov ebx, dword [ebp - 0x2e8]
jmp 0x404c97
lea eax, [ebp - 0x2f4]
push eax
call fcn.004035d8
mov dword [ebp - 0x2d0], eax
pop ecx
test eax, eax
jne 0x4049bd
push 4
pop ebx
jmp 0x404c97
push eax
lea ecx, [ebp - 0x250]
call fcn.004024ee
cmp dword [ebp - 0x23c], 0x10
lea ecx, [ebp - 0x250]
mov eax, dword [ebp - 0x240]
lea edx, [ebp - 0x2d1]
cmovae ecx, dword [ebp - 0x250]
add eax, ecx
mov byte [ebp - 4], 1
cmp dword [ebp - 0x23c], 0x10
lea ecx, [ebp - 0x250]
push edx
cmovae ecx, dword [ebp - 0x250]
push eax
push ecx
lea ecx, [ebp - 0x2b0]
call fcn.004018eb
push eax
mov byte [ebp - 4], 2
call fcn.004064e9
pop ecx
lea ecx, [ebp - 0x2b0]
call fcn.00405276
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], bl
call fcn.00405250
call fcn.004036b0
mov ebx, eax
push ebx
push 0x46b5a3
call fcn.00415dea
push ebx
call fcn.00415d90
and dword [ebp - 0x2d8], 0
add esp, 0xc
xor edi, edi
push edi
lea eax, [ebp - 0x30]
push str.SpWebInst_d.exe
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x30]
push eax
push ebx
call fcn.00415fb2
mov esi, eax
mov dword [ebp - 0x2dc], esi
push esi
mov byte [ebp - 4], 3
call fcn.00415f1f
add esp, 0x18
test al, al
je 0x404ab6
push esi
call fcn.00415eaf
push esi
call fcn.00415f1f
pop ecx
pop ecx
test al, al
je 0x404ab6
push esi
mov byte [ebp - 4], 0
call fcn.0044302b
inc edi
pop ecx
cmp edi, 0xa
jl 0x404a59
push 0xd
jmp 0x4049b7
xor ebx, ebx
jmp 0x404c6a
push ebx
push 0x80
push 2
push ebx
push 1
push 0xc0000000
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x404d7c
push dword [ebp - 0x2d0]
lea ecx, [ebp - 0x280]
call fcn.004024ee
lea eax, [ebp - 0x280]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x2c8]
push eax
call fcn.0041733e
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x404b17
mov eax, dword [eax]
push edi
push eax
call fcn.004037d5
pop ecx
pop ecx
lea ecx, [ebp - 0x2c8]
mov ebx, eax
call fcn.00405250
lea ecx, [ebp - 0x280]
mov byte [ebp - 4], 3
call fcn.00405250
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 0x34
jne 0x404c0f
mov edi, dword [ebp - 0x2d0]
lea ecx, [ebp - 0x298]
push edi
call fcn.004024ee
lea eax, [ebp - 0x298]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x268]
push eax
call fcn.0040314f
pop ecx
pop ecx
lea ecx, [ebp - 0x298]
mov byte [ebp - 4], 3
call fcn.00405250
push edi
lea ecx, [ebp - 0x268]
call fcn.00404f6a
test al, al
jne 0x404bff
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 0x404bff
xor eax, eax
lea ecx, [ebp - 0x268]
cmp dword [ebp - 0x254], 0x10
push eax
cmovae ecx, dword [ebp - 0x268]
push 0x80000200
push eax
push eax
push ecx
push edi
mov byte [ebp - 0x2c9], al
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
test eax, eax
je 0x404beb
push eax
mov byte [ebp - 0x2c9], 1
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp byte [ebp - 0x2c9], 0
push 0x39
pop eax
cmovne ebx, eax
lea ecx, [ebp - 0x268]
call fcn.00405250
cmp ebx, 0x34
je 0x404c18
cmp ebx, 0x33
jne 0x404cb8
mov ecx, dword [ebp - 0x2d8]
inc ecx
mov dword [ebp - 0x2d8], ecx
cmp ecx, 3
jge 0x404cb8
push 5
pop eax
shl eax, cl
xor ebx, ebx
mov dword [0x4e613c], eax
mov byte [0x4e6138], bl
cmp dword [0x4e613c], ebx
je 0x404c64
cmp byte [0x4e6114], bl
jne 0x404caa
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
sub dword [0x4e613c], 1
jne 0x404c48
mov esi, dword [ebp - 0x2dc]
push 0x104
lea eax, [ebp - 0x238]
push eax
push 0xffffffffffffffff
push esi
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x404abd
push 0xa
pop ebx
push esi
call fcn.0044302b
pop ecx
lea ecx, [ebp - 0x2f4]
call fcn.0040522d
mov eax, ebx
call fcn.0043dba6
ret
mov esi, dword [ebp - 0x2dc]
push 0x13
pop ebx
jmp 0x404d70
test ebx, ebx
jne 0x404d70
mov eax, dword [0x4e6104]
test eax, eax
je 0x404cd6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [0x4e6104], ebx
push dword [0x4e6100]
and dword [ebp - 0x2d0], 0
lea eax, [ebp - 0x30]
push str.__webinstall
push dword [0x4e60fc]
push eax
push 4
call fcn.00415d0b
mov edi, eax
mov dword [ebp - 0x2f8], edi
lea eax, [ebp - 0x2d0]
mov byte [ebp - 4], 6
push eax
push 0
push edi
push esi
call fcn.00404870
add esp, 0x24
test al, al
je 0x404d62
call fcn.004062a6
push 0xffffffffffffffff
push dword [ebp - 0x2d0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
or dword [ebp - 0x2e0], 0xffffffff
lea eax, [ebp - 0x2e0]
push eax
push dword [ebp - 0x2d0]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x2d0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2e0], 0
je 0x404d65
push 0x37
jmp 0x404d64
push 0x35
pop ebx
push edi
mov byte [ebp - 4], 3
call fcn.0044302b
pop ecx
push esi
call fcn.00415eaf
pop ecx
jmp 0x404c90
push 0xd
jmp 0x404c8f