Function at 0x41a9d0
Capabilities:
Check if file exists
Delete file
Get common file path
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41e357
mov eax, dword fs:[0]
push eax
sub esp, 0xec8
mov eax, dword [0x4263e4]
xor eax, ebp
mov dword [ebp - 0x30], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xecc], ecx
lea ecx, [ebp - 0x2c]
call fcn.00401030
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0xecc]
call fcn.0041a2b0
movzx eax, al
test eax, eax
jne 0x41aa68
push str._COMEBACK_:GetInfRelationFiles_is_failed_n
push 2
call fcn.004168e0
push eax
call fcn.00416130
add esp, 0xc
xor ecx, ecx
jne 0x41aa2e
mov byte [ebp - 0xeb9], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004010a0
mov al, byte [ebp - 0xeb9]
jmp 0x41b09f
push 0x200
lea edx, [ebp - 0x234]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x250]
push eax
call fcn.00416c20
add esp, 4
mov byte [ebp - 4], 1
mov byte [ebp - 0x11], 0
lea ecx, [ebp - 0x2c]
call fcn.00402870
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x254], 0
jmp 0x41aab7
mov ecx, dword [ebp - 0x254]
add ecx, 1
mov dword [ebp - 0x254], ecx
mov edx, dword [ebp - 0x254]
cmp edx, dword [ebp - 0x10]
jae 0x41b059
mov eax, dword [ebp - 0x254]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00404350
mov ecx, eax
call fcn.00402000
mov dword [ebp - 0xea0], eax
mov ecx, dword [ebp - 0xea0]
push ecx
call fcn.00406e60
add esp, 4
mov dword [ebp - 0x678], eax
mov edx, dword [ebp - 0x678]
mov dword [ebp - 0xea4], edx
jmp 0x41ab14
mov eax, dword [ebp - 0xea4]
sub eax, 1
mov dword [ebp - 0xea4], eax
cmp dword [ebp - 0xea4], 0
jbe 0x41ab4b
mov ecx, dword [ebp - 0xea0]
add ecx, dword [ebp - 0xea4]
movsx edx, byte [ecx - 1]
cmp edx, 0x5c
je 0x41ab47
mov eax, dword [ebp - 0xea0]
add eax, dword [ebp - 0xea4]
movsx ecx, byte [eax - 1]
cmp ecx, 0x2f
jne 0x41ab49
jmp 0x41ab4b
jmp 0x41ab05
mov edx, dword [ebp - 0x678]
sub edx, dword [ebp - 0xea4]
push edx
mov eax, dword [ebp - 0xea0]
add eax, dword [ebp - 0xea4]
push eax
push 0x400
lea ecx, [ebp - 0xe7c]
push ecx
call fcn.00406be3
add esp, 0x10
mov edx, dword [ebp - 0x678]
sub edx, dword [ebp - 0xea4]
mov byte [ebp + edx - 0xe7c], 0
mov eax, dword [ebp - 0xea4]
sub eax, 1
push eax
mov ecx, dword [ebp - 0xea0]
push ecx
push 0x400
lea edx, [ebp - 0x674]
push edx
call fcn.00406be3
add esp, 0x10
mov eax, dword [ebp - 0xea4]
mov byte [ebp + eax - 0x675], 0
lea ecx, [ebp - 0x234]
push ecx
lea ecx, [ebp - 0xe9c]
call fcn.00401750
mov byte [ebp - 4], 2
push str.dllcache_
lea ecx, [ebp - 0xe9c]
call fcn.004020e0
lea edx, [ebp - 0xe7c]
push edx
lea ecx, [ebp - 0xe9c]
call fcn.004020e0
mov byte [ebp - 0xe7d], 0
lea ecx, [ebp - 0x270]
call fcn.0041bf60
mov byte [ebp - 4], 3
lea eax, [ebp - 0xe7d]
push eax
lea ecx, [ebp - 0xe7c]
push ecx
lea ecx, [ebp - 0x250]
call fcn.00402000
push eax
lea ecx, [ebp - 0x270]
call fcn.0041bd40
lea ecx, [ebp - 0xe9c]
call fcn.00402000
push eax
call fcn.0041b5d0
add esp, 4
movzx edx, al
test edx, edx
jne 0x41ac5d
movzx eax, byte [ebp - 0xe7d]
test eax, eax
je 0x41b036
lea ecx, [ebp - 0xe9c]
call fcn.00402000
push eax
call fcn.0041b5d0
add esp, 4
movzx ecx, al
test ecx, ecx
je 0x41ac8c
lea ecx, [ebp - 0xe9c]
call fcn.00402000
push eax
call fcn.004074b8
add esp, 4
lea edx, [ebp - 0xa7c]
push edx
push 0
push 0x423100
lea eax, [ebp - 0x674]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x41ace7
push str._COMEBACK_:_get_temp_name_failed_n
push 2
call fcn.004168e0
push eax
call fcn.00416130
add esp, 0xc
xor ecx, ecx
jne 0x41acab
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x270]
call fcn.0041bf40
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xe9c]
call fcn.00401f50
jmp 0x41aaa8
mov byte [ebp - 0xea9], 1
push 1
lea edx, [ebp - 0xa7c]
push edx
mov eax, dword [ebp - 0xea0]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x41ae3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0xa7c]
push ecx
mov edx, dword [ebp - 0xea0]
push edx
push str._COMEBACK_:frist_rename__s_to__s_failed_code:_d_n
push 2
call fcn.004168e0
push eax
call fcn.00416130
add esp, 0x18
xor eax, eax
jne 0x41ad0c
mov byte [ebp - 0xea9], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xeb0], eax
mov ecx, dword [ebp - 0xeb0]
mov dword [ebp - 0xed0], ecx
cmp dword [ebp - 0xed0], 5
je 0x41adbe
cmp dword [ebp - 0xed0], 0x50
je 0x41ad7c
cmp dword [ebp - 0xed0], 0xb7
je 0x41ad7c
jmp 0x41ae3b
lea edx, [ebp - 0xa7c]
push edx
push 0
push str.SETT
lea eax, [ebp - 0x674]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x41adbc
push 1
lea ecx, [ebp - 0xa7c]
push ecx
mov edx, dword [ebp - 0xea0]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x41adbc
mov byte [ebp - 0xea9], 1
jmp 0x41ae3b
mov eax, dword [ebp - 0xea0]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0xeb4], eax
cmp dword [ebp - 0xeb4], 0xffffffff
je 0x41ae1a
mov ecx, dword [ebp - 0xeb4]
and ecx, 0xfffffffe
mov dword [ebp - 0xeb4], ecx
mov edx, dword [ebp - 0xeb4]
push edx
mov eax, dword [ebp - 0xea0]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x41ae1a
push str._COMEBACK_:set__s_not_readonly_n
push 2
call fcn.004168e0
push eax
call fcn.00416130
add esp, 0xc
xor ecx, ecx
jne 0x41ae01
push 1
lea edx, [ebp - 0xa7c]
push edx
mov eax, dword [ebp - 0xea0]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x41ae3b
mov byte [ebp - 0xea9], 1
movzx ecx, byte [ebp - 0xea9]
test ecx, ecx
je 0x41aed0
push 0x38
call fcn.00406d9d
add esp, 4
mov dword [ebp - 0xec4], eax
cmp dword [ebp - 0xec4], 0
je 0x41ae76
mov ecx, dword [ebp - 0xec4]
call fcn.004027f0
mov dword [ebp - 0xed4], eax
jmp 0x41ae80
mov dword [ebp - 0xed4], 0
mov edx, dword [ebp - 0xed4]
mov dword [ebp - 0xec0], edx
mov eax, dword [ebp - 0xec0]
mov dword [ebp - 0xeb8], eax
mov ecx, dword [ebp - 0xea0]
push ecx
mov ecx, dword [ebp - 0xeb8]
call fcn.004027d0
lea edx, [ebp - 0xa7c]
push edx
mov ecx, dword [ebp - 0xeb8]
add ecx, 0x1c
call fcn.004027d0
lea eax, [ebp - 0xeb8]
push eax
mov ecx, dword [ebp + 0x10]
call fcn.00404480
jmp 0x41af21
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0xa7c]
push ecx
mov edx, dword [ebp - 0xea0]
push edx
push str._COMEBACK_:last_rename__s_to__s_failed_code:_d_n
push 2
call fcn.004168e0
push eax
call fcn.00416130
add esp, 0x18
xor eax, eax
jne 0x41aed0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x270]
call fcn.0041bf40
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xe9c]
call fcn.00401f50
jmp 0x41aaa8
push 4
push 0
lea ecx, [ebp - 0xa7c]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x41af56
lea edx, [ebp - 0xa7c]
push edx
push str._COMEBACK_:delay_delete__s_failed_n
push 2
call fcn.004168e0
push eax
call fcn.00416130
add esp, 0x10
xor eax, eax
jne 0x41af36
mov dword [ebp - 0xea8], 0
mov ecx, dword [ebp - 0xea0]
push ecx
call fcn.0041b5d0
add esp, 4
movzx edx, al
test edx, edx
je 0x41af91
lea ecx, [ebp - 0xe9c]
call fcn.00402000
push eax
call fcn.0041b5d0
add esp, 4
movzx eax, al
test eax, eax
jne 0x41afd8
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0xea8]
add ecx, 1
mov dword [ebp - 0xea8], ecx
cmp dword [ebp - 0xea8], 0x19
jl 0x41afd6
mov edx, dword [ebp - 0xea0]
push edx
push str._COMEBACK_:_no_find_system32_file__s_n
push 2
call fcn.004168e0
push eax
call fcn.00416130
add esp, 0x10
xor eax, eax
jne 0x41afb4
jmp 0x41afd8
jmp 0x41af60
lea ecx, [ebp - 0xe9c]
call fcn.00402000
push eax
call fcn.0041b5d0
add esp, 4
movzx ecx, al
test ecx, ecx
je 0x41b032
lea ecx, [ebp - 0xe9c]
call fcn.00402000
push eax
push str._COMEBACK_:delete_dllcache_file:_s_n
push 2
call fcn.004168e0
push eax
call fcn.00416130
add esp, 0x10
xor edx, edx
jne 0x41aff3
lea ecx, [ebp - 0xe9c]
call fcn.00402000
push eax
call fcn.004074b8
add esp, 4
mov byte [ebp - 0x11], 1
jmp 0x41b036
mov byte [ebp - 0x11], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x270]
call fcn.0041bf40
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xe9c]
call fcn.00401f50
jmp 0x41aaa8
lea ecx, [ebp - 0x2c]
call fcn.00402910
movzx eax, byte [ebp - 0x11]
test eax, eax
je 0x41b074
push 0x1770
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [ebp - 0xec5], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x250]
call fcn.00401f50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004010a0
mov al, byte [ebp - 0xec5]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x30]
xor ecx, ebp
call fcn.00405248
mov esp, ebp
pop ebp
ret 0xc