Function at 0x40a480
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b2e54
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x4dbe18]
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
cmp dword [0x4de36c], 0
jne 0x40a710
lea edi, [ebp - 0x2c]
call fcn.0047c060
mov dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0
jne 0x40a4e9
cmp dword [ebp - 0x14], 8
jb 0x40a4e2
mov eax, dword [ebp - 0x28]
push eax
call fcn.00480ff0
add esp, 4
xor al, al
jmp 0x40a712
lea ecx, [ebp - 0x2c]
push ecx
mov ebx, str.config_newui_themesdefault
lea esi, [ebp - 0x48]
call fcn.0040aed0
add esp, 4
mov eax, esi
mov byte [ebp - 4], 1
call fcn.00480ee0
test al, al
je 0x40a536
lea edx, [ebp - 0x2c]
push edx
mov ebx, str.config_newui_themesdefault360InternationSafe
lea esi, [ebp - 0x64]
call fcn.0040aed0
add esp, 4
mov eax, esi
mov byte [ebp - 4], 2
call fcn.00480ee0
test al, al
jne 0x40a54d
mov ecx, esi
call fcn.00404970
lea ecx, [ebp - 0x48]
call fcn.00404970
lea ecx, [ebp - 0x2c]
call fcn.00404970
xor al, al
jmp 0x40a712
lea eax, [ebp - 0x2c]
push eax
mov ebx, 0x4bd750
lea esi, [ebp - 0xe4]
call fcn.0040aed0
add esp, 4
push 0xffffffffffffffff
push 0
mov ecx, 0x4de358
mov byte [ebp - 4], 3
call fcn.00404cb0
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.00404970
mov dword [ebp - 0x74], str.theme.xml
mov dword [ebp - 0x70], str.default_theme.ui
mov dword [ebp - 0x6c], str.360InternationSafe360InternationSafe_theme.ui
mov dword [ebp - 0x68], 0
lea ecx, [ebp - 0x48]
push ecx
mov ebx, 0x4bd884
lea esi, [ebp - 0xe4]
call fcn.0040aed0
mov edx, dword [ebp - 0x68]
mov byte [ebp - 4], 4
mov ebx, dword [ebp + edx*4 - 0x74]
push eax
lea esi, [ebp - 0xac]
call fcn.0040aed0
mov edi, eax
lea esi, [ebp - 0xc8]
mov byte [ebp - 4], 5
call fcn.0040a840
push eax
lea esi, [ebp - 0x90]
mov byte [ebp - 4], 6
call fcn.0040aed0
mov esi, 8
add esp, 0xc
cmp dword [edi + 0x18], esi
jb 0x40a5fb
mov edi, dword [edi + 4]
jmp 0x40a5fe
add edi, 4
cmp dword [eax + 0x18], esi
jb 0x40a608
mov eax, dword [eax + 4]
jmp 0x40a60b
add eax, 4
xor ebx, ebx
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp dword [ebp - 0x78], esi
jb 0x40a62a
mov eax, dword [ebp - 0x8c]
push eax
call fcn.00480ff0
add esp, 4
xor ecx, ecx
mov edi, 7
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], ebx
mov word [ebp - 0x8c], cx
cmp dword [ebp - 0xb0], esi
jb 0x40a655
mov edx, dword [ebp - 0xc4]
push edx
call fcn.00480ff0
add esp, 4
xor eax, eax
mov dword [ebp - 0xb0], edi
mov dword [ebp - 0xb4], ebx
mov word [ebp - 0xc4], ax
cmp dword [ebp - 0x94], esi
jb 0x40a681
mov ecx, dword [ebp - 0xa8]
push ecx
call fcn.00480ff0
add esp, 4
xor edx, edx
mov byte [ebp - 4], 2
mov dword [ebp - 0x94], edi
mov dword [ebp - 0x98], ebx
mov word [ebp - 0xa8], dx
cmp dword [ebp - 0xcc], esi
jb 0x40a6b1
mov eax, dword [ebp - 0xe0]
push eax
call fcn.00480ff0
add esp, 4
mov eax, dword [ebp - 0x68]
inc eax
mov dword [ebp - 0x68], eax
cmp eax, 3
jb 0x40a59d
cmp dword [ebp - 0x4c], esi
jb 0x40a6d2
mov ecx, dword [ebp - 0x60]
push ecx
call fcn.00480ff0
add esp, 4
mov ebx, edi
xor edi, edi
xor edx, edx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x50], edi
mov word [ebp - 0x60], dx
cmp dword [ebp - 0x30], esi
jb 0x40a6f3
mov eax, dword [ebp - 0x44]
push eax
call fcn.00480ff0
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], edi
mov word [ebp - 0x44], cx
cmp dword [ebp - 0x14], esi
jb 0x40a710
mov edx, dword [ebp - 0x28]
push edx
call fcn.00480ff0
add esp, 4
mov al, 1
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.0048ac3c
mov esp, ebp
pop ebp
ret