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

Disassembly:
push 0xffffffffffffffff
push 0x440be8
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x44f3d8]
xor eax, esp
mov dword [esp + 0x150], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44f3d8]
xor eax, esp
push eax
lea eax, [esp + 0x16c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x17c]
lea eax, [esp + 0x8c]
mov edi, ecx
push eax
push ebp
mov ecx, str.path
mov dword [esp + 0x24], edi
call fcn.00406dd0
lea ecx, [esp + 0xc4]
push ecx
xor ebx, ebx
push ebp
mov ecx, str.target
mov dword [esp + 0x17c], ebx
call fcn.00406dd0
lea edx, [esp + 0xfc]
push edx
push ebp
mov ecx, str.workingdir
mov byte [esp + 0x17c], 1
call fcn.00406dd0
lea eax, [esp + 0x118]
push eax
push ebp
mov ecx, 0x4452c4
mov byte [esp + 0x17c], 2
call fcn.00406dd0
lea ecx, [esp + 0xa8]
push ecx
push ebp
mov ecx, str.description
mov byte [esp + 0x17c], 3
call fcn.00406dd0
lea edx, [esp + 0x134]
push edx
push ebp
mov ecx, str.description_mui
mov byte [esp + 0x17c], 4
call fcn.00406dd0
lea eax, [esp + 0xe0]
push eax
push ebp
mov ecx, str.pathmui
mov byte [esp + 0x17c], 5
call fcn.00406dd0
mov byte [esp + 0x174], 6
call fcn.00422db0
cmp eax, 0x6000100
jb 0x40a546
cmp eax, 0xffffffff
ja 0x40a546
cmp dword [esp + 0x148], ebx
je 0x40a546
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x13c]
lea ecx, [esp + 0xb0]
call fcn.00404070
mov eax, dword [ebp + 4]
push eax
push str.Shortcut
push str.__s____d_
push 0x450638
xor eax, eax
call fcn.0041ee40
add dword [0x450658], 1
mov eax, dword [esp + 0xa0]
mov esi, 8
add esp, 0x10
cmp dword [esp + 0xa4], esi
jae 0x40a586
lea eax, [esp + 0x90]
push eax
push str.Path___s
push 0x450638
xor eax, eax
call fcn.0041ee40
mov eax, dword [esp + 0xd4]
add esp, 0xc
cmp dword [esp + 0xdc], esi
jae 0x40a5b2
lea eax, [esp + 0xc8]
push eax
push str.Target___s
push 0x450638
xor eax, eax
call fcn.0041ee40
mov eax, dword [esp + 0xb8]
add esp, 0xc
cmp dword [esp + 0xc0], esi
jae 0x40a5de
lea eax, [esp + 0xac]
push eax
push str.Description___s
push 0x450638
xor eax, eax
call fcn.0041ee40
add esp, 0xc
cmp byte [edi + 0x3c], bl
jne 0x40a6f8
cmp dword [esp + 0xa4], esi
mov eax, dword [esp + 0x90]
jae 0x40a613
lea eax, [esp + 0x90]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esp + 0xc0], esi
mov ecx, dword [esp + 0xac]
jae 0x40a636
lea ecx, [esp + 0xac]
cmp dword [esp + 0x130], esi
mov edi, dword [esp + 0x11c]
jae 0x40a64d
lea edi, [esp + 0x11c]
cmp dword [esp + 0x114], esi
mov edx, dword [esp + 0x100]
jae 0x40a664
lea edx, [esp + 0x100]
cmp dword [esp + 0xa4], esi
mov eax, dword [esp + 0x90]
jae 0x40a67b
lea eax, [esp + 0x90]
cmp dword [esp + 0xdc], esi
mov esi, dword [esp + 0xc8]
jae 0x40a692
lea esi, [esp + 0xc8]
push edi
push eax
call fcn.0041b000
mov esi, eax
add esp, 8
cmp esi, ebx
jge 0x40a876
push esi
push str.Shortcut_error_0x_X
push 0x450638
mov eax, 2
call fcn.0041ee40
mov ecx, dword [esp + 0x28]
mov al, byte [ecx + 0x3d]
add esp, 0xc
cmp al, bl
je 0x40a6cd
xor esi, esi
jmp 0x40a6d3
and esi, 0xffff
cmp al, bl
mov dword [ecx + 0x38], esi
jne 0x40a6f8
push 0x7f01
push 1
xor edx, edx
push 0x80
push 0x7da
lea ecx, [edx + 0xa]
call fcn.00423c90
add esp, 0x10
mov esi, 7
sub dword [0x450658], 1
mov ecx, dword [esp + 0x1c]
cmp dword [ecx + 0x38], ebx
mov edi, 8
sete byte [esp + 0x1b]
cmp dword [esp + 0xf8], edi
jb 0x40a72e
mov edx, dword [esp + 0xe4]
push edx
call fcn.004286d5
add esp, 4
cmp dword [esp + 0x14c], edi
mov dword [esp + 0xf8], esi
mov dword [esp + 0xf4], ebx
mov word [esp + 0xe4], bx
jb 0x40a75d
mov eax, dword [esp + 0x138]
push eax
call fcn.004286d5
add esp, 4
cmp dword [esp + 0xc0], edi
mov dword [esp + 0x14c], esi
mov dword [esp + 0x148], ebx
mov word [esp + 0x138], bx
jb 0x40a78c
mov ecx, dword [esp + 0xac]
push ecx
call fcn.004286d5
add esp, 4
cmp dword [esp + 0x130], edi
mov dword [esp + 0xc0], esi
mov dword [esp + 0xbc], ebx
mov word [esp + 0xac], bx
jb 0x40a7bb
mov edx, dword [esp + 0x11c]
push edx
call fcn.004286d5
add esp, 4
cmp dword [esp + 0x114], edi
mov dword [esp + 0x130], esi
mov dword [esp + 0x12c], ebx
mov word [esp + 0x11c], bx
jb 0x40a7ea
mov eax, dword [esp + 0x100]
push eax
call fcn.004286d5
add esp, 4
cmp dword [esp + 0xdc], edi
mov dword [esp + 0x114], esi
mov dword [esp + 0x110], ebx
mov word [esp + 0x100], bx
jb 0x40a819
mov ecx, dword [esp + 0xc8]
push ecx
call fcn.004286d5
add esp, 4
cmp dword [esp + 0xa4], edi
mov dword [esp + 0xdc], esi
mov dword [esp + 0xd8], ebx
mov word [esp + 0xc8], bx
jb 0x40a848
mov edx, dword [esp + 0x90]
push edx
call fcn.004286d5
add esp, 4
mov al, byte [esp + 0x1b]
mov ecx, dword [esp + 0x16c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x150]
xor ecx, esp
call fcn.00426d9a
add esp, 0x164
ret 4
cmp dword [esp + 0xf4], ebx
je 0x40a8b7
mov ecx, dword [esp + 0xe4]
mov eax, 8
cmp dword [esp + 0xf8], eax
jae 0x40a89b
lea ecx, [esp + 0xe4]
cmp dword [esp + 0xa4], eax
mov esi, dword [esp + 0x90]
jae 0x40a8b2
lea esi, [esp + 0x90]
call fcn.004142e0
push 1
lea ecx, [esp + 0x154]
push str.mui_d
push ecx
mov dword [esp + 0x2c], 1
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea edx, [esp + 0x70]
push edx
push ebp
lea ecx, [esp + 0x158]
call fcn.00406dd0
mov byte [esp + 0x174], 7
cmp dword [esp + 0x84], ebx
je 0x40aa49
mov dword [esp + 0x40], 0x3b
lea eax, [esp + 0x40]
push eax
mov ebx, 1
xor eax, eax
lea edx, [esp + 0x74]
call fcn.00403520
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40a9bd
push 0xffffffffffffffff
lea edx, [esp + 0x74]
lea ecx, [ebx + 1]
push edx
lea esi, [esp + 0x5c]
call fcn.00414990
mov edi, eax
push ebx
lea eax, [esp + 0x74]
push eax
xor ecx, ecx
lea esi, [esp + 0x2c]
mov byte [esp + 0x17c], 8
call fcn.00414990
mov ebx, 8
mov byte [esp + 0x174], 9
cmp dword [edi + 0x18], ebx
jb 0x40a96b
mov ecx, dword [edi + 4]
jmp 0x40a96e
lea ecx, [edi + 4]
cmp dword [eax + 0x18], ebx
jb 0x40a978
mov eax, dword [eax + 4]
jmp 0x40a97b
add eax, 4
mov esi, eax
call fcn.004142e0
cmp dword [esp + 0x3c], ebx
jb 0x40a995
mov ecx, dword [esp + 0x28]
push ecx
call fcn.004286d5
add esp, 4
xor eax, eax
cmp dword [esp + 0x6c], ebx
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], eax
mov word [esp + 0x28], ax
jb 0x40a9e1
mov edx, dword [esp + 0x58]
push edx
call fcn.004286d5
add esp, 4
jmp 0x40a9e1
lea eax, [esp + 0x150]
push eax
push str.Badly_formed_MUI_name_on__s
push 0x450638
mov eax, 2
call fcn.0041ee40
add esp, 0xc
mov ebx, 8
add dword [esp + 0x20], 1
mov byte [esp + 0x174], 6
cmp dword [esp + 0x88], ebx
jb 0x40aa04
mov ecx, dword [esp + 0x74]
push ecx
call fcn.004286d5
add esp, 4
mov edx, dword [esp + 0x20]
push edx
lea eax, [esp + 0x154]
push str.mui_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [esp + 0x70]
push ecx
push ebp
lea ecx, [esp + 0x158]
call fcn.00406dd0
mov byte [esp + 0x174], 7
cmp dword [esp + 0x84], 0
jne 0x40a906
xor ebx, ebx
mov edi, 8
cmp dword [esp + 0x88], edi
jb 0x40aa64
mov edx, dword [esp + 0x74]
push edx
call fcn.004286d5
add esp, 4
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov byte [esp + 0x174], 0xa
push 5
push 0x445100
lea esi, [esp + 0x78]
mov dword [esp + 0x90], 7
mov dword [esp + 0x8c], ebx
mov word [esp + 0x7c], bx
call fcn.00404120
mov byte [esp + 0x174], 0xb
cmp dword [esp + 0xa4], edi
mov ebx, dword [esp + 0x90]
jae 0x40aabe
lea ebx, [esp + 0x90]
lea eax, [esp + 0x70]
push eax
lea esi, [esp + 0x28]
call fcn.004196a0
add esp, 4
push eax
lea esi, [esp + 0x48]
mov byte [esp + 0x178], 0xc
call fcn.00414a70
mov esi, 8
cmp dword [esp + 0x3c], esi
jb 0x40aaf9
mov ecx, dword [esp + 0x28]
push ecx
call fcn.004286d5
add esp, 4
xor ebx, ebx
mov byte [esp + 0x174], 0xa
cmp dword [esp + 0x88], esi
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], ebx
mov word [esp + 0x28], bx
jb 0x40ab2a
mov edx, dword [esp + 0x74]
push edx
call fcn.004286d5
add esp, 4
lea eax, [esp + 0x54]
push eax
push ebp
mov ecx, 0x444e08
call fcn.00406dd0
mov edi, eax
mov byte [esp + 0x174], 0xd
push 0xa
push str.usequence
lea esi, [esp + 0x78]
mov dword [esp + 0x90], 7
mov dword [esp + 0x8c], ebx
mov word [esp + 0x7c], bx
call fcn.00404120
push edi
mov ecx, esi
push ecx
lea edi, [esp + 0x2c]
mov byte [esp + 0x17c], 0xe
call fcn.004195f0
add esp, 8
push eax
lea esi, [esp + 0x48]
mov byte [esp + 0x178], 0xf
call fcn.00414a70
cmp dword [esp + 0x3c], 8
jb 0x40aba9
mov edx, dword [esp + 0x28]
push edx
call fcn.004286d5
add esp, 4
mov edi, 8
cmp dword [esp + 0x88], edi
mov esi, 7
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], ebx
mov word [esp + 0x28], bx
jb 0x40abd6
mov eax, dword [esp + 0x74]
push eax
call fcn.004286d5
add esp, 4
mov byte [esp + 0x174], 0xa
cmp dword [esp + 0x6c], edi
mov dword [esp + 0x88], esi
mov dword [esp + 0x84], ebx
mov word [esp + 0x74], bx
jb 0x40ac04
mov ecx, dword [esp + 0x58]
push ecx
call fcn.004286d5
add esp, 4
lea edx, [esp + 0x54]
push edx
push ebp
mov ecx, 0x444d10
call fcn.00406dd0
mov edi, eax
mov byte [esp + 0x174], 0x10
push 6
push str.group
lea esi, [esp + 0x78]
mov dword [esp + 0x90], 7
mov dword [esp + 0x8c], ebx
mov word [esp + 0x7c], bx
call fcn.00404120
push edi
mov eax, esi
push eax
lea edi, [esp + 0x2c]
mov byte [esp + 0x17c], 0x11
call fcn.004195f0
add esp, 8
push eax
lea esi, [esp + 0x48]
mov byte [esp + 0x178], 0x12
call fcn.00414a70
cmp dword [esp + 0x3c], 8
jb 0x40ac83
mov ecx, dword [esp + 0x28]
push ecx
call fcn.004286d5
add esp, 4
mov esi, 8
cmp dword [esp + 0x88], esi
mov edi, 7
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ebx
mov word [esp + 0x28], bx
jb 0x40acb0
mov edx, dword [esp + 0x74]
push edx
call fcn.004286d5
add esp, 4
mov byte [esp + 0x174], 0xa
cmp dword [esp + 0x6c], esi
mov dword [esp + 0x88], edi
mov dword [esp + 0x84], ebx
mov word [esp + 0x74], bx
jb 0x40acde
mov eax, dword [esp + 0x58]
push eax
call fcn.004286d5
add esp, 4
mov ecx, dword [esp + 0x1c]
push str.File
push ecx
lea ecx, [esp + 0x4c]
call fcn.00410de0
mov eax, dword [esp + 0x48]
cmp eax, ebx
je 0x40ad1e
mov edx, dword [esp + 0x40]
mov edi, dword [esp + 0x4c]
push edx
call fcn.0041a700
mov eax, dword [esp + 0x4c]
add esp, 4
push eax
call fcn.004286d5
add esp, 4
xor ebx, ebx
jmp 0x40a6f8
xor ebx, ebx
mov esi, edi
jmp 0x40a6fd