Function at 0x1004228a
Capabilities:
Copy file
Read .ini file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10157431
mov eax, dword fs:[0]
push eax
mov eax, 0x1040
call fcn.1012ba20
mov eax, dword [0x102406a8]
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 esi, ecx
push 0x800
xor ebx, ebx
lea eax, [ebp - 0x1030]
push ebx
push eax
call fcn.1012db70
mov edi, 0x208
lea eax, [ebp - 0x628]
push edi
push ebx
push eax
call fcn.1012db70
push edi
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.1012db70
push edi
lea eax, [ebp - 0x830]
push ebx
push eax
call fcn.1012db70
push edi
lea eax, [ebp - 0x420]
push ebx
push eax
call fcn.1012db70
add esp, 0x3c
lea eax, [ebp - 0x830]
mov ecx, esi
push edi
push eax
call fcn.10042160
test eax, eax
jne 0x1004232c
xor eax, eax
jmp 0x10042591
push edi
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.10041f82
test eax, eax
je 0x10042325
lea eax, [ebp - 0x1034]
mov dword [ebp - 0x1034], ebx
push eax
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.10042097
test eax, eax
je 0x1004258e
cmp dword [ebp - 0x1034], ebx
je 0x1004258e
push edi
lea eax, [ebp - 0x420]
mov ecx, esi
push eax
call fcn.100421d5
test eax, eax
je 0x10042325
lea eax, [ebp - 0x420]
mov ecx, esi
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.10041f2f
test eax, eax
je 0x10042325
lea ecx, [ebp - 0x104c]
call fcn.1011ef02
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x104c]
call fcn.1011f0e8
test eax, eax
je 0x10042579
push 0x800
lea eax, [ebp - 0x1030]
mov esi, ebx
push eax
lea ecx, [ebp - 0x104c]
call fcn.1007bc9e
xor edi, edi
inc edi
test eax, eax
je 0x10042569
lea eax, [ebp - 0x1030]
push str._360_
push eax
call fcn.101160fa
pop ecx
pop ecx
test eax, eax
jne 0x1004242b
lea eax, [ebp - 0x1030]
push 0x1018d9f4
push eax
call fcn.101160fa
pop ecx
pop ecx
test eax, eax
jne 0x1004242b
lea eax, [ebp - 0x1030]
push str._360safe_System_Repair__select_this_if_the_system_cant_startup__
push eax
call fcn.101160fa
pop ecx
pop ecx
test eax, eax
je 0x10042438
lea ecx, [ebp - 0x104c]
call fcn.1011f082
mov esi, edi
push 0x800
lea eax, [ebp - 0x1030]
push eax
lea ecx, [ebp - 0x104c]
call fcn.1007bc9e
test eax, eax
jne 0x100423e6
test esi, esi
je 0x10042569
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x104c]
call fcn.1011f520
test eax, eax
je 0x10042579
lea eax, [ebp - 0x830]
mov esi, str.timeout
push eax
push 0x104
lea eax, [ebp - 0x628]
push eax
push 0x1018da28
push esi
push str.Service
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x628]
push eax
call fcn.10136ce4
pop ecx
cmp eax, 0x1e
jge 0x100424ca
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x628]
push eax
push esi
push str.boot_loader
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea eax, [ebp - 0x218]
push eax
call fcn.10041a60
mov esi, eax
cmp esi, 0xffffffff
je 0x10042579
push 0xc
call fcn.10010082
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop ecx
push 0x80
test eax, eax
je 0x10042503
lea ecx, [ebp - 0x218]
push ecx
call eax
jmp 0x1004250c
lea eax, [ebp - 0x218]
push eax
call ebx
test eax, eax
je 0x10042577
push 0x2a
call fcn.10010082
pop ecx
push 0
test eax, eax
je 0x10042530
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x420]
push ecx
call eax
jmp 0x10042544
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x10042577
push 0xc
call fcn.10010082
pop ecx
push esi
test eax, eax
je 0x10042560
lea ecx, [ebp - 0x218]
push ecx
call eax
jmp 0x10042569
lea eax, [ebp - 0x218]
push eax
call ebx
lea eax, [ebp - 0x420]
push eax
call fcn.1000f894
jmp 0x1004257b
xor ebx, ebx
mov edi, ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x104c]
call fcn.1011ef42
mov eax, edi
jmp 0x10042591
xor eax, eax
inc eax
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.1012b632
leave
ret