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

Disassembly:
push 0xffffffffffffffff
push 0x442d38
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x4513e0]
xor eax, esp
mov dword [esp + 0x150], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4513e0]
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.00408280
lea ecx, [esp + 0xc4]
push ecx
xor ebx, ebx
push ebp
mov ecx, str.target
mov dword [esp + 0x17c], ebx
call fcn.00408280
lea edx, [esp + 0xfc]
push edx
push ebp
mov ecx, str.workingdir
mov byte [esp + 0x17c], 1
call fcn.00408280
lea eax, [esp + 0x118]
push eax
push ebp
mov ecx, 0x4476bc
mov byte [esp + 0x17c], 2
call fcn.00408280
lea ecx, [esp + 0xa8]
push ecx
push ebp
mov ecx, str.description
mov byte [esp + 0x17c], 3
call fcn.00408280
lea edx, [esp + 0x134]
push edx
push ebp
mov ecx, str.description_mui
mov byte [esp + 0x17c], 4
call fcn.00408280
lea eax, [esp + 0xe0]
push eax
push ebp
mov ecx, str.pathmui
mov byte [esp + 0x17c], 5
call fcn.00408280
mov byte [esp + 0x174], 6
call fcn.00423020
cmp eax, 0x6000100
jb 0x40b8a6
cmp eax, 0xffffffff
ja 0x40b8a6
cmp dword [esp + 0x148], ebx
je 0x40b8a6
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x13c]
lea ecx, [esp + 0xb0]
call fcn.00403500
mov eax, dword [ebp + 4]
push eax
push str.Shortcut
push str.__s____d_
push 0x4524d8
xor eax, eax
call fcn.0041eee0
add dword [0x4524f8], 1
mov eax, dword [esp + 0xa0]
mov esi, 8
add esp, 0x10
cmp dword [esp + 0xa4], esi
jae 0x40b8e6
lea eax, [esp + 0x90]
push eax
push str.Path___s
push 0x4524d8
xor eax, eax
call fcn.0041eee0
mov eax, dword [esp + 0xd4]
add esp, 0xc
cmp dword [esp + 0xdc], esi
jae 0x40b912
lea eax, [esp + 0xc8]
push eax
push str.Target___s
push 0x4524d8
xor eax, eax
call fcn.0041eee0
mov eax, dword [esp + 0xb8]
add esp, 0xc
cmp dword [esp + 0xc0], esi
jae 0x40b93e
lea eax, [esp + 0xac]
push eax
push str.Description___s
push 0x4524d8
xor eax, eax
call fcn.0041eee0
add esp, 0xc
cmp byte [edi + 0x3c], bl
jne 0x40ba5a
cmp dword [esp + 0xa4], esi
mov eax, dword [esp + 0x90]
jae 0x40b973
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 0x40b996
lea ecx, [esp + 0xac]
cmp dword [esp + 0x130], esi
mov edi, dword [esp + 0x11c]
jae 0x40b9ad
lea edi, [esp + 0x11c]
cmp dword [esp + 0x114], esi
mov edx, dword [esp + 0x100]
jae 0x40b9c4
lea edx, [esp + 0x100]
cmp dword [esp + 0xa4], esi
mov eax, dword [esp + 0x90]
jae 0x40b9db
lea eax, [esp + 0x90]
cmp dword [esp + 0xdc], esi
mov esi, dword [esp + 0xc8]
jae 0x40b9f2
lea esi, [esp + 0xc8]
push edi
push eax
call fcn.0041bb30
mov esi, eax
add esp, 8
cmp esi, ebx
jge 0x40bbd8
push esi
push str.Shortcut_error_0x_X
push 0x4524d8
mov eax, 2
call fcn.0041eee0
mov ecx, dword [esp + 0x28]
mov al, byte [ecx + 0x3d]
add esp, 0xc
cmp al, bl
je 0x40ba2d
xor esi, esi
jmp 0x40ba33
and esi, 0xffff
cmp al, bl
mov dword [ecx + 0x38], esi
jne 0x40ba5a
push 0x7f01
push 1
push 0x80
push 0x7da
xor edx, edx
mov ecx, 0xa
call fcn.004242b0
add esp, 0x10
mov esi, 7
sub dword [0x4524f8], 1
mov ecx, dword [esp + 0x1c]
cmp dword [ecx + 0x38], ebx
mov edi, 8
sete byte [esp + 0x1b]
cmp dword [esp + 0xf8], edi
jb 0x40ba90
mov edx, dword [esp + 0xe4]
push edx
call fcn.00429d64
add esp, 4
cmp dword [esp + 0x14c], edi
mov dword [esp + 0xf8], esi
mov dword [esp + 0xf4], ebx
mov word [esp + 0xe4], bx
jb 0x40babf
mov eax, dword [esp + 0x138]
push eax
call fcn.00429d64
add esp, 4
cmp dword [esp + 0xc0], edi
mov dword [esp + 0x14c], esi
mov dword [esp + 0x148], ebx
mov word [esp + 0x138], bx
jb 0x40baee
mov ecx, dword [esp + 0xac]
push ecx
call fcn.00429d64
add esp, 4
cmp dword [esp + 0x130], edi
mov dword [esp + 0xc0], esi
mov dword [esp + 0xbc], ebx
mov word [esp + 0xac], bx
jb 0x40bb1d
mov edx, dword [esp + 0x11c]
push edx
call fcn.00429d64
add esp, 4
cmp dword [esp + 0x114], edi
mov dword [esp + 0x130], esi
mov dword [esp + 0x12c], ebx
mov word [esp + 0x11c], bx
jb 0x40bb4c
mov eax, dword [esp + 0x100]
push eax
call fcn.00429d64
add esp, 4
cmp dword [esp + 0xdc], edi
mov dword [esp + 0x114], esi
mov dword [esp + 0x110], ebx
mov word [esp + 0x100], bx
jb 0x40bb7b
mov ecx, dword [esp + 0xc8]
push ecx
call fcn.00429d64
add esp, 4
cmp dword [esp + 0xa4], edi
mov dword [esp + 0xdc], esi
mov dword [esp + 0xd8], ebx
mov word [esp + 0xc8], bx
jb 0x40bbaa
mov edx, dword [esp + 0x90]
push edx
call fcn.00429d64
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.004289ca
add esp, 0x164
ret 4
cmp dword [esp + 0xf4], ebx
je 0x40bc19
mov ecx, dword [esp + 0xe4]
mov eax, 8
cmp dword [esp + 0xf8], eax
jae 0x40bbfd
lea ecx, [esp + 0xe4]
cmp dword [esp + 0xa4], eax
mov esi, dword [esp + 0x90]
jae 0x40bc14
lea esi, [esp + 0x90]
call fcn.00415410
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.00408280
mov byte [esp + 0x174], 7
cmp dword [esp + 0x84], ebx
je 0x40bdab
mov dword [esp + 0x40], 0x3b
lea eax, [esp + 0x40]
push eax
mov ebx, 1
xor eax, eax
lea edx, [esp + 0x74]
call fcn.004061d0
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40bd1f
push 0xffffffffffffffff
lea edx, [esp + 0x74]
lea ecx, [ebx + 1]
push edx
lea esi, [esp + 0x5c]
call fcn.00415910
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.00415910
mov ebx, 8
mov byte [esp + 0x174], 9
cmp dword [edi + 0x18], ebx
jb 0x40bccd
mov ecx, dword [edi + 4]
jmp 0x40bcd0
lea ecx, [edi + 4]
cmp dword [eax + 0x18], ebx
jb 0x40bcda
mov eax, dword [eax + 4]
jmp 0x40bcdd
add eax, 4
mov esi, eax
call fcn.00415410
cmp dword [esp + 0x3c], ebx
jb 0x40bcf7
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00429d64
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 0x40bd43
mov edx, dword [esp + 0x58]
push edx
call fcn.00429d64
add esp, 4
jmp 0x40bd43
lea eax, [esp + 0x150]
push eax
push str.Badly_formed_MUI_name_on__s
push 0x4524d8
mov eax, 2
call fcn.0041eee0
add esp, 0xc
mov ebx, 8
add dword [esp + 0x20], 1
mov byte [esp + 0x174], 6
cmp dword [esp + 0x88], ebx
jb 0x40bd66
mov ecx, dword [esp + 0x74]
push ecx
call fcn.00429d64
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.00408280
mov byte [esp + 0x174], 7
cmp dword [esp + 0x84], 0
jne 0x40bc68
xor ebx, ebx
mov edi, 8
cmp dword [esp + 0x88], edi
jb 0x40bdc6
mov edx, dword [esp + 0x74]
push edx
call fcn.00429d64
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 0x447530
lea esi, [esp + 0x78]
mov dword [esp + 0x90], 7
mov dword [esp + 0x8c], ebx
mov word [esp + 0x7c], bx
call fcn.004035b0
mov byte [esp + 0x174], 0xb
cmp dword [esp + 0xa4], edi
mov ebx, dword [esp + 0x90]
jae 0x40be20
lea ebx, [esp + 0x90]
lea eax, [esp + 0x70]
push eax
lea esi, [esp + 0x28]
call fcn.0041a1c0
add esp, 4
push eax
lea esi, [esp + 0x48]
mov byte [esp + 0x178], 0xc
call fcn.004159f0
mov esi, 8
cmp dword [esp + 0x3c], esi
jb 0x40be5b
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00429d64
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 0x40be8c
mov edx, dword [esp + 0x74]
push edx
call fcn.00429d64
add esp, 4
lea eax, [esp + 0x54]
push eax
push ebp
mov ecx, 0x447238
call fcn.00408280
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.004035b0
push edi
mov ecx, esi
push ecx
lea edi, [esp + 0x2c]
mov byte [esp + 0x17c], 0xe
call fcn.0041a110
add esp, 8
push eax
lea esi, [esp + 0x48]
mov byte [esp + 0x178], 0xf
call fcn.004159f0
cmp dword [esp + 0x3c], 8
jb 0x40bf0b
mov edx, dword [esp + 0x28]
push edx
call fcn.00429d64
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 0x40bf38
mov eax, dword [esp + 0x74]
push eax
call fcn.00429d64
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 0x40bf66
mov ecx, dword [esp + 0x58]
push ecx
call fcn.00429d64
add esp, 4
lea edx, [esp + 0x54]
push edx
push ebp
mov ecx, 0x447160
call fcn.00408280
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.004035b0
push edi
mov eax, esi
push eax
lea edi, [esp + 0x2c]
mov byte [esp + 0x17c], 0x11
call fcn.0041a110
add esp, 8
push eax
lea esi, [esp + 0x48]
mov byte [esp + 0x178], 0x12
call fcn.004159f0
cmp dword [esp + 0x3c], 8
jb 0x40bfe5
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00429d64
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 0x40c012
mov edx, dword [esp + 0x74]
push edx
call fcn.00429d64
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 0x40c040
mov eax, dword [esp + 0x58]
push eax
call fcn.00429d64
add esp, 4
mov ecx, dword [esp + 0x1c]
push str.File
push ecx
lea ecx, [esp + 0x4c]
call fcn.00411eb0
mov eax, dword [esp + 0x48]
cmp eax, ebx
je 0x40c080
mov edx, dword [esp + 0x40]
mov edi, dword [esp + 0x4c]
push edx
call fcn.0041b220
mov eax, dword [esp + 0x4c]
add esp, 4
push eax
call fcn.00429d64
add esp, 4
xor ebx, ebx
jmp 0x40ba5a
xor ebx, ebx
mov esi, edi
jmp 0x40ba5f