Function at 0x413080
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push 0x30
xor ebx, ebx
mov dword [ebp - 0x70], edx
lea eax, [ebp - 0x38]
mov dword [ebp - 0x74], 0
mov edi, ecx
mov dword [ebp - 0x78], 0
xorps xmm0, xmm0
mov dword [ebp - 0x6c], edi
push ebx
push eax
movq qword [ebp - 0x84], xmm0
xor esi, esi
mov dword [ebp - 0x64], 0
call fcn.0042a4e0
mov al, byte [ebp + 0xc]
add esp, 0xc
shr al, 2
not al
mov byte [ebp - 0x39], bl
and al, 1
mov byte [ebp + 0xc], al
mov eax, dword [edi + 8]
shl eax, 3
push eax
push ebx
push dword [0x45764c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x60], eax
test eax, eax
je 0x413b0a
mov edi, dword [edi]
xor edx, edx
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x50], edx
cmp dword [eax + 8], edx
jbe 0x413276
mov ax, word [ebp - 0x80]
lea ecx, [edi - 0x54]
mov dword [ebp - 0x54], ecx
mov word [ebp - 0x42], ax
mov dword [ebp - 0x58], esi
test edx, edx
je 0x413256
mov esi, dword [edi + 0x68]
cmp esi, dword [ecx + 0x38]
jne 0x413256
mov ecx, dword [ecx]
add esi, esi
mov eax, dword [edi + 0x30]
cmp esi, 0xfffe
mov dword [0x45641c], eax
mov dword [0x456414], ecx
mov ecx, 0xfffe
movzx eax, si
cmova eax, ecx
movzx eax, ax
mov word [0x456410], ax
mov word [0x456418], ax
cmp ax, cx
jae 0x413193
push 1
push 0x456410
push 0x456418
call dword [0x457674]
mov edx, dword [ebp - 0x50]
movzx eax, al
test eax, eax
jne 0x4131fa
jmp 0x413256
push 1
push 0x456410
push 0x456418
call dword [0x457674]
test al, al
je 0x413253
movzx edx, word [0x456418]
mov eax, dword [0x45641c]
mov ecx, edx
shr ecx, 1
sub esi, edx
lea eax, [eax + ecx*2]
movzx ecx, word [0x456410]
mov dword [0x45641c], eax
mov eax, dword [0x456414]
shr ecx, 1
lea eax, [eax + ecx*2]
mov dword [0x456414], eax
cmp esi, 0xfffe
jae 0x4131f3
mov word [0x456410], si
mov word [0x456418], si
test esi, esi
jne 0x413193
mov edx, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x4c]
mov esi, dword [edi + 0x64]
cmp esi, dword [ebp - 0x58]
mov eax, dword [edi + 0x3c]
cmovbe esi, dword [ebp - 0x58]
cmp eax, ebx
cmovbe eax, ebx
mov ebx, dword [edi + 0x6c]
cmp ebx, eax
cmovbe ebx, eax
inc word [ecx + 4]
mov eax, dword [edi + 0x68]
cmp eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x54]
cmovbe eax, dword [ebp - 0x64]
inc edx
mov dword [ebp - 0x64], eax
add ecx, 0x84
mov eax, dword [ebp - 0x6c]
add edi, 0x84
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x54], ecx
cmp edx, dword [eax + 8]
mov eax, dword [ebp - 0x64]
jb 0x413124
mov di, word [ebp - 0x42]
jmp 0x41327c
mov edx, dword [ebp - 0x50]
mov si, word [ebp - 0x42]
mov ecx, dword [ebp - 0x60]
movzx eax, si
lea ecx, [ecx + eax*8]
xor eax, eax
inc si
mov dword [ecx], edi
mov dword [ebp - 0x4c], ecx
mov word [ecx + 4], ax
mov word [ebp - 0x42], si
jmp 0x4131fd
mov di, word [ebp - 0x80]
xor eax, eax
add eax, 8
mov dword [ebp - 0x64], eax
add eax, eax
push eax
push 0
push dword [0x45764c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x5c], eax
test eax, eax
je 0x413aae
mov dword [ebp - 0x74], eax
lea eax, [ebx + esi]
mov ebx, dword [sym.imp.KERNEL32.dll_HeapAlloc]
lea eax, [eax*2 + 0x14]
push eax
push 0
push dword [0x45764c]
call ebx
mov dword [ebp - 0x78], eax
test eax, eax
je 0x413aae
push 0x2000
push 0
push dword [0x45764c]
call ebx
mov esi, eax
xor ebx, ebx
mov dword [ebp - 0x48], esi
test esi, esi
je 0x413ab0
movzx eax, di
mov edx, 0x1000
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x7c], edx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x50], eax
test eax, eax
je 0x4136b0
mov esi, dword [ebp - 0x60]
nop word [eax + eax]
mov eax, dword [esi + ebx*8]
push dword [eax + 0x20]
push str.__s__n
call fcn.00428ca0
movzx eax, word [esi + ebx*8 + 4]
add esp, 8
mov ebx, dword [esi + ebx*8]
mov dword [ebp - 0x68], eax
test eax, eax
je 0x413693
add ebx, 0x7a
mov dword [ebp - 0x4c], ebx
nop dword [eax]
movzx edx, word [ebx]
mov edi, 0x4575a4
mov eax, edx
and eax, 0x200
or eax, 0x2000
shr eax, 8
mov ecx, eax
or ecx, 4
cmp dword [ebx - 0x36], 0
cmovne ecx, eax
mov esi, ecx
or esi, 0x800
and edx, 0x2000
cmove esi, ecx
xor cl, cl
xor eax, eax
mov word [0x4575a4], ax
nop
mov eax, 0xcccccccd
sub edi, 2
mul esi
inc cl
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
sub esi, eax
add esi, 0x30
mov word [edi], si
mov esi, edx
test esi, esi
jne 0x413380
cmp cl, 0x18
jbe 0x4133b1
push 0x6f
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x4133ce
movzx eax, cl
inc cl
mov dword [0x457638], eax
movzx eax, cl
add eax, eax
push eax
lea eax, [ebp - 0x38]
push edi
push eax
call fcn.0043c9e0
add esp, 0xc
lea eax, [ebp - 0x38]
push eax
push dword [ebx - 0x76]
push dword [ebx - 0x46]
push str._s___s____s_n
call fcn.00428ca0
mov ax, word [ebx]
add esp, 0x10
and ax, 7
movzx eax, ax
mov dword [ebp - 0x80], eax
test ax, ax
je 0x413678
cmp byte [ebp + 0x10], 0
je 0x413413
mov eax, 0x100
test word [ebx - 2], ax
jne 0x413413
mov eax, 1
jmp 0x413415
xor eax, eax
push dword [ebp - 0x64]
mov edx, dword [ebx - 0x12]
push ecx
mov ecx, dword [ebx - 0x4a]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.0040bea0
add esp, 0x10
mov byte [ebp - 0x41], al
test al, al
je 0x413aa9
mov ecx, dword [ebx - 0x3e]
mov edx, dword [0x457634]
add ecx, dword [ebx - 0xe]
add edx, 0x92
mov esi, dword [ebp - 0x40]
lea ecx, [edx + ecx*2]
cmp ecx, esi
jb 0x413491
mov edi, dword [ebp - 0x7c]
lea eax, [edi*4 + 0x40096]
push eax
push dword [ebp - 0x54]
push 0
push dword [0x45764c]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
test eax, eax
je 0x413aa9
mov edx, dword [ebp - 0x48]
add esi, edi
sub edx, dword [ebp - 0x54]
sar edx, 1
add edi, edi
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x7c], edi
lea edx, [eax + edx*2]
jmp 0x413494
mov edx, dword [ebp - 0x48]
mov edi, edx
mov dword [ebp - 0x88], edx
mov ecx, 0x1e
mov esi, str._tHKLM__SOFTWAREMicrosoftWindowsCurrentVersionRenameFiles_
rep movsd dword es:[edi], dword [esi]
add edx, 0x7a
mov dword [ebp - 0x48], edx
movsw word es:[edi], word [esi]
mov eax, dword [ebx - 0x3e]
add eax, eax
push eax
push dword [ebx - 0x76]
push edx
call fcn.0043c9e0
mov edi, dword [ebx - 0x3e]
add esp, 0xc
mov ecx, dword [ebp - 0x48]
movq xmm0, qword [0x448c2c]
movq qword [ecx + edi*2], xmm0
mov ax, word [0x448c34]
lea ecx, [ecx + edi*2]
mov word [ecx + 8], ax
add ecx, 0xa
mov eax, dword [0x457634]
mov dword [ebp - 0x48], ecx
lea esi, [eax + eax]
push esi
push dword [ebp - 0x5c]
push ecx
call fcn.0043c9e0
mov ecx, dword [ebp - 0x48]
mov eax, 0xffffffbe
sub eax, edi
add ecx, esi
sub eax, dword [0x457634]
add esp, 0xc
add dword [ebp - 0x40], eax
cmp byte [ebp - 0x41], 3
mov dword [ebp - 0x48], ecx
jne 0x413535
push dword [ebp - 0x5c]
push 0
push dword [0x45764c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x5c], eax
mov eax, dword [0x448b74]
mov dword [ecx], eax
movzx eax, word [0x448b78]
mov word [ecx + 4], ax
add ecx, 6
mov eax, dword [ebx - 0x3e]
mov dword [ebp - 0x48], ecx
lea eax, [eax*2 + 0x7a]
push eax
push dword [ebp - 0x88]
push ecx
call fcn.0043c9e0
mov ebx, dword [ebx - 0x3e]
add esp, 0xc
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x4c]
lea esi, [eax + ebx*2]
mov eax, dword [0x448b7c]
mov dword [esi + 0x7a], eax
movzx eax, word [0x448b80]
mov word [esi + 0x7e], ax
sub esi, 0xffffff80
mov eax, dword [ecx - 0xe]
add eax, eax
push eax
push dword [ecx - 0x46]
push esi
call fcn.0043c9e0
mov ecx, dword [ebp - 0x4c]
add esp, 0xc
mov eax, dword [0x448c38]
mov edi, dword [ecx - 0xe]
mov dword [esi + edi*2], eax
mov eax, dword [0x448c3c]
mov dword [esi + edi*2 + 4], eax
mov eax, dword [ecx - 0xe]
lea esi, [esi + edi*2]
add eax, eax
add esi, 8
push eax
push dword [ecx - 0x46]
push esi
call fcn.0043c9e0
mov ecx, dword [ebp - 0x4c]
add esp, 0xc
sub dword [ebp - 0x40], edi
mov edi, dword [ebp - 0x40]
mov eax, dword [ecx - 0xe]
sub edi, eax
sub edi, ebx
xor bl, bl
mov dword [ebp - 0x40], edi
mov edi, 0xa
lea ecx, [esi + eax*2]
mov eax, 0x2c
mov word [ebp - 0x38], ax
mov esi, 0x4575a4
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x48], ecx
xor ecx, ecx
movzx eax, ax
mov word [0x4575a4], cx
movzx eax, ax
xor edx, edx
div edi
sub esi, 2
inc bl
movzx eax, ax
lea ecx, [edx + 0x30]
mov word [esi], cx
test ax, ax
jne 0x413607
cmp bl, 0x17
jbe 0x413630
push 0x6f
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x41364d
movzx eax, bl
inc bl
mov dword [0x457638], eax
movzx eax, bl
add eax, eax
push eax
lea eax, [ebp - 0x36]
push esi
push eax
call fcn.0043c9e0
add esp, 0xc
mov esi, dword [ebp - 0x48]
mov eax, dword [ebp - 0x38]
add dword [ebp - 0x40], 0xffffffb4
mov ebx, dword [ebp - 0x4c]
mov dword [esi], eax
mov eax, dword [0x448b74]
mov dword [esi + 4], eax
mov ax, word [0x448b78]
mov word [esi + 8], ax
add esi, edi
xor eax, eax
mov dword [ebp - 0x48], esi
mov word [esi], ax
mov eax, dword [ebp - 0x68]
add ebx, 0x84
dec eax
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x68], eax
test eax, eax
jne 0x413340
mov esi, dword [ebp - 0x60]
push 0x448c44
call fcn.00428ca0
mov ebx, dword [ebp - 0x58]
add esp, 4
inc ebx
mov dword [ebp - 0x58], ebx
cmp ebx, dword [ebp - 0x50]
jb 0x413310
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x68], 0
cmp dword [eax + 8], 0
mov ecx, dword [eax]
jbe 0x413899
add ecx, 4
mov dword [ebp - 0x40], ecx
nop dword [eax]
cmp byte [ebp + 0xc], 0
je 0x413835
mov edx, dword [ebp - 0x70]
mov eax, dword [edx + 8]
test eax, eax
je 0x41387d
mov edx, dword [edx]
xor esi, esi
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x4c], edx
test eax, eax
je 0x41387d
mov eax, dword [ebp - 0x70]
nop dword [eax]
movzx ebx, word [edx + 0x38]
mov edi, dword [edx + 0x3c]
test ebx, ebx
je 0x413780
nop dword [eax + eax]
movzx esi, word [edi]
cmp esi, dword [ecx + 0x38]
jne 0x41376f
mov ecx, dword [ecx]
add esi, esi
mov eax, dword [edi + 4]
cmp esi, 0xfffe
mov dword [0x45641c], eax
mov dword [0x456414], ecx
mov ecx, 0xfffe
movzx eax, si
cmova eax, ecx
movzx eax, ax
mov word [0x456410], ax
mov word [0x456418], ax
cmp ax, cx
jae 0x4137a0
push 1
push 0x456410
push 0x456418
call dword [0x457674]
movzx eax, al
test eax, eax
jne 0x413800
mov ecx, dword [ebp - 0x40]
add edi, 0x18
sub ebx, 1
jne 0x413710
mov edx, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x58]
mov eax, dword [ebp - 0x70]
inc esi
add edx, 0x44
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x4c], edx
cmp esi, dword [eax + 8]
jb 0x413700
jmp 0x41387d
push 1
push 0x456410
push 0x456418
call dword [0x457674]
test al, al
je 0x41376c
movzx edx, word [0x456418]
mov eax, dword [0x45641c]
mov ecx, edx
shr ecx, 1
sub esi, edx
lea eax, [eax + ecx*2]
movzx ecx, word [0x456410]
mov dword [0x45641c], eax
mov eax, dword [0x456414]
shr ecx, 1
lea eax, [eax + ecx*2]
mov dword [0x456414], eax
cmp esi, 0xfffe
jae 0x4137fc
mov word [0x456410], si
mov word [0x456418], si
test esi, esi
jne 0x4137a0
mov ecx, dword [ebp - 0x40]
mov eax, 0x100
test word [ecx + 0x74], ax
mov eax, dword [ebp - 0x4c]
je 0x413823
mov byte [eax + 0x29], 1
mov ax, word [eax + 0x2a]
mov word [ecx + 0x7c], ax
mov byte [ecx + 0x7e], 1
jmp 0x41387d
mov byte [eax + 0x28], 1
mov ax, word [eax + 0x2a]
mov word [ecx + 0x7c], ax
mov byte [ecx + 0x7e], 1
jmp 0x41387d
mov eax, dword [ecx + 0x60]
mov ebx, dword [ebp - 0x78]
add eax, eax
push eax
push dword [ecx + 0x28]
push ebx
call fcn.0043c9e0
mov ecx, dword [ebp - 0x40]
add esp, 0xc
mov eax, dword [ecx + 0x68]
lea eax, [eax*2 + 2]
push eax
mov eax, dword [ecx + 0x60]
push dword [ecx + 0x30]
lea eax, [ebx + eax*2]
push eax
call fcn.0043c9e0
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, dword [ebp - 0x40]
cmp eax, 0xffffffff
setne al
mov byte [ecx + 0x7e], al
mov eax, dword [ebp - 0x68]
add ecx, 0x84
mov edx, dword [ebp - 0x6c]
inc eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x40], ecx
cmp eax, dword [edx + 8]
jb 0x4136d0
mov cx, word [ebp + 8]
cmp cx, 9
jne 0x4138aa
mov eax, 0x448c48
jmp 0x4138bb
cmp cx, 6
mov eax, str._SourceDisksNames.ia64__n
mov edx, str._SourceDisksNames__n
cmovne eax, edx
push eax
call fcn.00428ca0
add esp, 4
cmp byte [ebp + 0xc], 0
je 0x41391f
mov ebx, dword [ebp - 0x70]
xor edi, edi
mov esi, dword [ebx]
cmp dword [ebx + 8], edi
jbe 0x413938
add esi, 0x29
lea edx, [edi + 2]
nop dword [eax]
cmp byte [esi - 1], 0
jne 0x4138eb
cmp byte [esi], 0
je 0x413914
mov eax, dword [esi - 0x21]
xor ecx, ecx
cmp word [eax], 0x23
cmove ecx, edx
add ecx, eax
movzx eax, word [esi + 1]
push ecx
push dword [esi - 0x25]
push eax
push str._u__s____s____i386__n
call fcn.00428ca0
add esp, 0x10
mov edx, 2
inc edi
add esi, 0x44
cmp edi, dword [ebx + 8]
jb 0x4138e0
jmp 0x413938
push str.WIN51
push str.Install_Files
push 1
push str._u__s____s____i386__n
call fcn.00428ca0
add esp, 0x10
push 0x448c44
call fcn.00428ca0
add esp, 4
push str._DestinationDirs__n
call fcn.00428ca0
xor edi, edi
add esp, 4
cmp dword [ebp - 0x50], edi
jbe 0x4139e1
mov ecx, 0x101
cmp byte [ebp + 0x10], 0
mov eax, dword [ebp - 0x60]
mov esi, dword [eax + edi*8]
mov eax, 0x100
je 0x41397c
mov edx, eax
test word [esi + 0x78], dx
cmove eax, ecx
push dword [ebp - 0x64]
mov edx, dword [esi + 0x68]
push ecx
mov ecx, dword [esi + 0x30]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.0040bea0
add esp, 0x10
mov byte [ebp - 0x41], al
test al, al
je 0x413aa9
mov ebx, dword [ebp - 0x5c]
push ebx
push dword [0x457634]
push dword [esi + 0x20]
push dword [esi + 0x58]
push str._.s___.s_n
call fcn.00428ca0
add esp, 0x14
cmp byte [ebp - 0x41], 3
jne 0x4139d6
push ebx
push 0
push dword [0x45764c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x5c], eax
inc edi
mov ecx, 0x101
cmp edi, dword [ebp - 0x50]
jb 0x413962
push 0x448c44
call fcn.00428ca0
add esp, 4
push str._SourceDisksFiles__n
call fcn.00428ca0
xor ebx, ebx
add esp, 4
mov dword [ebp - 0x58], ebx
cmp dword [ebp - 0x50], ebx
jbe 0x413a7e
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x50]
nop dword [eax + eax]
movzx edi, word [eax + ebx*8 + 4]
mov esi, dword [eax + ebx*8]
test edi, edi
je 0x413a76
mov bl, byte [ebp + 0xc]
add esi, 4
cmp byte [esi + 0x7e], 0
jne 0x413a42
push str.Error_Source_File_Not_Found
push 0
push 1
push dword [esi]
push str.___s___u____u____s_n
call fcn.00428ca0
add esp, 0x14
jmp 0x413a62
mov eax, dword [esi + 0x70]
push eax
test bl, bl
je 0x413a51
movzx eax, word [esi + 0x7c]
push eax
jmp 0x413a53
push 1
push dword [esi]
push str._s___u____u_n
call fcn.00428ca0
add esp, 0x10
add esi, 0x84
sub edi, 1
jne 0x413a22
mov ebx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x50]
inc ebx
mov dword [ebp - 0x58], ebx
cmp ebx, ecx
jb 0x413a10
push 0x448c44
call fcn.00428ca0
mov ecx, dword [ebp - 0x48]
add esp, 4
mov ebx, dword [ebp - 0x54]
sub ecx, ebx
sar ecx, 1
push ecx
push str.cchStr__u_n
call fcn.00428ca0
add esp, 8
mov byte [ebp - 0x39], 1
jmp 0x413ab0
mov ebx, dword [ebp - 0x54]
jmp 0x413ab0
xor ebx, ebx
push dword [ebp - 0x60]
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [0x45764c]
call esi
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x413ad5
push eax
push 0
push dword [0x45764c]
call esi
mov eax, dword [ebp - 0x78]
test eax, eax
je 0x413ae7
push eax
push 0
push dword [0x45764c]
call esi
test ebx, ebx
je 0x413af6
push ebx
push 0
push dword [0x45764c]
call esi
mov al, byte [ebp - 0x39]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00428cd6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00428cd6
mov esp, ebp
pop ebp
ret