Function at 0x422d60
Capabilities:
Copy file
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4835d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x45c
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov dword [esp + 0x2c], ebp
call fcn.00441cf0
test eax, eax
je 0x422e1f
push 0
lea eax, [esp + 0x6c]
push str.CINIFile::InstallMiscINIFiles_n
push eax
call fcn.00465850
mov edi, str.ENTRY:
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x26c]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x26c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x68]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00441c80
mov ecx, eax
call fcn.00441d20
lea eax, [esp + 0x26c]
push eax
call fcn.00441c80
mov ecx, eax
call fcn.00442090
mov edi, dword [esp + 0x47c]
mov ecx, ebp
mov dword [esp + 0x10], 0
mov eax, dword [edi + 4]
push eax
call fcn.00438c70
mov ecx, dword [edi + 0x14]
lea esi, [edi + 0x14]
mov ebx, 1
mov eax, dword [ecx - 8]
test eax, eax
je 0x423056
call fcn.00441cf0
test eax, eax
je 0x422e7e
mov edx, dword [esi]
lea eax, [esp + 0x68]
push edx
push str.DeviceINIInstallData__csHomolFileName___s
push eax
call fcn.00465850
add esp, 0xc
lea ecx, [esp + 0x68]
push ecx
call fcn.00441c80
mov ecx, eax
call fcn.00442090
mov eax, dword [edi + 0x18]
test eax, eax
jne 0x422ea8
mov eax, dword [esi]
push ebx
lea edx, [esp + 0x14]
push ebx
push edx
push eax
mov ecx, ebp
call fcn.0043f4c0
mov ecx, dword [esi]
push ebx
push ecx
lea ecx, [esp + 0x2c]
call fcn.00418b10
jmp 0x423056
cmp eax, ebx
jne 0x423056
mov eax, dword [0x4a6844]
mov dword [esp + 0x14], eax
mov dword [esp + 0x474], 0
mov dword [esp + 0x18], eax
lea edx, [esp + 0x68]
push 0x104
push edx
mov byte [esp + 0x47c], bl
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x5c
mov ecx, esi
call fcn.00474e5e
inc eax
mov ecx, esi
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00474de6
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x478], 2
call fcn.00475f95
lea ecx, [esp + 0x1c]
mov byte [esp + 0x474], bl
call fcn.00475ea8
push 0x49b19c
lea ecx, [esp + 0x34]
call fcn.00475f16
mov ebp, eax
lea ecx, [esp + 0x68]
mov byte [esp + 0x474], 3
push ecx
lea ecx, [esp + 0x38]
call fcn.00475f16
push ebp
lea edx, [esp + 0x2c]
push eax
push edx
mov byte [esp + 0x480], 4
call fcn.0047608b
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
push eax
push edx
mov byte [esp + 0x480], 5
call fcn.0047608b
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x478], 6
call fcn.00475f95
lea ecx, [esp + 0x1c]
mov byte [esp + 0x474], 5
call fcn.00475ea8
lea ecx, [esp + 0x28]
mov byte [esp + 0x474], 4
call fcn.00475ea8
lea ecx, [esp + 0x34]
mov byte [esp + 0x474], 3
call fcn.00475ea8
lea ecx, [esp + 0x30]
mov byte [esp + 0x474], bl
call fcn.00475ea8
mov eax, dword [esp + 0x18]
mov esi, dword [esi]
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov eax, dword [edi + 4]
push ebx
push eax
lea ecx, [esp + 0x40]
call fcn.00414230
lea ecx, [esp + 0x20]
push 4
push ecx
push 3
push str.COPY_CTY
push str.Region
lea ecx, [esp + 0x4c]
mov byte [esp + 0x488], 7
mov dword [esp + 0x34], ebx
call fcn.00414da0
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 8]
push ecx
push eax
push ebx
push str.CtyFileName
lea ecx, [esp + 0x48]
call fcn.00414d30
lea ecx, [esp + 0x38]
mov byte [esp + 0x474], bl
call fcn.00414250
lea ecx, [esp + 0x18]
mov byte [esp + 0x474], 0
call fcn.00475ea8
lea ecx, [esp + 0x14]
mov dword [esp + 0x474], 0xffffffff
call fcn.00475ea8
mov ebp, dword [esp + 0x2c]
mov eax, dword [edi + 0x28]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x42307d
push ebx
lea edx, [esp + 0x14]
push ebx
push edx
push eax
mov ecx, ebp
call fcn.0043f4c0
mov eax, dword [edi + 0x28]
push ebx
push eax
lea ecx, [esp + 0x2c]
call fcn.00418b10
call fcn.00441cf0
test eax, eax
je 0x423120
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x36c]
push ecx
push str.CINIFile::InstallMiscINIFiles_:_bRebootRequired___d_n
push edx
call fcn.00465850
mov edi, str.EXIT:
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x16c]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x16c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x36c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x16c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00441c80
mov ecx, eax
call fcn.00442090
call fcn.00441c80
mov ecx, eax
call fcn.00441d30
mov ecx, dword [esp + 0x46c]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x468
ret 4