Function at 0x45c0d0
Capabilities:
Check if file exists
Copy file
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5643e1
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x5be26c]
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 eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push 1
push eax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x230], ebx
push eax
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x22c], ecx
call fcn.005061e0
add esp, 0xc
mov dword [ebp - 4], 0
call fcn.00418ed0
mov ecx, eax
test ecx, ecx
je 0x45c3c4
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x228], esi
push edi
mov byte [ebp - 4], 1
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov edi, eax
test edi, edi
je 0x45c1f7
push edi
push dword [ebp - 0x220]
lea eax, [ebp - 0x228]
push str._s_s
push eax
call fcn.00417390
mov esi, dword [ebp - 0x228]
add esp, 0x10
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45c1cc
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x45c1cc
push eax
call fcn.00521443
push eax
push edi
push dword [ebp - 0x220]
lea eax, [ebp - 0x228]
mov dword [ebp - 0x234], edx
push str._s_s__d
push eax
call fcn.00417390
mov esi, dword [ebp - 0x228]
add esp, 0x18
push 0
push esi
push dword [ebp - 0x224]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x45c2b7
call fcn.00418ed0
mov ecx, eax
test ecx, ecx
je 0x45c3ce
jmp 0x45c280
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.00516260
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0
push 0x5777a4
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x45c1cc
push 0x5726b4
mov ecx, ebx
call fcn.0040ad40
or edi, 0xffffffff
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x45c255
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x220]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x45c3a6
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x45c3a6
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
push 0x5726b4
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.00410de0
test al, al
jne 0x45c2ac
push 0
push 0x5726b4
mov ecx, ebx
call fcn.0041f550
add esi, 0xfffffff0
or edi, 0xffffffff
jmp 0x45c36c
mov ecx, dword [ebp - 0x22c]
or edi, 0xffffffff
test ecx, ecx
je 0x45c35b
mov edx, dword [ebp - 0x220]
add edx, 0xfffffff0
mov dword [ebp - 0x224], edx
mov edx, dword [ecx]
sub edx, 0x10
mov dword [ebp - 0x230], edx
cmp dword [ebp - 0x224], edx
je 0x45c35b
cmp dword [edx + 0xc], 0
lea eax, [edx + 0xc]
mov dword [ebp - 0x234], eax
mov eax, dword [ebp - 0x220]
jl 0x45c352
mov ecx, dword [eax - 0x10]
cmp ecx, dword [edx]
jne 0x45c34c
push dword [ebp - 0x224]
call fcn.004112d0
mov dword [ebp - 0x224], eax
add esp, 4
mov eax, dword [ebp - 0x234]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x45c339
mov eax, dword [ebp - 0x230]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 0x22c]
mov eax, dword [ebp - 0x224]
add eax, 0x10
mov dword [ecx], eax
jmp 0x45c35b
mov ecx, dword [ebp - 0x22c]
push dword [eax - 0xc]
push eax
call fcn.0041f550
add esi, 0xfffffff0
push esi
call fcn.004112d0
add esp, 4
add eax, 0x10
mov dword [ebx], eax
mov eax, edi
mov byte [ebp - 4], 0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x45c384
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x220]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x45c3a6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
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.0046c16d
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00410dc0
push 0x80004005
call fcn.00410dc0
int3