Function at 0x4051d0
Capabilities:
Create directory
Create shortcut via ishelllink
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42ccdc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x540
mov eax, dword [0x43b17c]
mov dword [esp + 0x538], eax
mov eax, dword [ebp + 8]
imul eax, eax, 0x1c
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
mov edx, dword [eax + ecx + 8]
test edx, edx
push edi
mov dword [esp + 0x1c], esi
je 0x405784
push str.wnie
lea ebx, [esi + 0x1c]
push ebx
lea edx, [esp + 0x18]
push edx
call fcn.004042c0
mov eax, dword [eax]
push eax
mov ecx, esi
call fcn.00402f10
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405256
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
call fcn.0041fbe3
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x554], 0
call fcn.0041fbe3
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
xor eax, eax
mov byte [esp + 0x20], 0
mov ecx, 0x40
lea edi, [esp + 0x21]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
stosb byte es:[edi], al
push 2
lea eax, [esp + 0x28]
push eax
push 0
mov byte [esp + 0x564], 1
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x405595
lea edi, [esp + 0x20]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4052c2
mov ecx, dword [0x42f310]
mov edx, dword [0x42f314]
mov ax, word [0x42f318]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [edi], ecx
push 0
lea ecx, [esp + 0x24]
mov dword [edi + 4], edx
push ecx
mov word [edi + 8], ax
call esi
lea edi, [esp + 0x20]
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405300
mov edx, dword [0x42f3fc]
mov eax, dword [0x42f400]
push 0
lea ecx, [esp + 0x24]
mov dword [edi], edx
push ecx
mov dword [edi + 4], eax
call esi
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x1c]
push 0x42f3e8
push eax
call fcn.004041f0
mov ecx, dword [ebx]
push ecx
lea edx, [esp + 0x24]
push str._swniewnie.exe
push edx
call fcn.004041f0
mov esi, dword [sym.imp.ole32.dll_CoInitialize]
add esp, 0x18
push 0
call esi
test eax, eax
mov edi, dword [sym.imp.ole32.dll_CoCreateInstance]
jl 0x4053f9
lea eax, [esp + 0xc]
push eax
push 0x433ab4
push 1
push 0
push 0x433ac4
call edi
test eax, eax
jl 0x4053f3
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x50]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0x3c]
mov eax, dword [esp + 0xc]
mov edx, dword [eax]
lea ecx, [esp + 0x10]
push ecx
push 0x433b04
push eax
call dword [edx]
test eax, eax
jl 0x4053e9
mov eax, dword [esp + 0x18]
push 0x104
lea edx, [esp + 0x33c]
push edx
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push 0
lea edx, [esp + 0x33c]
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0xc]
mov edx, dword [eax]
push eax
call dword [edx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x1c]
push 0x42f280
push ecx
call fcn.004041f0
mov edx, dword [ebx]
push edx
lea eax, [esp + 0x24]
push 0x42f26c
push eax
call fcn.004041f0
add esp, 0x18
push 0
call esi
test eax, eax
jl 0x4054c5
lea ecx, [esp + 0xc]
push ecx
push 0x433ab4
push 1
push 0
push 0x433ac4
call edi
test eax, eax
jl 0x4054bf
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x50]
mov eax, dword [esp + 0xc]
mov edx, dword [eax]
push 1
push eax
call dword [edx + 0x3c]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push 0x433b04
push eax
call dword [ecx]
test eax, eax
jl 0x4054b5
mov ecx, dword [esp + 0x18]
push 0x104
lea eax, [esp + 0x33c]
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
push 0
lea ecx, [esp + 0x33c]
push ecx
push eax
call dword [edx + 0x18]
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x1c]
push 0x42f260
push eax
call fcn.004041f0
mov ecx, dword [ebx]
push ecx
lea edx, [esp + 0x24]
push str._suninst.exe
push edx
call fcn.004041f0
add esp, 0x18
push 0
call esi
test eax, eax
jl 0x405591
lea eax, [esp + 0xc]
push eax
push 0x433ab4
push 1
push 0
push 0x433ac4
call edi
test eax, eax
jl 0x40558b
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x50]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0x3c]
mov eax, dword [esp + 0xc]
mov edx, dword [eax]
lea ecx, [esp + 0x10]
push ecx
push 0x433b04
push eax
call dword [edx]
test eax, eax
jl 0x405581
mov eax, dword [esp + 0x18]
push 0x104
lea edx, [esp + 0x33c]
push edx
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push 0
lea edx, [esp + 0x33c]
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0xc]
mov edx, dword [eax]
push eax
call dword [edx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov esi, dword [esp + 0x1c]
xor eax, eax
mov byte [esp + 0x230], 0
mov ecx, 0x40
lea edi, [esp + 0x231]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
stosb byte es:[edi], al
push 0x10
lea eax, [esp + 0x238]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x405655
lea ecx, [esp + 0x230]
push ecx
lea edx, [esp + 0x1c]
push 0x42f3e8
push edx
call fcn.004041f0
mov eax, dword [ebx]
push eax
lea ecx, [esp + 0x24]
push str._swniewnie.exe
push ecx
call fcn.004041f0
add esp, 0x18
push str.wnie
push ebx
lea edx, [esp + 0x18]
push edx
call fcn.004042c0
mov eax, dword [eax]
mov ecx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push 0
push 1
push 0x42f3c8
push eax
push ecx
push 1
mov ecx, esi
mov byte [esp + 0x570], 2
call fcn.00402db0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x554], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405655
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
mov byte [esp + 0x128], 0
mov ecx, 0x40
lea edi, [esp + 0x129]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
stosb byte es:[edi], al
push 0x1a
lea eax, [esp + 0x130]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x405735
lea edi, [esp + 0x128]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405694
mov ecx, 0xa
mov esi, str.MicrosoftInternet_ExplorerQuick_Launch
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x128]
push ecx
lea edx, [esp + 0x1c]
push 0x42f3e8
push edx
movsw word es:[edi], word [esi]
call fcn.004041f0
mov eax, dword [ebx]
push eax
lea ecx, [esp + 0x24]
push str._swniewnie.exe
push ecx
call fcn.004041f0
add esp, 0x18
push str.wnie
push ebx
lea edx, [esp + 0x14]
push edx
call fcn.004042c0
mov eax, dword [eax]
mov ecx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push 0
push 1
push 0x42f3c8
push eax
push ecx
mov ecx, dword [esp + 0x34]
push 1
mov byte [esp + 0x570], 3
call fcn.00402db0
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov byte [esp + 0x554], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405735
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x554], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40575b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x554], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405784
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x54c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x544]
mov eax, 1
call fcn.00411aac
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4