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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b7758
mov eax, dword fs:[0]
push eax
sub esp, 0x160
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 edi, ecx
mov dword [ebp - 0x158], edi
mov dword [ebp - 0x154], ebx
call fcn.0046d4f0
test eax, eax
je 0x4424ea
push 0
push str.CINIFile::InstallMiscINIFiles_n
push 0x66e4b0
call fcn.00599ee3
mov eax, dword [str.ENTRY:]
mov ecx, dword [0x5ccf7c]
mov dword [0x66e3b0], eax
mov eax, 0x66e4b0
mov dword [0x66e3b4], ecx
add esp, 0xc
mov ecx, eax
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4424a0
mov edi, 0x66e3b0
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4424b1
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 0x66e3b0
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
mov edi, dword [ebp - 0x158]
mov eax, dword [ebx + 4]
mov edx, dword [edi + 0x4cf8]
push 0
push 0
push eax
push edx
mov ecx, edi
mov dword [ebp - 0x148], 0
call fcn.0045f600
mov eax, dword [ebx + 0x14]
mov eax, dword [eax - 0xc]
lea esi, [ebx + 0x14]
test eax, eax
je 0x44282d
call fcn.0046d4f0
test eax, eax
je 0x44254a
mov ecx, dword [esi]
push ecx
push str.DeviceINIInstallData__csHomolFileName___s
push 0x66e2b0
call fcn.00599ee3
add esp, 0xc
push 0x66e2b0
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
mov eax, dword [ebx + 0x18]
test eax, eax
jne 0x442580
mov eax, dword [esi]
push 1
push 1
lea edx, [ebp - 0x148]
push edx
push str.TASKS
push eax
mov ecx, edi
call fcn.0046b7f0
mov ecx, dword [esi]
push 1
push ecx
lea ecx, [ebp - 0x141]
call fcn.00431510
jmp 0x44282d
cmp eax, 1
jne 0x44282d
call fcn.004a8620
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4425a3
push 0x80004005
call fcn.00401b60
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x150], eax
mov dword [ebp - 4], 0
call fcn.004a8620
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4425d6
push 0x80004005
call fcn.00401b60
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x15c], eax
push 0x104
lea ecx, [ebp - 0x114]
push ecx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov eax, dword [esi]
push 0x5c
push eax
call fcn.0059aa24
add esp, 8
test eax, eax
jne 0x442614
or eax, 0xffffffff
jmp 0x442616
sub eax, dword [esi]
inc eax
push eax
lea edx, [ebp - 0x14c]
push edx
mov ecx, esi
call fcn.004024f0
push eax
lea ecx, [ebp - 0x150]
mov byte [ebp - 4], 2
call fcn.00402af0
mov eax, dword [ebp - 0x14c]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44265c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x5cd28c
lea ecx, [ebp - 0x16c]
call fcn.00403380
mov edi, eax
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x160]
mov byte [ebp - 4], 3
call fcn.00403380
push edi
push eax
lea edx, [ebp - 0x164]
push edx
mov byte [ebp - 4], 4
call fcn.00402910
lea ecx, [ebp - 0x150]
push ecx
push eax
lea edx, [ebp - 0x14c]
mov bl, 5
push edx
mov byte [ebp - 4], bl
call fcn.00402910
add esp, 0x18
push eax
lea ecx, [ebp - 0x15c]
mov byte [ebp - 4], 6
call fcn.00402af0
mov eax, dword [ebp - 0x14c]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4426e7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x164]
add eax, 0xfffffff0
mov byte [ebp - 4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44270d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x160]
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x442733
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x16c]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x442759
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp - 0x15c]
mov esi, dword [esi]
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ecx, dword [ebp - 0x154]
mov eax, dword [ecx + 4]
push 1
push 1
push eax
lea ecx, [ebp - 0x140]
call fcn.00428c20
push 4
lea edx, [ebp - 0x168]
push edx
push 3
push str.COPY_CTY
push str.Region
lea ecx, [ebp - 0x140]
mov byte [ebp - 4], 7
mov dword [ebp - 0x168], 1
call fcn.004274b0
mov esi, dword [ebp - 0x150]
mov eax, dword [esi - 0xc]
push eax
push esi
push 1
push str.CtyFileName
lea ecx, [ebp - 0x140]
call fcn.00427440
lea ecx, [ebp - 0x140]
mov byte [ebp - 4], 1
call fcn.00428700
lea eax, [edi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4427fe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x442821
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp - 0x158]
mov ebx, dword [ebp - 0x154]
mov eax, dword [ebx + 0x28]
cmp dword [eax - 0xc], 0
je 0x44285f
push 1
push 1
lea ecx, [ebp - 0x148]
push ecx
push str.TASKS
push eax
mov ecx, edi
call fcn.0046b7f0
mov edx, dword [ebx + 0x28]
push 1
push edx
lea ecx, [ebp - 0x141]
call fcn.00431510
call fcn.0046d4f0
test eax, eax
je 0x4428e8
mov eax, dword [ebp - 0x148]
push eax
push str.CINIFile::InstallMiscINIFiles_:_bRebootRequired___d_n
push 0x66e1b0
call fcn.00599ee3
mov ecx, dword [str.EXIT:]
mov edx, dword [0x5ccefc]
mov eax, 0x66e1b0
mov dword [0x66e0b0], ecx
add esp, 0xc
mov dword [0x66e0b4], edx
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4428a4
mov edi, 0x66e0b0
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4428b5
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0x66e0b0
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
mov eax, dword [ebp - 0x148]
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