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

Disassembly:
push 0xffffffffffffffff
push 0x42b98f
mov eax, dword fs:[0]
push eax
sub esp, 0xc9c
mov eax, dword [0x437164]
xor eax, esp
mov dword [esp + 0xc98], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x437164]
xor eax, esp
push eax
lea eax, [esp + 0xcb0]
mov dword fs:[0], eax
mov edi, dword [esp + 0xcc0]
mov esi, dword [esp + 0xcc8]
push 0xc
call fcn.0040879d
add esp, 4
mov dword [esp + 0x14], eax
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0xcb8], ebp
je 0x40532d
mov ecx, eax
call fcn.00401100
jmp 0x40532f
xor eax, eax
push edi
mov ecx, eax
mov dword [esp + 0xcbc], 0xffffffff
mov dword [0x438ad0], eax
call fcn.00401110
push 0x3e6
lea eax, [esp + 0x8ca]
push ebp
push eax
mov word [esp + 0x8d0], bp
call fcn.00408700
mov eax, esi
add esp, 0xc
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebp
mov word [esp + 0x1c], bp
lea edx, [eax + 2]
jmp 0x405380
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x405380
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x20]
call fcn.00401f70
mov ebx, 8
push ebx
push ebp
push 0x42d564
lea ecx, [esp + 0x24]
mov dword [esp + 0xcc4], 1
call fcn.00401520
cmp eax, 0xffffffff
jle 0x40566f
push 0x206
lea ecx, [esp + 0x6c2]
push ebp
push ecx
mov word [esp + 0x6c8], bp
call fcn.00408700
mov eax, dword [esp + 0x28]
add esp, 0xc
cmp dword [esp + 0x30], ebx
jae 0x4053ef
lea eax, [esp + 0x1c]
add eax, 0x12
mov edx, eax
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x4053f4
lea edi, [esp + 0x8c4]
sub eax, edx
add edi, 0xfffffffe
jmp 0x405410
mov cx, word [edi + 2]
add edi, 2
cmp cx, bp
jne 0x405410
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea edx, [esp + 0x6bc]
push edx
lea eax, [esp + 0x8c8]
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x438ad0]
push eax
call fcn.00401200
mov ecx, eax
call fcn.00401030
push 0x206
lea ecx, [esp + 0xaa]
push ebp
push ecx
mov word [esp + 0xb0], bp
call fcn.00408700
add esp, 0xc
lea edx, [esp + 0xa4]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [esp + 0x6bc]
mov edx, eax
jmp 0x405490
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x405490
lea edi, [esp + 0xa4]
sub eax, edx
add edi, 0xfffffffe
jmp 0x4054b0
mov cx, word [edi + 2]
add edi, 2
cmp cx, bp
jne 0x4054b0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0x206
lea eax, [esp + 0x2b2]
and ecx, 3
push ebp
push eax
rep movsb byte es:[edi], byte [esi]
mov word [esp + 0x2b8], bp
call fcn.00408700
push 0x206
lea ecx, [esp + 0x4c6]
push ebp
push ecx
mov word [esp + 0x4cc], bp
call fcn.00408700
add esp, 0x18
xor eax, eax
jmp 0x405510
movzx ecx, word [esp + eax + 0x8c4]
mov word [esp + eax + 0x2ac], cx
add eax, 2
cmp cx, bp
jne 0x405510
lea edx, [esp + 0x2ac]
push edx
call fcn.0040959e
add esp, 4
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [esp + eax + 0xa4]
mov word [esp + eax + 0x4b4], cx
add eax, 2
cmp cx, bp
jne 0x405540
lea eax, [esp + 0x4b4]
push eax
call fcn.0040959e
add esp, 4
lea edx, [esp + 0x4b4]
lea ecx, [esp + 0x2ac]
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x40559c
cmp ax, bp
je 0x405598
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x40559c
add ecx, 4
add edx, 4
cmp ax, bp
jne 0x405576
xor eax, eax
jmp 0x4055a1
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebp
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
je 0x4055c7
lea ecx, [esp + 0xa4]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4055c7
lea edx, [esp + 0xa4]
push edx
call esi
push ebp
lea eax, [esp + 0xa8]
push eax
lea ecx, [esp + 0x8cc]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [esp + 0x34]
call fcn.00401aa0
lea edx, [esp + 0xa4]
push edx
push 1
lea ecx, [esp + 0x3c]
mov byte [esp + 0xcc0], 2
call fcn.00403ba0
lea eax, [esp + 0xa4]
push eax
call esi
mov ecx, dword [0x438ad0]
call fcn.004011f0
mov ecx, eax
call fcn.00405c20
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov esi, eax
push esi
push 0x42d560
push str.IsModifyCellDict
push str.SetModify
call edi
push esi
push 0x42d560
push str.IsModifyCellDict64
push str.SetModify
call edi
lea ecx, [esp + 0x34]
mov byte [esp + 0xcb8], 1
call fcn.00401ae0
cmp dword [esp + 0x30], ebx
jb 0x40594a
mov ecx, dword [esp + 0x1c]
push ecx
jmp 0x405942
push 6
push ebp
push 0x42d4f0
lea ecx, [esp + 0x24]
call fcn.00401520
cmp eax, 0xffffffff
jle 0x405937
push 0x206
lea edx, [esp + 0x6c2]
push ebp
push edx
mov word [esp + 0x6c8], bp
call fcn.00408700
mov eax, dword [esp + 0x28]
add esp, 0xc
cmp dword [esp + 0x30], ebx
jae 0x4056b5
lea eax, [esp + 0x1c]
add eax, 0xe
mov edx, eax
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x4056c0
lea edi, [esp + 0x8c4]
sub eax, edx
add edi, 0xfffffffe
jmp 0x4056e0
mov cx, word [edi + 2]
add edi, 2
cmp cx, bp
jne 0x4056e0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x6bc]
push eax
lea ecx, [esp + 0x8c8]
push ecx
mov ecx, dword [0x438ad0]
call fcn.00401200
mov ecx, eax
call fcn.00401030
push 0x206
lea edx, [esp + 0xaa]
push ebp
push edx
mov word [esp + 0xb0], bp
call fcn.00408700
add esp, 0xc
lea eax, [esp + 0xa4]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [esp + 0x6bc]
mov edx, eax
jmp 0x405760
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x405760
lea edi, [esp + 0xa4]
sub eax, edx
add edi, 0xfffffffe
jmp 0x405780
mov cx, word [edi + 2]
add edi, 2
cmp cx, bp
jne 0x405780
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0x206
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x4ba]
push ebp
push ecx
mov word [esp + 0x4c0], bp
call fcn.00408700
push 0x206
lea edx, [esp + 0x2be]
push ebp
push edx
mov word [esp + 0x2c4], bp
call fcn.00408700
add esp, 0x18
xor eax, eax
jmp 0x4057e0
movzx ecx, word [esp + eax + 0x8c4]
mov word [esp + eax + 0x4b4], cx
add eax, 2
cmp cx, bp
jne 0x4057e0
lea eax, [esp + 0x4b4]
push eax
call fcn.0040959e
add esp, 4
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [esp + eax + 0xa4]
mov word [esp + eax + 0x2ac], cx
add eax, 2
cmp cx, bp
jne 0x405810
lea ecx, [esp + 0x2ac]
push ecx
call fcn.0040959e
add esp, 4
lea edx, [esp + 0x2ac]
lea ecx, [esp + 0x4b4]
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x40586c
cmp ax, bp
je 0x405868
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x40586c
add ecx, 4
add edx, 4
cmp ax, bp
jne 0x405846
xor eax, eax
jmp 0x405871
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebp
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
je 0x405897
lea edx, [esp + 0xa4]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x405897
lea eax, [esp + 0xa4]
push eax
call esi
push ebp
lea ecx, [esp + 0xa8]
push ecx
lea edx, [esp + 0x8cc]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [esp + 0x34]
call fcn.00401aa0
lea eax, [esp + 0xa4]
push eax
push ebp
lea ecx, [esp + 0x3c]
mov byte [esp + 0xcc0], 3
call fcn.00403ba0
lea ecx, [esp + 0xa4]
push ecx
call esi
mov ecx, dword [0x438ad0]
call fcn.004011f0
mov ecx, eax
call fcn.00405c20
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov esi, eax
push esi
push 0x42d560
push str.IsModifyCellDict
push str.SetModify
call edi
push esi
push 0x42d560
push str.IsModifyCellDict64
push str.SetModify
call edi
lea ecx, [esp + 0x34]
mov byte [esp + 0xcb8], 1
call fcn.00401ae0
cmp dword [esp + 0x30], ebx
jb 0x40594a
mov edx, dword [esp + 0x1c]
push edx
jmp 0x405942
cmp dword [esp + 0x30], ebx
jb 0x40594a
mov eax, dword [esp + 0x1c]
push eax
call fcn.0040877f
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0xcb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc98]
xor ecx, esp
call fcn.004086c2
add esp, 0xca8
ret 0x10