Function at 0x4043f0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1f88
call fcn.00410b40
mov eax, dword [0x41d008]
xor eax, ebp
mov dword [ebp - 4], eax
movdqu xmm0, xmmword [str.Microsoft_LSP.sp2]
mov eax, dword [0x41adc4]
push ebx
push esi
push edi
movdqu xmmword [ebp - 0x28], xmm0
push 0x758
movdqu xmm0, xmmword [0x41adb4]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x180c]
push 0
push eax
mov dword [ebp - 0x1f70], ecx
mov dword [ebp - 0x1f74], 0
movdqu xmmword [ebp - 0x18], xmm0
mov dword [ebp - 0x1810], 0
call fcn.00406ff0
push 0x758
lea eax, [ebp - 0x1f68]
mov dword [ebp - 0x1f6c], 0
push 0
push eax
call fcn.00406ff0
add esp, 0x18
call fcn.00404350
mov edx, dword [0x41f35c]
xor ecx, ecx
mov ebx, dword [0x41f358]
test edx, edx
jle 0x4044bf
lea eax, [ebx + 0x5c]
cmp dword [eax - 0x10], 2
jne 0x40449e
cmp dword [eax], 0
je 0x4044aa
inc ecx
add eax, 0x274
cmp ecx, edx
jl 0x404493
jmp 0x4044bf
imul esi, ecx, 0x274
lea edi, [ebp - 0x1f6c]
mov ecx, 0x9d
add esi, ebx
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
test edx, edx
jle 0x4044f4
lea eax, [ebx + 0x5c]
cmp dword [eax - 0x10], 2
jne 0x4044d3
cmp dword [eax], 0x11
je 0x4044df
inc ecx
add eax, 0x274
cmp ecx, edx
jl 0x4044c8
jmp 0x4044f4
imul esi, ecx, 0x274
lea edi, [ebp - 0x1cf8]
mov ecx, 0x9d
add esi, ebx
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
test edx, edx
jle 0x40452c
lea eax, [ebx + 0x5c]
lea ecx, [ecx]
cmp dword [eax - 0x10], 2
jne 0x40450b
cmp dword [eax], 6
je 0x404517
inc ecx
add eax, 0x274
cmp ecx, edx
jl 0x404500
jmp 0x40452c
imul esi, ecx, 0x274
lea edi, [ebp - 0x1a84]
mov ecx, 0x9d
add esi, ebx
rep movsd dword es:[edi], dword [esi]
xor ebx, ebx
mov edi, edi
imul eax, ebx, 0x274
lea esi, [ebp - 0x1f6c]
add esi, eax
lea edi, [ebp - 0x1810]
mov ecx, 0x9d
and dword [esi], 0xfffdffff
add edi, eax
rep movsd dword es:[edi], dword [esi]
or dword [ebp + eax - 0x1800], 4
lea ecx, [ebp - 0x28]
push ecx
mov dword [ebp + eax - 0x17e8], 0
lea eax, [ebp + eax - 0x179c]
push 0x100
push eax
call fcn.00406566
mov eax, ebx
add esp, 0xc
sub eax, 0
je 0x4045a6
dec eax
je 0x404599
dec eax
jne 0x4045bf
push 0x41add8
lea eax, [ebp - 0x12b4]
jmp 0x4045b1
push 0x41add0
lea eax, [ebp - 0x1528]
jmp 0x4045b1
push 0x41adc8
lea eax, [ebp - 0x179c]
push 0x100
push eax
call fcn.004068c9
add esp, 0xc
inc ebx
cmp ebx, 3
jl 0x404530
lea eax, [ebp - 0x1f74]
mov dword [ebp - 0x1034], 0
push eax
push 3
lea eax, [ebp - 0x1810]
xorps xmm0, xmm0
push eax
push dword [ebp - 0x1f70]
movq qword [ebp - 0x1030], xmm0
push 0x41f360
call dword [sym.imp.WS2_32.dll_WSCInstallProvider]
cmp eax, 0xffffffff
je 0x4048db
call fcn.00404350
mov ebx, dword [0x41f35c]
test ebx, ebx
jle 0x404677
mov esi, dword [0x41f358]
add esi, 0x24
lea ecx, [esi - 0x10]
mov edx, 0x41f360
mov edi, 0xc
lea ecx, [ecx]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x40466e
add ecx, 4
add edx, 4
sub edi, 4
jae 0x404630
mov eax, dword [esi + 0x38]
test eax, eax
je 0x404666
cmp eax, 6
je 0x40465c
cmp eax, 0x11
jne 0x40466e
mov eax, dword [esi]
mov dword [ebp - 0x1030], eax
jmp 0x40466e
mov eax, dword [esi]
mov dword [ebp - 0x102c], eax
jmp 0x40466e
mov edi, dword [esi]
mov dword [ebp - 0x1034], edi
add esi, 0x274
dec ebx
jne 0x404620
xor eax, eax
push 0xffe
push eax
mov word [ebp - 0x1028], ax
lea eax, [ebp - 0x1026]
push eax
call fcn.00406ff0
lea eax, [ebp - 0x1034]
add esp, 0xc
xor ebx, ebx
mov dword [ebp - 0x1f88], eax
lea esi, [ebp - 0x1f44]
lea esp, [esp]
lea edi, [esi + 0x4c]
push edi
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x1028]
push str._ws_over__ws
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x1028]
push eax
push 0x100
push edi
call fcn.00406566
mov edx, dword [esi]
add esp, 0x1c
cmp edx, 1
jne 0x4046ee
mov eax, dword [edi - 0x50]
mov dword [edi - 0x44], eax
jmp 0x40470e
test edx, edx
jle 0x40470e
lea eax, [ebx + edx]
lea ecx, [ebp - 0x1f40]
lea ecx, [ecx + eax*4]
mov edi, edi
mov eax, dword [ecx - 4]
lea ecx, [ecx - 4]
dec edx
mov dword [ecx + 4], eax
test edx, edx
jg 0x404700
mov ecx, dword [ebp - 0x1f88]
add ebx, 0x9d
inc dword [esi]
mov eax, dword [ecx]
add ecx, 4
mov dword [esi + 4], eax
add esi, 0x274
mov dword [ebp - 0x1f88], ecx
cmp ebx, 0x1d7
jl 0x4046b0
lea eax, [ebp - 0x1f84]
push eax
call dword [sym.imp.RPCRT4.dll_UuidCreate]
test eax, eax
jne 0x4048b9
lea eax, [ebp - 0x1f74]
push eax
push 3
lea eax, [ebp - 0x1f6c]
push eax
push dword [ebp - 0x1f70]
lea eax, [ebp - 0x1f84]
push eax
call dword [sym.imp.WS2_32.dll_WSCInstallProvider]
cmp eax, 0xffffffff
jne 0x404783
push 0x41ae18
jmp 0x4048e0
push dword [0x41f358]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov esi, dword [sym.imp.WS2_32.dll_WSCEnumProtocols]
lea eax, [ebp - 0x1f70]
push eax
lea eax, [ebp - 0x1f88]
mov dword [ebp - 0x1f88], 0
push eax
push dword [0x41f358]
mov dword [ebp - 0x1f70], 0
push 0
call esi
cmp eax, 0xffffffff
jne 0x404802
cmp dword [ebp - 0x1f70], 0x2747
jne 0x404802
push dword [ebp - 0x1f88]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea ecx, [ebp - 0x1f70]
mov dword [0x41f358], eax
push ecx
lea ecx, [ebp - 0x1f88]
push ecx
push eax
push 0
call esi
mov edi, eax
mov dword [0x41f35c], edi
jmp 0x404808
mov edi, dword [0x41f35c]
xor esi, esi
lea eax, [ebp - 0x10b0]
push 0x7c
push esi
push eax
mov dword [ebp - 0x10b4], esi
call fcn.00406ff0
mov ebx, dword [0x41f358]
add esp, 0xc
test edi, edi
jle 0x40489a
lea ecx, [ebx + 0x24]
mov edx, edi
mov eax, dword [ecx + 8]
cmp eax, dword [ebp - 0x1034]
je 0x404850
cmp eax, dword [ebp - 0x1030]
je 0x404850
cmp eax, dword [ebp - 0x102c]
jne 0x40485a
mov eax, dword [ecx]
mov dword [ebp + esi*4 - 0x10b4], eax
inc esi
add ecx, 0x274
dec edx
jne 0x404835
test edi, edi
jle 0x40489a
mov edx, dword [ebp - 0x1034]
lea ecx, [ebx + 0x24]
mov eax, dword [ecx + 8]
cmp eax, edx
je 0x404891
cmp eax, dword [ebp - 0x1030]
je 0x404891
cmp eax, dword [ebp - 0x102c]
je 0x404891
mov eax, dword [ecx]
mov dword [ebp + esi*4 - 0x10b4], eax
inc esi
add ecx, 0x274
dec edi
jne 0x404870
push esi
lea eax, [ebp - 0x10b4]
push eax
call dword [sym.imp.WS2_32.dll_WSCWriteProviderOrder]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040596a
mov esp, ebp
pop ebp
ret
push 0x41ae18
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040596a
mov esp, ebp
pop ebp
ret
push str.Install_fail.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1f74]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0040596a
mov esp, ebp
pop ebp
ret