Function at 0x404307
Capabilities:
Create http request

Disassembly:
push 0x2ec
mov eax, 0x4663df
call fcn.0043e197
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.00414a93
add esp, 0xc
test al, al
jne 0x404366
mov ebx, dword [ebp - 0x2e8]
jmp 0x40465f
lea eax, [ebp - 0x2f4]
push eax
call fcn.00403027
mov dword [ebp - 0x2d0], eax
pop ecx
test eax, eax
jne 0x404385
push 4
pop ebx
jmp 0x40465f
push eax
lea ecx, [ebp - 0x250]
call fcn.00401f6d
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.0040141d
push eax
mov byte [ebp - 4], 2
call fcn.00405e58
pop ecx
lea ecx, [ebp - 0x2b0]
call fcn.00404c3e
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], bl
call fcn.00404c18
call fcn.004030ff
mov ebx, eax
push ebx
push 0x46b583
call fcn.00415974
push ebx
call fcn.0041591a
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.00415b3c
mov esi, eax
mov dword [ebp - 0x2dc], esi
push esi
mov byte [ebp - 4], 3
call fcn.00415aa9
add esp, 0x18
test al, al
je 0x40447e
push esi
call fcn.00415a39
push esi
call fcn.00415aa9
pop ecx
pop ecx
test al, al
je 0x40447e
push esi
mov byte [ebp - 4], 0
call fcn.004435cb
inc edi
pop ecx
cmp edi, 0xa
jl 0x404421
push 0xd
jmp 0x40437f
xor ebx, ebx
jmp 0x404632
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 0x404744
push dword [ebp - 0x2d0]
lea ecx, [ebp - 0x280]
call fcn.00401f6d
lea eax, [ebp - 0x280]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x2c8]
push eax
call fcn.00416eb4
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x4044df
mov eax, dword [eax]
push edi
push eax
call fcn.00403224
pop ecx
pop ecx
lea ecx, [ebp - 0x2c8]
mov ebx, eax
call fcn.00404c18
lea ecx, [ebp - 0x280]
mov byte [ebp - 4], 3
call fcn.00404c18
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 0x34
jne 0x4045d7
mov edi, dword [ebp - 0x2d0]
lea ecx, [ebp - 0x298]
push edi
call fcn.00401f6d
lea eax, [ebp - 0x298]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x268]
push eax
call fcn.00402b9e
pop ecx
pop ecx
lea ecx, [ebp - 0x298]
mov byte [ebp - 4], 3
call fcn.00404c18
push edi
lea ecx, [ebp - 0x268]
call fcn.00404932
test al, al
jne 0x4045c7
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 0x4045c7
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 0x4045b3
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.00404c18
cmp ebx, 0x34
je 0x4045e0
cmp ebx, 0x33
jne 0x404680
mov ecx, dword [ebp - 0x2d8]
inc ecx
mov dword [ebp - 0x2d8], ecx
cmp ecx, 3
jge 0x404680
push 5
pop eax
shl eax, cl
xor ebx, ebx
mov dword [0x4e612c], eax
mov byte [0x4e6128], bl
cmp dword [0x4e612c], ebx
je 0x40462c
cmp byte [0x4e6104], bl
jne 0x404672
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
sub dword [0x4e612c], 1
jne 0x404610
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 0x404485
push 0xa
pop ebx
push esi
call fcn.004435cb
pop ecx
lea ecx, [ebp - 0x2f4]
call fcn.00404bf5
mov eax, ebx
call fcn.0043e146
ret
mov esi, dword [ebp - 0x2dc]
push 0x13
pop ebx
jmp 0x404738
test ebx, ebx
jne 0x404738
mov eax, dword [0x4e60f4]
test eax, eax
je 0x40469e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [0x4e60f4], ebx
push dword [0x4e60f0]
and dword [ebp - 0x2d0], 0
lea eax, [ebp - 0x30]
push str.__webinstall
push dword [0x4e60ec]
push eax
push 4
call fcn.00415895
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.00404238
add esp, 0x24
test al, al
je 0x40472a
call fcn.00405c15
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 0x40472d
push 0x37
jmp 0x40472c
push 0x35
pop ebx
push edi
mov byte [ebp - 4], 3
call fcn.004435cb
pop ecx
push esi
call fcn.00415a39
pop ecx
jmp 0x404658
push 0xd
jmp 0x404657