Function at 0x404006
Capabilities:
Create http request

Disassembly:
push ebp
sub esp, 0x288
lea ebp, [esp - 4]
mov eax, dword [0x48d0e4]
xor eax, ebp
mov dword [ebp + 0x288], eax
push 0x38
mov eax, 0x459119
call fcn.00434ba0
xor eax, eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x38]
push eax
push dword [0x49486c]
push dword [0x494868]
call fcn.004164ec
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x4043a0
lea eax, [ebp - 0x38]
push eax
call fcn.0040270c
mov ebx, eax
mov dword [ebp - 0x24], ebx
pop ecx
test ebx, ebx
jne 0x404075
push 4
pop ebx
jmp 0x4043a0
push ebx
lea ecx, [ebp + 0x48]
call fcn.00401b8b
cmp dword [ebp + 0x5c], 0x10
lea ecx, [ebp + 0x48]
mov eax, dword [ebp + 0x58]
lea edx, [ebp - 0x19]
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 - 0x40], ecx
push ecx
lea ecx, [ebp]
mov dword [ebp - 0x3c], eax
call fcn.004018eb
push eax
mov byte [ebp - 4], 4
call fcn.00405b84
pop ecx
push 0
push 1
lea ecx, [ebp]
call fcn.0040498b
push 0
push 1
lea ecx, [ebp + 0x48]
mov byte [ebp - 4], 0
call fcn.00404938
call fcn.00402a68
mov esi, eax
push esi
push 0x45d534
mov dword [ebp - 0x18], esi
call fcn.0041647f
push esi
call fcn.00416422
and dword [ebp - 0x20], 0
add esp, 0xc
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.00416f38
mov esi, eax
mov dword [ebp - 0x28], esi
push esi
mov byte [ebp - 4], 5
call fcn.00416a85
add esp, 0x18
test al, al
je 0x40415f
push esi
call fcn.00416a12
push esi
call fcn.00416a85
pop ecx
pop ecx
test al, al
je 0x40415f
push esi
mov byte [ebp - 4], 0
call fcn.0043a29c
mov esi, dword [ebp - 0x18]
inc edi
pop ecx
cmp edi, 0xa
jl 0x4040fc
push 0xd
jmp 0x40406f
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 0x404396
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 0x404392
push edi
push ebx
call fcn.00402c43
pop ecx
pop ecx
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp ebx, 0x34
jne 0x404266
mov edi, dword [ebp - 0x24]
lea ecx, [ebp + 0x18]
push edi
call fcn.00401b8b
lea eax, [ebp + 0x18]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp + 0x30]
push eax
call fcn.00402227
pop ecx
pop ecx
push 0
push 1
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 5
call fcn.00404938
push edi
lea ecx, [ebp + 0x30]
call fcn.00404d1e
test eax, eax
je 0x404255
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 0x404255
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 0x404244
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.00404938
cmp ebx, 0x34
je 0x40426b
cmp ebx, 0x33
jne 0x4042e3
mov ecx, dword [ebp - 0x20]
inc ecx
mov dword [ebp - 0x20], ecx
cmp ecx, 3
jge 0x4042e3
push 5
pop eax
shl eax, cl
xor ebx, ebx
mov dword [0x4948bc], eax
mov byte [0x4948b8], bl
cmp dword [0x4948bc], ebx
je 0x4042ad
cmp byte [0x49488d], bl
jne 0x4042d8
push 0x3e8
call dword [sym.imp.KERNEL32.DLL_Sleep]
sub dword [0x4948bc], 1
jne 0x404291
mov esi, dword [ebp - 0x28]
lea eax, [ebp + 0x60]
push 0x104
push eax
push 0xffffffffffffffff
push esi
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
test eax, eax
je 0x404396
mov ebx, dword [ebp - 0x24]
jmp 0x404180
mov esi, dword [ebp - 0x28]
push 0x13
pop ebx
jmp 0x404389
test ebx, ebx
jne 0x404389
mov eax, dword [0x49485c]
test eax, eax
je 0x404301
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
and dword [0x49485c], ebx
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push dword [0x494858]
and dword [ebp - 0x14], 0
lea eax, [ebp + 0x268]
push str.__webinstall
push dword [0x494854]
push eax
push 4
call fcn.00416386
mov edi, eax
mov dword [ebp - 0x44], edi
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 9
push eax
push 0
push edi
push esi
call fcn.00403f3a
add esp, 0x24
test al, al
je 0x40437b
call fcn.00405928
push 0xffffffffffffffff
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
or dword [ebp - 0x18], 0xffffffff
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [ebp - 0x18], 0
je 0x40437e
push 0x37
jmp 0x40437d
push 0x35
pop ebx
push edi
mov byte [ebp - 4], 5
call fcn.0043a29c
pop ecx
push esi
call fcn.00416a12
pop ecx
jmp 0x404399
push 0xd
jmp 0x404398
push 0xa
pop ebx
push esi
call fcn.0043a29c
pop ecx
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0xb
call fcn.00404cfd
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.00434b58
lea esp, [ebp + 0x28c]
pop ebp
ret