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

Disassembly:
push 0xffffffffffffffff
push 0x448b8d
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x4563d0]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4563d0]
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.00405890
push str.target
lea ecx, [esp + 0xa8]
push ecx
xor ebx, ebx
push ebp
mov dword [esp + 0x160], ebx
call fcn.00405890
push str.workingdir
lea edx, [esp + 0xe0]
push edx
push ebp
mov byte [esp + 0x160], 1
call fcn.00405890
push 0x44d894
lea eax, [esp + 0xfc]
push eax
push ebp
mov byte [esp + 0x160], 2
call fcn.00405890
push str.description
lea ecx, [esp + 0x118]
push ecx
push ebp
mov byte [esp + 0x160], 3
call fcn.00405890
push str.pathmui
lea edx, [esp + 0xc4]
push edx
push ebp
mov byte [esp + 0x160], 4
call fcn.00405890
push str.Shortcut
push str.__s_
push 0x4575d0
xor eax, eax
mov byte [esp + 0x160], 5
call fcn.00419220
add dword [0x4575f0], 1
mov eax, dword [esp + 0x98]
mov esi, 8
add esp, 0xc
cmp dword [esp + 0xa0], esi
jae 0x408847
lea eax, [esp + 0x8c]
push eax
push str.Path___s
push 0x4575d0
xor eax, eax
call fcn.00419220
mov eax, dword [esp + 0xb4]
add esp, 0xc
cmp dword [esp + 0xbc], esi
jae 0x408873
lea eax, [esp + 0xa8]
push eax
push str.Target___s
push 0x4575d0
xor eax, eax
call fcn.00419220
add esp, 0xc
cmp byte [edi + 0x244], bl
jne 0x40897e
cmp dword [esp + 0xa0], esi
mov eax, dword [esp + 0x8c]
jae 0x4088ab
lea eax, [esp + 0x8c]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esp + 0x12c], esi
jb 0x4088cd
mov eax, dword [esp + 0x118]
mov dword [esp + 0x18], eax
jmp 0x4088d8
lea ecx, [esp + 0x118]
mov dword [esp + 0x18], ecx
cmp dword [esp + 0x110], esi
mov ecx, dword [esp + 0xfc]
jae 0x4088ef
lea ecx, [esp + 0xfc]
cmp dword [esp + 0xf4], esi
mov edx, dword [esp + 0xe0]
jae 0x408906
lea edx, [esp + 0xe0]
cmp dword [esp + 0xa0], esi
mov eax, dword [esp + 0x8c]
jae 0x40891d
lea eax, [esp + 0x8c]
cmp dword [esp + 0xbc], esi
mov esi, dword [esp + 0xa8]
jae 0x408934
lea esi, [esp + 0xa8]
push ecx
mov ecx, dword [esp + 0x1c]
push eax
call fcn.00417e50
mov esi, eax
add esp, 8
cmp esi, ebx
jge 0x408ac4
push esi
push str.Shortcut_error_0x_X
push 0x4575d0
mov eax, 2
call fcn.00419220
add esp, 0xc
cmp byte [edi + 0x245], bl
je 0x408970
xor esi, esi
jmp 0x408976
and esi, 0xffff
mov dword [edi + 0x38], esi
mov esi, 8
mov ebp, 7
sub dword [0x4575f0], 1
cmp dword [edi + 0x38], ebx
sete byte [esp + 0x17]
cmp dword [esp + 0xd8], esi
jb 0x4089ab
mov eax, dword [esp + 0xc4]
push eax
call fcn.00422ece
add esp, 4
cmp dword [esp + 0x12c], esi
mov dword [esp + 0xd8], ebp
mov dword [esp + 0xd4], ebx
mov word [esp + 0xc4], bx
jb 0x4089da
mov ecx, dword [esp + 0x118]
push ecx
call fcn.00422ece
add esp, 4
cmp dword [esp + 0x110], esi
mov dword [esp + 0x12c], ebp
mov dword [esp + 0x128], ebx
mov word [esp + 0x118], bx
jb 0x408a09
mov edx, dword [esp + 0xfc]
push edx
call fcn.00422ece
add esp, 4
cmp dword [esp + 0xf4], esi
mov dword [esp + 0x110], ebp
mov dword [esp + 0x10c], ebx
mov word [esp + 0xfc], bx
jb 0x408a38
mov eax, dword [esp + 0xe0]
push eax
call fcn.00422ece
add esp, 4
cmp dword [esp + 0xbc], esi
mov dword [esp + 0xf4], ebp
mov dword [esp + 0xf0], ebx
mov word [esp + 0xe0], bx
jb 0x408a67
mov ecx, dword [esp + 0xa8]
push ecx
call fcn.00422ece
add esp, 4
cmp dword [esp + 0xa0], esi
mov dword [esp + 0xbc], ebp
mov dword [esp + 0xb8], ebx
mov word [esp + 0xa8], bx
jb 0x408a96
mov edx, dword [esp + 0x8c]
push edx
call fcn.00422ece
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.00422834
add esp, 0x144
ret 4
cmp dword [esp + 0xd4], ebx
mov edi, 8
je 0x408b05
cmp dword [esp + 0xd8], edi
mov ecx, dword [esp + 0xc4]
jae 0x408ae9
lea ecx, [esp + 0xc4]
cmp dword [esp + 0xa0], edi
mov esi, dword [esp + 0x8c]
jae 0x408b00
lea esi, [esp + 0x8c]
call fcn.004106e0
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.00405890
mov byte [esp + 0x154], 6
cmp dword [esp + 0x80], ebx
je 0x408c9d
mov dword [esp + 0x3c], 0x3b
lea edx, [esp + 0x3c]
push edx
mov ebx, 1
xor eax, eax
lea edx, [esp + 0x70]
call fcn.004123a0
mov ebx, eax
cmp ebx, 0xffffffff
je 0x408c0b
push 0xffffffffffffffff
lea eax, [esp + 0x70]
lea ecx, [ebx + 1]
push eax
lea esi, [esp + 0x58]
call fcn.00410d00
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.00410d00
mov ebx, 8
mov byte [esp + 0x154], bl
cmp dword [edi + 0x18], ebx
jb 0x408bb9
mov ecx, dword [edi + 4]
jmp 0x408bbc
lea ecx, [edi + 4]
cmp dword [eax + 0x18], ebx
jb 0x408bc6
mov eax, dword [eax + 4]
jmp 0x408bc9
add eax, 4
mov esi, eax
call fcn.004106e0
cmp dword [esp + 0x38], ebx
jb 0x408be3
mov edx, dword [esp + 0x24]
push edx
call fcn.00422ece
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 0x408c2f
mov eax, dword [esp + 0x54]
push eax
call fcn.00422ece
add esp, 4
jmp 0x408c2f
lea ecx, [esp + 0x130]
push ecx
push str.Badly_formed_MUI_name_on__s
push 0x4575d0
mov eax, 2
call fcn.00419220
add esp, 0xc
mov ebx, 8
add dword [esp + 0x18], 1
mov byte [esp + 0x154], 5
cmp dword [esp + 0x84], ebx
jb 0x408c52
mov edx, dword [esp + 0x70]
push edx
call fcn.00422ece
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.00405890
mov byte [esp + 0x154], 6
cmp dword [esp + 0x80], 0
jne 0x408b55
xor ebx, ebx
mov edi, 8
cmp dword [esp + 0x84], edi
jb 0x408cb3
mov ecx, dword [esp + 0x70]
push ecx
call fcn.00422ece
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 0x44d720
lea esi, [esp + 0x74]
mov dword [esp + 0x8c], 7
mov dword [esp + 0x88], ebx
mov word [esp + 0x78], bx
call fcn.004031d0
mov byte [esp + 0x154], 0xa
cmp dword [esp + 0xa0], edi
mov ebx, dword [esp + 0x8c]
jae 0x408d0d
lea ebx, [esp + 0x8c]
lea edx, [esp + 0x6c]
push edx
lea esi, [esp + 0x24]
call fcn.00416210
add esp, 4
push eax
lea esi, [esp + 0x44]
mov byte [esp + 0x158], 0xb
call fcn.00410de0
mov edi, 8
cmp dword [esp + 0x38], edi
jb 0x408d48
mov eax, dword [esp + 0x24]
push eax
call fcn.00422ece
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 0x408d7a
mov ecx, dword [esp + 0x70]
push ecx
call fcn.00422ece
add esp, 4
push 0x44d4bc
lea edx, [esp + 0x54]
push edx
push ebp
call fcn.00405890
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.004031d0
push edi
mov eax, esi
push eax
lea edi, [esp + 0x28]
mov byte [esp + 0x15c], 0xd
call fcn.00416160
add esp, 8
push eax
lea esi, [esp + 0x44]
mov byte [esp + 0x158], 0xe
call fcn.00410de0
mov edi, 8
cmp dword [esp + 0x38], edi
jb 0x408df9
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00422ece
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 0x408e21
mov edx, dword [esp + 0x70]
push edx
call fcn.00422ece
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 0x408e4f
mov eax, dword [esp + 0x54]
push eax
call fcn.00422ece
add esp, 4
push 0x44d5c4
lea ecx, [esp + 0x54]
push ecx
push ebp
call fcn.00405890
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.004031d0
push edi
mov edx, esi
push edx
lea edi, [esp + 0x28]
mov byte [esp + 0x15c], 0x10
call fcn.00416160
add esp, 8
push eax
lea esi, [esp + 0x44]
mov byte [esp + 0x158], 0x11
call fcn.00410de0
mov esi, 8
cmp dword [esp + 0x38], esi
jb 0x408ece
mov eax, dword [esp + 0x24]
push eax
call fcn.00422ece
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 0x408ef6
mov ecx, dword [esp + 0x70]
push ecx
call fcn.00422ece
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 0x408f24
mov edx, dword [esp + 0x54]
push edx
call fcn.00422ece
add esp, 4
mov eax, dword [esp + 0x1c]
push str.File
push eax
lea ecx, [esp + 0x48]
call fcn.0040dd20
mov eax, dword [esp + 0x44]
cmp eax, ebx
je 0x408f5d
mov ecx, dword [esp + 0x3c]
mov edi, dword [esp + 0x48]
push ecx
call fcn.00417520
mov edx, dword [esp + 0x48]
add esp, 4
push edx
call fcn.00422ece
add esp, 4
mov edi, dword [esp + 0x1c]
xor ebx, ebx
jmp 0x408983