Function at 0x4221ba
Capabilities:
Check if file exists
Move file

Disassembly:
push ebp
sub esp, 0xa10
lea ebp, [esp - 4]
mov eax, dword [0x4f2b64]
xor eax, ebp
mov dword [ebp + 0xa10], eax
push 8
mov eax, 0x4b03ca
call fcn.004562d8
call fcn.00405df2
mov ecx, eax
call fcn.0040ca88
push eax
lea ecx, [ebp + 0x1c]
call fcn.00401640
mov eax, dword [ebp + 0x20]
push 8
xor ebx, ebx
pop esi
cmp dword [ebp + 0x34], esi
mov dword [ebp - 4], ebx
jae 0x422206
lea eax, [ebp + 0x20]
push eax
lea ecx, [ebp - 0x10]
call fcn.004206c4
push 0x5c
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00421a9a
inc eax
push eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.0042212f
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.0042216d
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov byte [ebp - 4], 1
call fcn.004079b7
push str..temp
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp]
push eax
call fcn.00403d20
add esp, 0xc
cmp dword [ebp + 0x18], esi
mov eax, dword [ebp + 4]
mov byte [ebp - 4], 3
jae 0x42226b
lea eax, [ebp + 4]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call edi
test eax, eax
jne 0x422285
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4222a5
cmp dword [ebp + 0x34], esi
mov ecx, dword [ebp + 0x20]
jae 0x422290
lea ecx, [ebp + 0x20]
cmp dword [ebp + 0x18], esi
mov eax, dword [ebp + 4]
jae 0x42229b
lea eax, [ebp + 4]
push 1
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
call fcn.00405e33
mov ecx, eax
call fcn.0041976a
call fcn.00405e33
mov edx, dword [eax]
push 0x57
mov ecx, eax
call dword [edx]
mov esi, eax
call fcn.00405e33
mov edx, dword [eax]
push 0x9f
mov ecx, eax
call dword [edx + 0x10]
cmp esi, ebx
mov dword [ebp - 0x14], eax
je 0x4223d9
mov esi, 0x3e6
push esi
lea eax, [ebp + 0x422]
push ebx
push eax
mov word [ebp + 0x420], bx
call fcn.00456900
push esi
lea eax, [ebp + 0x3a]
push ebx
push eax
mov word [ebp + 0x38], bx
call fcn.00456900
push 0x206
lea eax, [ebp + 0x80a]
push ebx
push eax
mov word [ebp + 0x808], bx
call fcn.00456900
add esp, 0x24
push dword [ebp - 0x14]
call fcn.00405df2
mov ecx, eax
call fcn.0040ca55
push eax
lea eax, [ebp + 0x420]
push str._sSkin_s.gss
push eax
call fcn.004567da
add esp, 0x10
lea eax, [ebp + 0x420]
push eax
call edi
test eax, eax
jne 0x422383
push dword [ebp - 0x14]
call fcn.00405df2
mov ecx, eax
call fcn.0040ca69
push eax
lea eax, [ebp + 0x420]
push str._sAllSkin_s.gss
push eax
call fcn.004567da
add esp, 0x10
lea eax, [ebp + 0x420]
push eax
call edi
test eax, eax
je 0x4223d9
push str.DFSkinInst.exe
call fcn.00405df2
mov ecx, eax
call fcn.0040ca55
push eax
lea eax, [ebp + 0x808]
push 0x4b70c8
push eax
call fcn.004567da
lea eax, [ebp + 0x420]
push eax
lea eax, [ebp + 0x808]
push eax
lea eax, [ebp + 0x38]
push str.__s___bindinst__s
push eax
call fcn.004567da
lea eax, [ebp + 0x38]
push eax
call fcn.0040f2f8
add esp, 0x24
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00405e33
mov edx, dword [eax]
mov edi, 0x9a
push edi
mov ecx, eax
call dword [edx]
mov esi, eax
inc esi
call fcn.00405e33
mov edx, dword [eax]
push esi
push edi
mov ecx, eax
call dword [edx + 0xc]
call fcn.00405e33
mov edx, dword [eax]
inc edi
push edi
mov ecx, eax
call dword [edx]
mov esi, eax
inc esi
call fcn.00405e33
mov edx, dword [eax]
push esi
push edi
mov ecx, eax
call dword [edx + 0xc]
call fcn.00405e33
mov edx, dword [eax]
mov edi, 0x9c
push edi
mov ecx, eax
call dword [edx]
mov esi, eax
inc esi
call fcn.00405e33
mov edx, dword [eax]
push esi
push edi
mov ecx, eax
call dword [edx + 0xc]
call fcn.00405e33
mov edx, dword [eax]
push 0xb4
mov ecx, eax
call dword [edx + 0x10]
mov esi, dword [eax]
push ebx
push 0x152
push 0x52d
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
cmp esi, ebx
je 0x42246e
push 1
push ebx
push esi
call dword [sym.imp.USER32.dll_InvalidateRect]
push ebx
push 1
lea ecx, [ebp]
call fcn.00401840
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004079b7
push ebx
push 1
lea ecx, [ebp + 0x1c]
call fcn.00401840
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xa10]
xor ecx, ebp
call fcn.004562c9
add ebp, 0xa14
leave
ret