Function at 0x408660
Capabilities:
Resolve function by parsing pe exports
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x44903d
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x4563c4]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4563c4]
xor eax, esp
push eax
lea eax, [esp + 0x14c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x15c]
push str.path
lea eax, [esp + 0x8c]
push eax
mov edi, ecx
push ebp
mov dword [esp + 0x28], edi
call fcn.004057e0
push str.target
lea ecx, [esp + 0xa8]
push ecx
xor ebx, ebx
push ebp
mov dword [esp + 0x160], ebx
call fcn.004057e0
push str.workingdir
lea edx, [esp + 0xe0]
push edx
push ebp
mov byte [esp + 0x160], 1
call fcn.004057e0
push 0x44d8ac
lea eax, [esp + 0xfc]
push eax
push ebp
mov byte [esp + 0x160], 2
call fcn.004057e0
push str.description
lea ecx, [esp + 0x118]
push ecx
push ebp
mov byte [esp + 0x160], 3
call fcn.004057e0
push str.pathmui
lea edx, [esp + 0xc4]
push edx
push ebp
mov byte [esp + 0x160], 4
call fcn.004057e0
push str.Shortcut
push str.__s_
push 0x4575e0
xor eax, eax
mov byte [esp + 0x160], 5
call fcn.00419140
add dword [0x457600], 1
mov eax, dword [esp + 0x98]
mov esi, 8
add esp, 0xc
cmp dword [esp + 0xa0], esi
jae 0x408787
lea eax, [esp + 0x8c]
push eax
push str.Path___s
push 0x4575e0
xor eax, eax
call fcn.00419140
mov eax, dword [esp + 0xb4]
add esp, 0xc
cmp dword [esp + 0xbc], esi
jae 0x4087b3
lea eax, [esp + 0xa8]
push eax
push str.Target___s
push 0x4575e0
xor eax, eax
call fcn.00419140
add esp, 0xc
cmp byte [edi + 0x244], bl
jne 0x4088be
cmp dword [esp + 0xa0], esi
mov eax, dword [esp + 0x8c]
jae 0x4087eb
lea eax, [esp + 0x8c]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esp + 0x12c], esi
jb 0x40880d
mov eax, dword [esp + 0x118]
mov dword [esp + 0x18], eax
jmp 0x408818
lea ecx, [esp + 0x118]
mov dword [esp + 0x18], ecx
cmp dword [esp + 0x110], esi
mov ecx, dword [esp + 0xfc]
jae 0x40882f
lea ecx, [esp + 0xfc]
cmp dword [esp + 0xf4], esi
mov edx, dword [esp + 0xe0]
jae 0x408846
lea edx, [esp + 0xe0]
cmp dword [esp + 0xa0], esi
mov eax, dword [esp + 0x8c]
jae 0x40885d
lea eax, [esp + 0x8c]
cmp dword [esp + 0xbc], esi
mov esi, dword [esp + 0xa8]
jae 0x408874
lea esi, [esp + 0xa8]
push ecx
mov ecx, dword [esp + 0x1c]
push eax
call fcn.00417d40
mov esi, eax
add esp, 8
cmp esi, ebx
jge 0x408a04
push esi
push str.Shortcut_error_0x_X
push 0x4575e0
mov eax, 2
call fcn.00419140
add esp, 0xc
cmp byte [edi + 0x245], bl
je 0x4088b0
xor esi, esi
jmp 0x4088b6
and esi, 0xffff
mov dword [edi + 0x38], esi
mov esi, 8
mov ebp, 7
sub dword [0x457600], 1
cmp dword [edi + 0x38], ebx
sete byte [esp + 0x17]
cmp dword [esp + 0xd8], esi
jb 0x4088eb
mov eax, dword [esp + 0xc4]
push eax
call fcn.00422b32
add esp, 4
cmp dword [esp + 0x12c], esi
mov dword [esp + 0xd8], ebp
mov dword [esp + 0xd4], ebx
mov word [esp + 0xc4], bx
jb 0x40891a
mov ecx, dword [esp + 0x118]
push ecx
call fcn.00422b32
add esp, 4
cmp dword [esp + 0x110], esi
mov dword [esp + 0x12c], ebp
mov dword [esp + 0x128], ebx
mov word [esp + 0x118], bx
jb 0x408949
mov edx, dword [esp + 0xfc]
push edx
call fcn.00422b32
add esp, 4
cmp dword [esp + 0xf4], esi
mov dword [esp + 0x110], ebp
mov dword [esp + 0x10c], ebx
mov word [esp + 0xfc], bx
jb 0x408978
mov eax, dword [esp + 0xe0]
push eax
call fcn.00422b32
add esp, 4
cmp dword [esp + 0xbc], esi
mov dword [esp + 0xf4], ebp
mov dword [esp + 0xf0], ebx
mov word [esp + 0xe0], bx
jb 0x4089a7
mov ecx, dword [esp + 0xa8]
push ecx
call fcn.00422b32
add esp, 4
cmp dword [esp + 0xa0], esi
mov dword [esp + 0xbc], ebp
mov dword [esp + 0xb8], ebx
mov word [esp + 0xa8], bx
jb 0x4089d6
mov edx, dword [esp + 0x8c]
push edx
call fcn.00422b32
add esp, 4
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x14c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.00422b23
add esp, 0x144
ret 4
cmp dword [esp + 0xd4], ebx
mov edi, 8
je 0x408a45
cmp dword [esp + 0xd8], edi
mov ecx, dword [esp + 0xc4]
jae 0x408a29
lea ecx, [esp + 0xc4]
cmp dword [esp + 0xa0], edi
mov esi, dword [esp + 0x8c]
jae 0x408a40
lea esi, [esp + 0x8c]
call fcn.004105e0
push 1
lea edx, [esp + 0x134]
push str.mui_d
push edx
mov dword [esp + 0x24], 1
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x130]
push eax
lea ecx, [esp + 0x70]
push ecx
push ebp
call fcn.004057e0
mov byte [esp + 0x154], 6
cmp dword [esp + 0x80], ebx
je 0x408bdd
mov dword [esp + 0x3c], 0x3b
lea edx, [esp + 0x3c]
push edx
mov ebx, 1
xor eax, eax
lea edx, [esp + 0x70]
call fcn.00412330
mov ebx, eax
cmp ebx, 0xffffffff
je 0x408b4b
push 0xffffffffffffffff
lea eax, [esp + 0x70]
lea ecx, [ebx + 1]
push eax
lea esi, [esp + 0x58]
call fcn.00410c00
mov edi, eax
push ebx
lea ecx, [esp + 0x70]
push ecx
xor ecx, ecx
lea esi, [esp + 0x28]
mov byte [esp + 0x15c], 7
call fcn.00410c00
mov ebx, 8
mov byte [esp + 0x154], bl
cmp dword [edi + 0x18], ebx
jb 0x408af9
mov ecx, dword [edi + 4]
jmp 0x408afc
lea ecx, [edi + 4]
cmp dword [eax + 0x18], ebx
jb 0x408b06
mov eax, dword [eax + 4]
jmp 0x408b09
add eax, 4
mov esi, eax
call fcn.004105e0
cmp dword [esp + 0x38], ebx
jb 0x408b23
mov edx, dword [esp + 0x24]
push edx
call fcn.00422b32
add esp, 4
xor eax, eax
cmp dword [esp + 0x68], ebx
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], eax
mov word [esp + 0x24], ax
jb 0x408b6f
mov eax, dword [esp + 0x54]
push eax
call fcn.00422b32
add esp, 4
jmp 0x408b6f
lea ecx, [esp + 0x130]
push ecx
push str.Badly_formed_MUI_name_on__s
push 0x4575e0
mov eax, 2
call fcn.00419140
add esp, 0xc
mov ebx, 8
add dword [esp + 0x18], 1
mov byte [esp + 0x154], 5
cmp dword [esp + 0x84], ebx
jb 0x408b92
mov edx, dword [esp + 0x70]
push edx
call fcn.00422b32
add esp, 4
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x134]
push str.mui_d
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea edx, [esp + 0x130]
push edx
lea eax, [esp + 0x70]
push eax
push ebp
call fcn.004057e0
mov byte [esp + 0x154], 6
cmp dword [esp + 0x80], 0
jne 0x408a95
xor ebx, ebx
mov edi, 8
cmp dword [esp + 0x84], edi
jb 0x408bf3
mov ecx, dword [esp + 0x70]
push ecx
call fcn.00422b32
add esp, 4
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x154], 9
push 5
push 0x44d738
lea esi, [esp + 0x74]
mov dword [esp + 0x8c], 7
mov dword [esp + 0x88], ebx
mov word [esp + 0x78], bx
call fcn.004030c0
mov byte [esp + 0x154], 0xa
cmp dword [esp + 0xa0], edi
mov ebx, dword [esp + 0x8c]
jae 0x408c4d
lea ebx, [esp + 0x8c]
lea edx, [esp + 0x6c]
push edx
lea esi, [esp + 0x24]
call fcn.00416100
add esp, 4
push eax
lea esi, [esp + 0x44]
mov byte [esp + 0x158], 0xb
call fcn.00410ce0
mov edi, 8
cmp dword [esp + 0x38], edi
jb 0x408c88
mov eax, dword [esp + 0x24]
push eax
call fcn.00422b32
add esp, 4
xor ebx, ebx
mov esi, 7
mov byte [esp + 0x154], 9
cmp dword [esp + 0x84], edi
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], bx
jb 0x408cba
mov ecx, dword [esp + 0x70]
push ecx
call fcn.00422b32
add esp, 4
push 0x44d4d4
lea edx, [esp + 0x54]
push edx
push ebp
call fcn.004057e0
mov edi, eax
mov byte [esp + 0x154], 0xc
push 0xa
mov dword [esp + 0x88], esi
push str.usequence
lea esi, [esp + 0x74]
mov dword [esp + 0x88], ebx
mov word [esp + 0x78], bx
call fcn.004030c0
push edi
mov eax, esi
push eax
lea edi, [esp + 0x28]
mov byte [esp + 0x15c], 0xd
call fcn.00416050
add esp, 8
push eax
lea esi, [esp + 0x44]
mov byte [esp + 0x158], 0xe
call fcn.00410ce0
mov edi, 8
cmp dword [esp + 0x38], edi
jb 0x408d39
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00422b32
add esp, 4
cmp dword [esp + 0x84], edi
mov esi, 7
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], bx
jb 0x408d61
mov edx, dword [esp + 0x70]
push edx
call fcn.00422b32
add esp, 4
mov byte [esp + 0x154], 9
cmp dword [esp + 0x68], edi
mov dword [esp + 0x84], esi
mov dword [esp + 0x80], ebx
mov word [esp + 0x70], bx
jb 0x408d8f
mov eax, dword [esp + 0x54]
push eax
call fcn.00422b32
add esp, 4
push 0x44d5dc
lea ecx, [esp + 0x54]
push ecx
push ebp
call fcn.004057e0
mov edi, eax
mov byte [esp + 0x154], 0xf
push 6
mov dword [esp + 0x88], esi
push str.group
lea esi, [esp + 0x74]
mov dword [esp + 0x88], ebx
mov word [esp + 0x78], bx
call fcn.004030c0
push edi
mov edx, esi
push edx
lea edi, [esp + 0x28]
mov byte [esp + 0x15c], 0x10
call fcn.00416050
add esp, 8
push eax
lea esi, [esp + 0x44]
mov byte [esp + 0x158], 0x11
call fcn.00410ce0
mov esi, 8
cmp dword [esp + 0x38], esi
jb 0x408e0e
mov eax, dword [esp + 0x24]
push eax
call fcn.00422b32
add esp, 4
cmp dword [esp + 0x84], esi
mov ebp, 7
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], bx
jb 0x408e36
mov ecx, dword [esp + 0x70]
push ecx
call fcn.00422b32
add esp, 4
mov byte [esp + 0x154], 9
cmp dword [esp + 0x68], esi
mov dword [esp + 0x84], ebp
mov dword [esp + 0x80], ebx
mov word [esp + 0x70], bx
jb 0x408e64
mov edx, dword [esp + 0x54]
push edx
call fcn.00422b32
add esp, 4
mov eax, dword [esp + 0x1c]
push str.File
push eax
lea ecx, [esp + 0x48]
call fcn.0040dc40
mov eax, dword [esp + 0x44]
cmp eax, ebx
je 0x408e9d
mov ecx, dword [esp + 0x3c]
mov edi, dword [esp + 0x48]
push ecx
call fcn.00417420
mov edx, dword [esp + 0x48]
add esp, 4
push edx
call fcn.00422b32
add esp, 4
mov edi, dword [esp + 0x1c]
xor ebx, ebx
jmp 0x4088c3