Function at 0x10012200
Capabilities:
Create directory
Create shortcut via ishelllink

Disassembly:
sub esp, 0x568
mov eax, dword [0x10023050]
xor eax, esp
mov dword [esp + 0x564], eax
mov eax, dword [esp + 0x570]
push ebx
push ebp
mov ebp, dword [esp + 0x574]
push esi
mov esi, dword [esp + 0x580]
push edi
mov edi, edx
lea edx, [esp + 0x14]
push edx
push 0x1001c43c
push 1
push 0
push 0x1001c45c
mov dword [esp + 0x44], ebp
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], eax
mov dword [esp + 0x50], ecx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x1001257b
push 0x104
lea eax, [esp + 0x15d]
push 0
push eax
mov byte [esp + 0x164], 0
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x105
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea ecx, [esp + 0x160]
push ecx
call edi
mov ebx, dword [sym.imp.MSVCR90.dll__mbsrchr]
lea edx, [esp + 0x158]
push 0x5c
push edx
call ebx
add esp, 8
test eax, eax
je 0x100122b1
mov byte [eax], 0
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x158]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
test esi, esi
je 0x100122e3
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x100122e3
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x44]
push 0
push esi
push eax
call edx
push 0x104
lea eax, [esp + 0x55]
push 0
push eax
mov byte [esp + 0x5c], 0
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x105
push ebp
lea ecx, [esp + 0x58]
push ecx
call edi
lea edx, [esp + 0x50]
push 0x5c
push edx
call ebx
add esp, 8
test eax, eax
je 0x1001231c
mov byte [eax], 0
mov edi, dword [sym.imp.MSVCR90.dll__mbschr]
lea eax, [esp + 0x50]
push 0x5c
push eax
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, eax
add esp, 8
test esi, esi
je 0x1001235e
lea ebx, [ebx]
push 0
lea ecx, [esp + 0x54]
push ecx
mov byte [esi], 0
call ebp
mov byte [esi], 0x5c
push 0x5c
inc esi
push esi
call edi
mov esi, eax
add esp, 8
test esi, esi
jne 0x10012340
push 0
lea edx, [esp + 0x54]
push edx
call ebp
mov esi, dword [esp + 0x3c]
test esi, esi
je 0x10012398
push 0x5c
push esi
call ebx
add esp, 8
test eax, eax
je 0x1001238b
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
inc eax
push eax
mov eax, dword [edx + 0x1c]
push ecx
call eax
jmp 0x10012398
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
push esi
push eax
call edx
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x100123ad
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x2c]
call eax
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x38]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x50]
call eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], 0
mov ecx, dword [eax]
push 0x1001ea74
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jl 0x100124e7
xor ecx, ecx
push 0xfe
push ecx
lea edx, [esp + 0x26a]
push edx
mov word [esp + 0x26c], cx
call sub.MSVCR90.dll_memset
add esp, 0xc
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.RPCRT4.dll_UuidCreate]
movzx ecx, byte [esp + 0x4f]
movzx edx, byte [esp + 0x4e]
movzx eax, byte [esp + 0x4d]
push ecx
movzx ecx, byte [esp + 0x50]
push edx
movzx edx, byte [esp + 0x53]
push eax
movzx eax, byte [esp + 0x56]
push ecx
movzx ecx, byte [esp + 0x59]
push edx
movzx edx, byte [esp + 0x5c]
push eax
movzx eax, word [esp + 0x5e]
push ecx
movzx ecx, word [esp + 0x60]
push edx
mov edx, dword [esp + 0x60]
push eax
push ecx
push edx
push str._08X_04X_04X_02X_02X_02X_02X_02X_02X_02X_02X
mov eax, 0x100
lea edi, [esp + 0x290]
call fcn.10012b60
xor eax, eax
add esp, 0x30
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
push ecx
mov edx, edi
mov eax, 0x1f
push edx
mov word [esp + 0x28], ax
call dword [sym.imp.SHLWAPI.dll_SHStrDupW]
test eax, eax
jge 0x100124aa
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
jmp 0x100124db
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0x20]
push edx
push 0x1001ea84
push eax
mov eax, dword [ecx + 0x18]
call eax
test eax, eax
jl 0x100124d0
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
push eax
call edx
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.ole32.dll_PropVariantClear]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x1c]
push edx
push 0x1001c46c
push eax
mov eax, dword [ecx]
call eax
mov esi, eax
test esi, esi
jl 0x10012564
xor ecx, ecx
push 0x208
push ecx
lea edx, [esp + 0x36a]
push edx
mov word [esp + 0x36c], cx
call sub.MSVCR90.dll_memset
mov ecx, dword [esp + 0x3c]
add esp, 0xc
push 0x104
lea eax, [esp + 0x364]
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0x1c]
mov edx, dword [eax]
mov edx, dword [edx + 0x18]
push 1
lea ecx, [esp + 0x364]
push ecx
push eax
call edx
mov esi, eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
test esi, esi
jl 0x1001257b
mov eax, 1
jmp 0x1001257d
xor eax, eax
mov ecx, dword [esp + 0x574]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100192c6
add esp, 0x568
ret 0xc