Function at 0x4db213
Capabilities:
Check if file exists
Delete file
Get common file path
Move file

Disassembly:
push 0x5dc
mov eax, 0x554749
call fcn.00513ea1
push 0x51
pop ecx
mov esi, str.BRK51n4Ou1pvZsTqaNLNS4drPZuzbay9Q9n3Ql8wSqlMHecpGJGR3adUZqoOS4F8Sdt7lt8lE2GBag90KmnLy9HqR7no9RAtQ4kU78VD3qbuzlX1SIBi4sDt47L6pqV4PLNFIQ8UU6Vvyyus9RtsQBzIUetNH0j9U9pmvOOVVQQblrVcUdZZTzFwpqUNM30lLaxqyjl8ps9IhbD1xfEVGVxwZPH67IZMHnxEfYWdy4JgHF1pxlbKPgojwrbBq6TejZcE202a8nXEdX84djyBvYNIdNMgKYNOJ13CQ2PILvC2SZ8IUwmU13NFW99lOyEwgkio
mov ebx, dword [ebp + 8]
lea edi, [ebp - 0x360]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
push 0x7a
pop ecx
mov dword [ebp - 0x5e8], eax
movsb byte es:[edi], byte [esi]
mov esi, str.sGHg6igVIMQLanvhXJyV7NSmSQ4lFpwToGF0skWlErmCL3uY7rM7W49vdEGjgyc5F8UMOndhRZDUf0CdpKUzoxu9IBKXF2N0HH6xCe7kyp5AsLBbmHMOVrMWQfhRJwvQiVgCUWMW76enRXXANqAXlnYCrLy6imKfKZstsles33KJs1AdjBCnom1Dp3W1q5plSzMjcXnbjZdDNe4tIu7RPSxXgJTElqepUgBb398pKMAalwA2mEZV00LAYLEUyET3YMPd1tJB4RbqLeiKb4SRfLU6w8DWLl2xgDkCxAOOjRGXVHhwHqEMNnckcP0CdmtiiE7xf6G5dknN5T5wRd3sSVCe8vdHNg7K1KTIEH5iOJWcvZEkFazfMUlFjFvD6s2Vp3IaPuLuzNcEkcCyxUjV99rs9CCw8Z47jStmDAlMmvQ03pNuqnkUHnzNazoqHrQ8j2VPieuNU7PMa7Ew2cJ9LwBFWvIhLTzyMNq4avQC
mov dword [ebp - 0x5e4], eax
lea edi, [ebp - 0x54c]
mov dword [ebp - 0x5e0], eax
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x57c]
lea eax, [ebp - 0x360]
push eax
call fcn.004057d0
lea eax, [ebp - 0x57c]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x5e8]
call fcn.00408170
push 0
push 1
lea ecx, [ebp - 0x57c]
mov byte [ebp - 4], 0
call fcn.004096c0
lea eax, [ebp - 0x54c]
push eax
lea ecx, [ebp - 0x57c]
call fcn.004057d0
lea eax, [ebp - 0x57c]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x5e8]
call fcn.00408170
push 0
push 1
lea ecx, [ebp - 0x57c]
mov byte [ebp - 4], 0
call fcn.004096c0
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push ebx
call edi
test eax, eax
je 0x4db5e4
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4db5e4
push 0x208
xor esi, esi
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.004f0ae0
add esp, 0xc
mov dword [ebp - 0x580], 7
xor eax, eax
mov dword [ebp - 0x584], esi
lea ecx, [ebp - 0x594]
mov word [ebp - 0x594], ax
push esi
push 0x656bb0
call fcn.00402650
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 3
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x5dc]
push ebx
push eax
call fcn.004dc000
lea eax, [ebp - 0x5ac]
mov byte [ebp - 4], 4
push ebx
push eax
call fcn.004dc4b7
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x5c4]
push eax
call fcn.004dc4b7
lea eax, [ebp - 0x5ac]
mov byte [ebp - 4], 6
push eax
call fcn.004da491
lea eax, [ebp - 0x5c4]
push eax
call fcn.004da491
add esp, 0x20
lea eax, [ebp - 0x5ac]
cmp dword [ebp - 0x598], 8
lea ecx, [ebp - 0x5c4]
cmovae eax, dword [ebp - 0x5ac]
push dword [ebp - 0x59c]
push eax
push dword [ebp - 0x5b4]
push esi
call fcn.004266e0
test eax, eax
jne 0x4db3ff
cmp word [ebp - 0x218], ax
jne 0x4db3dd
mov eax, esi
jmp 0x4db3ea
lea eax, [ebp - 0x218]
push eax
call fcn.00500d29
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x594]
call fcn.00402650
jmp 0x4db428
lea eax, [ebp - 0x57c]
push ebx
push eax
call fcn.004dc30c
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x594]
call fcn.00403fe0
push esi
push 1
lea ecx, [ebp - 0x57c]
call fcn.00402590
xor esi, esi
and dword [ebp - 0x554], 0
lea ecx, [ebp - 0x564]
xor eax, eax
mov dword [ebp - 0x550], 7
push eax
push 0x656bb0
mov word [ebp - 0x564], ax
call fcn.00402650
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x594]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x564]
call fcn.00402880
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x5dc]
push eax
lea ecx, [ebp - 0x564]
call fcn.00404370
push str..del
call fcn.00500d29
pop ecx
push eax
push str..del
lea ecx, [ebp - 0x564]
call fcn.00404240
test esi, esi
jle 0x4db4e0
mov eax, esi
cdq
push edx
push eax
lea eax, [ebp - 0x57c]
push eax
call fcn.004cdc9a
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x564]
mov byte [ebp - 4], 8
call fcn.00404370
push 0
push 1
lea ecx, [ebp - 0x57c]
mov byte [ebp - 4], 7
call fcn.00402590
cmp dword [ebp - 0x550], 8
lea eax, [ebp - 0x564]
cmovae eax, dword [ebp - 0x564]
push eax
call edi
test eax, eax
je 0x4db537
cmp dword [ebp - 0x550], 8
lea eax, [ebp - 0x564]
cmovae eax, dword [ebp - 0x564]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4db537
cmp esi, 0xa
jge 0x4db59e
push eax
push 1
lea ecx, [ebp - 0x564]
mov byte [ebp - 4], 6
inc esi
call fcn.00402590
jmp 0x4db42a
cmp dword [ebp - 0x550], 8
lea eax, [ebp - 0x564]
cmovae eax, dword [ebp - 0x564]
push eax
push ebx
call fcn.004f8c34
cmp dword [ebp - 0x550], 8
lea eax, [ebp - 0x564]
pop ecx
cmovae eax, dword [ebp - 0x564]
pop ecx
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x4db590
cmp dword [ebp - 0x550], 8
lea eax, [ebp - 0x564]
push 5
cmovae eax, dword [ebp - 0x564]
push 0
push eax
call esi
push ebx
call edi
test eax, eax
je 0x4db59e
push 5
push 0
push ebx
call esi
xor ebx, ebx
lea ecx, [ebp - 0x564]
xor esi, esi
push ebx
inc esi
push esi
call fcn.00402590
push ebx
push esi
lea ecx, [ebp - 0x5c4]
call fcn.00402590
push ebx
push esi
lea ecx, [ebp - 0x5ac]
call fcn.00402590
push ebx
push esi
lea ecx, [ebp - 0x5dc]
call fcn.00402590
push ebx
push esi
lea ecx, [ebp - 0x594]
call fcn.00402590
lea ecx, [ebp - 0x5e8]
call fcn.0047920e
call fcn.00513e4b
ret