Function at 0x45e0f0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b9e81
mov eax, dword fs:[0]
push eax
sub esp, 0x63c
mov eax, dword [0x6319d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x620], ecx
call fcn.0046d4f0
test eax, eax
je 0x45e1a4
push ebx
push str.KINIFile::ISRemoveWA_:_pszRootPath___s_n
push 0x68a5b0
call fcn.00599ee3
mov eax, dword [str.ENTRY:]
mov ecx, dword [0x5ccf7c]
mov dword [0x68a4b0], eax
mov eax, 0x68a5b0
mov dword [0x68a4b4], ecx
add esp, 0xc
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x45e160
mov edi, 0x68a4b0
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x45e171
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d500
push 0x68a4b0
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
xor edi, edi
mov dword [ebp - 0x638], edi
mov dword [ebp - 0x630], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x644], edi
mov dword [ebp - 0x63c], edi
mov dword [ebp - 0x62c], edi
mov dword [ebp - 0x624], edi
push ebx
lea ecx, [ebp - 0x644]
mov byte [ebp - 4], 2
call fcn.004048c0
mov edx, dword [ebp - 0x620]
mov eax, dword [edx + 0x20e8]
push eax
lea ecx, [ebp - 0x62c]
call fcn.004048c0
push 0x5cd28c
lea ecx, [ebp - 0x62c]
call fcn.00404960
mov ebx, dword [ebp - 0x644]
or esi, 0xffffffff
mov eax, ebx
push 0x5cd28c
push eax
call fcn.0059ade0
add esp, 8
cmp eax, edi
je 0x45e22c
sub eax, ebx
mov esi, eax
lea eax, [esi + ebx + 1]
jmp 0x45e210
cmp esi, 0xffffffff
je 0x45e28a
mov eax, dword [ebp - 0x63c]
inc esi
cmp esi, eax
jae 0x45e26a
add eax, 5
push eax
mov eax, dword [ebp - 0x640]
push edi
push eax
call fcn.00599fb0
mov ecx, dword [ebp - 0x640]
push esi
push ebx
push ecx
call fcn.0059ae70
mov eax, dword [ebp - 0x640]
add esp, 0x18
mov byte [eax + esi], 0
jmp 0x45e26c
mov eax, ebx
push eax
lea ecx, [ebp - 0x638]
call fcn.004048c0
mov edx, dword [ebp - 0x638]
push edx
lea ecx, [ebp - 0x62c]
call fcn.00404960
mov eax, dword [ebp - 0x62c]
push eax
lea ecx, [ebp - 0x638]
call fcn.004048c0
push str.SETUP.INI
lea ecx, [ebp - 0x638]
call fcn.00404960
mov edx, dword [ebp - 0x638]
lea ecx, [ebp - 0x420]
push ecx
mov ecx, dword [ebp - 0x620]
push str.ProductGUID
push str.Startup
push edx
call fcn.0045b740
test eax, eax
je 0x45e4a6
push edi
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x61c]
call fcn.0047aa50
lea eax, [ebp - 0x648]
push eax
lea ecx, [ebp - 0x218]
push ecx
push str.ProgramFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
lea ecx, [ebp - 0x61c]
mov dword [ebp - 0x648], 0x104
call fcn.0047b3d0
lea edi, [ebp - 0x218]
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x45e320
mov ecx, 0xa
mov esi, str.InstallShield_Installation_Information
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x420]
movsw word es:[edi], word [esi]
mov edx, eax
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x45e340
lea edi, [ebp - 0x218]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x45e350
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp - 0x218]
rep movsb byte es:[edi], byte [esi]
dec eax
nop
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x45e370
mov dx, word [0x5d83ec]
mov cl, byte [0x5d83ee]
mov word [eax], dx
mov byte [eax + 2], cl
xor eax, eax
lea ecx, [ecx]
mov cl, byte [ebp + eax - 0x218]
mov byte [ebp + eax - 0x31c], cl
inc eax
test cl, cl
jne 0x45e390
lea eax, [ebp - 0x31c]
dec eax
lea ebx, [ebx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x45e3b0
mov edx, dword [str.Setup.iss]
mov ecx, dword [0x5d84a4]
mov dword [eax], edx
mov dx, word [0x5d84a8]
mov dword [eax + 4], ecx
mov word [eax + 8], dx
mov eax, dword [ebp - 0x62c]
lea esi, [ebp - 0x114]
sub esi, eax
mov cl, byte [eax]
mov byte [esi + eax], cl
inc eax
test cl, cl
jne 0x45e3e2
lea eax, [ebp - 0x114]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x45e3f3
mov ecx, dword [str.SetupRemove.iss]
mov edx, dword [0x5d8494]
mov edi, dword [ebp - 0x620]
mov dword [eax], ecx
mov ecx, dword [0x5d8498]
mov dword [eax + 4], edx
mov edx, dword [0x5d849c]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
lea eax, [ebp - 0x114]
push eax
mov ecx, edi
call fcn.0045b1a0
test eax, eax
jne 0x45e48e
mov eax, dword [ebp - 0x62c]
lea esp, [esp]
mov cl, byte [eax]
mov byte [esi + eax], cl
inc eax
test cl, cl
jne 0x45e440
lea eax, [ebp - 0x114]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x45e451
mov ecx, dword [str.Uninstsetup.iss]
mov edx, dword [0x5d8484]
mov dword [eax], ecx
mov ecx, dword [0x5d8488]
mov dword [eax + 4], edx
mov edx, dword [0x5d848c]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
lea eax, [ebp - 0x114]
push eax
mov ecx, edi
call fcn.0045b1a0
test eax, eax
je 0x45e4a4
push 0
lea ecx, [ebp - 0x31c]
push ecx
lea edx, [ebp - 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
xor edi, edi
call fcn.0046d4f0
test eax, eax
je 0x45e526
push edi
push str.KINIFile::ISRemoveWA_n
push 0x68a3b0
call fcn.00599ee3
mov eax, dword [str.EXIT:]
mov ecx, dword [0x5ccefc]
mov dword [0x68a2b0], eax
mov eax, 0x68a3b0
mov dword [0x68a2b4], ecx
add esp, 0xc
mov ecx, eax
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x45e4e0
mov edi, 0x68a2b0
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x45e4f1
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0x68a2b0
rep movsb byte es:[edi], byte [esi]
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d510
xor edi, edi
mov esi, dword [ebp - 0x62c]
mov byte [ebp - 4], 1
cmp esi, edi
je 0x45e549
mov edx, dword [ebp - 0x628]
push edx
call fcn.004a6dca
push esi
call fcn.004a6dca
add esp, 8
mov byte [ebp - 4], 0
cmp ebx, edi
je 0x45e566
mov eax, dword [ebp - 0x640]
push eax
call fcn.004a6dca
push ebx
call fcn.004a6dca
add esp, 8
mov esi, dword [ebp - 0x638]
mov dword [ebp - 4], 0xffffffff
cmp esi, edi
je 0x45e58c
mov ecx, dword [ebp - 0x634]
push ecx
call fcn.004a6dca
push esi
call fcn.004a6dca
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00599ed4
mov esp, ebp
pop ebp
ret 4