Function at 0x404b7d
Capabilities:
Create http request

Disassembly:
push 0x2c8
mov eax, 0x463fb7
call fcn.0043e189
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x2c8], ebx
mov dword [ebp - 0x2c4], ebx
mov dword [ebp - 0x2c0], ebx
lea ecx, [ebp - 0x2d0]
mov dword [ebp - 4], ebx
push ecx
lea ecx, [ebp - 0x2c8]
mov dword [ebp - 0x2d0], ebx
push ecx
push eax
mov dword [ebp - 0x2cc], 0x4ce010
call fcn.00418420
add esp, 0xc
test al, al
jne 0x404bdc
mov ebx, dword [ebp - 0x2d0]
jmp 0x404fc8
lea eax, [ebp - 0x2c8]
push eax
call fcn.00403725
mov edx, eax
mov dword [ebp - 0x2ac], edx
pop ecx
test edx, edx
jne 0x404bfd
push 4
pop ebx
jmp 0x404fc8
mov ecx, edx
mov dword [ebp - 0x250], ebx
push 0xf
pop edi
mov dword [ebp - 0x240], ebx
mov dword [ebp - 0x23c], edi
lea esi, [ecx + 1]
mov byte [ebp - 0x250], bl
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404c1d
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x250]
call fcn.004058cd
cmp dword [ebp - 0x23c], 0x10
lea ecx, [ebp - 0x250]
mov eax, dword [ebp - 0x240]
lea edx, [ebp - 0x2ad]
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 - 0x298]
call fcn.00401bad
push eax
mov byte [ebp - 4], 2
call fcn.00406e89
pop ecx
lea ecx, [ebp - 0x298]
call fcn.00405723
mov eax, dword [ebp - 0x23c]
mov byte [ebp - 4], bl
cmp eax, 0x10
jb 0x404ce3
mov ecx, dword [ebp - 0x250]
inc eax
mov dword [ebp - 0x2a4], eax
mov dword [ebp - 0x2a0], ecx
cmp eax, 0x1000
jb 0x404cda
lea eax, [ebp - 0x2a4]
push eax
lea eax, [ebp - 0x2a0]
push eax
call fcn.004051b1
mov eax, dword [ebp - 0x2a4]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x2a0]
push eax
push ecx
call fcn.0043e103
pop ecx
pop ecx
mov dword [ebp - 0x240], ebx
mov dword [ebp - 0x23c], edi
mov byte [ebp - 0x250], bl
call fcn.004037fd
mov ebx, eax
push ebx
push 0x469563
call fcn.0041911e
push ebx
call fcn.004190c4
and dword [ebp - 0x2bc], 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.004192e6
mov esi, eax
mov dword [ebp - 0x2a8], esi
push esi
mov byte [ebp - 4], 3
call fcn.00419253
add esp, 0x18
test al, al
je 0x404d76
push esi
call fcn.004191e3
push esi
call fcn.00419253
pop ecx
pop ecx
test al, al
je 0x404d76
push esi
mov byte [ebp - 4], 0
call fcn.00442fcb
inc edi
pop ecx
cmp edi, 0xa
jl 0x404d19
push 0xd
jmp 0x404bf7
push 0x104
lea eax, [ebp - 0x238]
xor ebx, ebx
push eax
push 0xffffffffffffffff
push esi
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x404fbe
mov edi, dword [ebp - 0x2ac]
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 dword [ebp - 0x2b4], eax
cmp eax, 0xffffffff
je 0x4050f1
push eax
push edi
call fcn.00403922
pop ecx
pop ecx
push dword [ebp - 0x2b4]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 0x34
jne 0x404f3c
xor eax, eax
mov dword [ebp - 0x254], 0xf
mov ecx, edi
mov dword [ebp - 0x268], eax
mov dword [ebp - 0x258], eax
mov byte [ebp - 0x268], al
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404e10
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x268]
call fcn.004058cd
lea eax, [ebp - 0x268]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x280]
push eax
call fcn.00403267
mov eax, dword [ebp - 0x254]
mov byte [ebp - 4], 3
pop ecx
pop ecx
cmp eax, 0x10
jb 0x404e92
mov ecx, dword [ebp - 0x268]
inc eax
mov dword [ebp - 0x2b8], eax
mov dword [ebp - 0x2ac], ecx
cmp eax, 0x1000
jb 0x404e89
lea eax, [ebp - 0x2b8]
push eax
lea eax, [ebp - 0x2ac]
push eax
call fcn.004051b1
mov eax, dword [ebp - 0x2b8]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x2ac]
push eax
push ecx
call fcn.0043e103
pop ecx
pop ecx
and dword [ebp - 0x258], 0
lea ecx, [ebp - 0x280]
push edi
mov dword [ebp - 0x254], 0xf
mov byte [ebp - 0x268], 0
call fcn.00405416
test al, al
jne 0x404f2c
xor eax, eax
push eax
push eax
push eax
push eax
push str.SpotifyInstaller_1.0
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x2b4], eax
test eax, eax
je 0x404f2c
xor edx, edx
lea ecx, [ebp - 0x280]
cmp dword [ebp - 0x26c], 0x10
push edx
cmovae ecx, dword [ebp - 0x280]
push 0x80000200
push edx
push edx
push ecx
push eax
mov byte [ebp - 0x299], dl
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
test eax, eax
je 0x404f13
push eax
mov byte [ebp - 0x299], 1
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x2b4]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp byte [ebp - 0x299], 0
push 0x39
pop eax
cmovne ebx, eax
lea ecx, [ebp - 0x280]
call fcn.004056fd
cmp ebx, 0x34
je 0x404f45
cmp ebx, 0x33
jne 0x40502d
mov ecx, dword [ebp - 0x2bc]
inc ecx
mov dword [ebp - 0x2bc], ecx
cmp ecx, 3
jge 0x40502d
push 5
pop eax
shl eax, cl
xor ebx, ebx
mov dword [0x4d4104], eax
mov byte [0x4d4100], bl
cmp dword [0x4d4104], ebx
je 0x404f95
cmp byte [0x4d40dc], bl
jne 0x40501f
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
sub dword [0x4d4104], 1
jne 0x404f75
mov esi, dword [ebp - 0x2a8]
lea eax, [ebp - 0x238]
push 0x104
push eax
push 0xffffffffffffffff
push esi
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x404da1
push 0xa
pop ebx
push esi
call fcn.00442fcb
pop ecx
mov ecx, dword [ebp - 0x2c8]
test ecx, ecx
je 0x405017
mov eax, dword [ebp - 0x2c0]
sub eax, ecx
mov dword [ebp - 0x2a0], ecx
mov dword [ebp - 0x2a8], eax
cmp eax, 0x1000
jb 0x40500e
lea eax, [ebp - 0x2a8]
push eax
lea eax, [ebp - 0x2a0]
push eax
call fcn.004051b1
mov eax, dword [ebp - 0x2a8]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x2a0]
push eax
push ecx
call fcn.0043e103
pop ecx
pop ecx
mov eax, ebx
call fcn.0043e138
ret
mov esi, dword [ebp - 0x2a8]
push 0x13
pop ebx
jmp 0x4050e5
test ebx, ebx
jne 0x4050e5
mov eax, dword [0x4d40cc]
test eax, eax
je 0x40504b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [0x4d40cc], ebx
push dword [0x4d40c8]
and dword [ebp - 0x2a4], 0
lea eax, [ebp - 0x30]
push str.__webinstall
push dword [0x4d40c4]
push eax
push 4
call fcn.0041903f
mov edi, eax
mov dword [ebp - 0x2d4], edi
lea eax, [ebp - 0x2a4]
mov byte [ebp - 4], 5
push eax
push 0
push edi
push esi
call fcn.00404aae
add esp, 0x24
test al, al
je 0x4050d7
call fcn.00406bb3
push 0xffffffffffffffff
push dword [ebp - 0x2a4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
or dword [ebp - 0x2a0], 0xffffffff
lea eax, [ebp - 0x2a0]
push eax
push dword [ebp - 0x2a4]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x2a4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2a0], 0
je 0x4050da
push 0x37
jmp 0x4050d9
push 0x35
pop ebx
push edi
mov byte [ebp - 4], 3
call fcn.00442fcb
pop ecx
push esi
call fcn.004191e3
pop ecx
jmp 0x404fc1
push 0xd
jmp 0x404fc0