Function at 0x452360
Capabilities:
Check if file exists
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x572792
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x5fc150]
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
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov dword [esi + 8], eax
lea eax, [ebp - 0x218]
push 0x104
push eax
push edx
mov dword [esi + 4], edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov edx, eax
cmp word [edx], 0
jne 0x4523cb
xor ecx, ecx
jmp 0x4523df
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4523d0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [esi + 0x30]
call fcn.00406c80
mov dword [esi + 0x134], ebx
call fcn.0040baa0
mov al, byte [eax + 0x231e0]
test al, al
jne 0x4525f8
call fcn.0040baa0
lea ecx, [ebp - 0x248]
push ecx
mov ecx, eax
call fcn.0041b700
mov dword [ebp - 4], 0
xor eax, eax
push 0x10
mov dword [ebp - 0x220], 0
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x21c], 0
push str.functionList.xml
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
call fcn.00406c80
mov byte [ebp - 4], 1
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.00423c40
mov eax, dword [ebp - 0x24c]
add esp, 0xc
cmp eax, 8
jb 0x45249e
inc eax
lea ecx, [ebp - 0x260]
push eax
push dword [ebp - 0x260]
call fcn.00407270
xor eax, eax
mov dword [ebp - 0x24c], 7
mov dword [ebp - 0x250], 0
mov word [ebp - 0x260], ax
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x4524dc
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.00407270
xor eax, eax
mov dword [ebp - 0x21c], 7
cmp dword [ebp - 0x234], 8
mov word [ebp - 0x230], ax
mov eax, dword [ebp - 0x248]
mov dword [ebp - 0x220], 0
jae 0x45250e
lea eax, [ebp - 0x248]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call edi
test eax, eax
jne 0x452710
call fcn.0040baa0
lea ecx, [ebp - 0x230]
push ecx
mov ecx, eax
call fcn.0042fb90
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x260]
push str.functionList.xml
call fcn.004029a0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x278]
push eax
call fcn.00423c40
add esp, 0xc
lea ecx, [ebp - 0x278]
call fcn.004038c0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x260]
call fcn.004038c0
cmp dword [ebp - 0x21c], 8
mov eax, dword [ebp - 0x230]
jae 0x452596
lea eax, [ebp - 0x230]
push eax
call edi
test eax, eax
je 0x4525e4
cmp dword [ebp - 0x234], 8
mov eax, dword [ebp - 0x248]
jae 0x4525b2
lea eax, [ebp - 0x248]
cmp dword [ebp - 0x21c], 8
mov ecx, dword [ebp - 0x230]
jae 0x4525c7
lea ecx, [ebp - 0x230]
push 1
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push ebx
lea eax, [ebp - 0x248]
push eax
lea ecx, [esi + 0x138]
call fcn.00458700
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.004038c0
jmp 0x452723
call fcn.0040baa0
lea ecx, [ebp - 0x248]
push ecx
mov ecx, eax
call fcn.0042fb90
mov dword [ebp - 4], 4
xor eax, eax
push 0x10
mov dword [ebp - 0x220], 0
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x21c], 0
push str.functionList.xml
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
call fcn.00406c80
mov byte [ebp - 4], 5
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.00423c40
mov eax, dword [ebp - 0x24c]
add esp, 0xc
cmp eax, 8
jb 0x452694
inc eax
lea ecx, [ebp - 0x260]
push eax
push dword [ebp - 0x260]
call fcn.00407270
xor eax, eax
mov dword [ebp - 0x24c], 7
mov dword [ebp - 0x250], 0
mov word [ebp - 0x260], ax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x4526d3
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.00407270
xor eax, eax
mov dword [ebp - 0x21c], 7
cmp dword [ebp - 0x234], 8
mov word [ebp - 0x230], ax
mov eax, dword [ebp - 0x248]
mov dword [ebp - 0x220], 0
jae 0x452705
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x452723
push ebx
lea eax, [ebp - 0x248]
push eax
lea ecx, [esi + 0x138]
call fcn.00458700
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x234]
cmp eax, 8
jb 0x452748
inc eax
lea ecx, [ebp - 0x248]
push eax
push dword [ebp - 0x248]
call fcn.00407270
xor eax, eax
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
mov dword [ebp - 0x238], 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.0052c233
mov esp, ebp
pop ebp
ret 0xc