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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cada6
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x6403f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ecx + 4]
sub eax, 0x10
push eax
call fcn.00408620
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x250], esi
mov eax, dword [esi - 8]
mov ebx, 1
mov ecx, ebx
mov dword [ebp - 4], 0
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x450c38
push 0x104
lea ecx, [ebp - 0x250]
call fcn.004093e0
mov esi, dword [ebp - 0x250]
push str.skin
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push dword [esi - 8]
push esi
call fcn.005329f7
add esp, 8
test eax, eax
js 0x450e57
cmp eax, dword [esi - 8]
jg 0x450e57
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
mov eax, dword [esi - 8]
sub ebx, dword [esi - 4]
sub eax, 0x104
or eax, ebx
jge 0x450c8f
push 0x104
lea ecx, [ebp - 0x250]
call fcn.004093e0
mov esi, dword [ebp - 0x250]
push str.all_block_ads.dat
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push dword [esi - 8]
push esi
call fcn.005329f7
add esp, 8
test eax, eax
js 0x450e57
cmp eax, dword [esi - 8]
jg 0x450e57
xor ecx, ecx
mov dword [esi - 0xc], eax
push esi
mov word [esi + eax*2], cx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x450e1d
push 0xd
xor eax, eax
mov dword [ebp - 0x224], 0
push 0x5e5330
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
call fcn.00412110
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x24c]
push eax
call fcn.00416a90
mov edx, dword [ebp - 0x220]
add esp, 8
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x450d5d
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x450d53
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x450e61
push edx
push ecx
call fcn.004742b9
add esp, 8
xor eax, eax
mov dword [ebp - 0x224], 0
push 0x20a
push eax
mov word [ebp - 0x234], ax
lea eax, [ebp - 0x21c]
push eax
mov dword [ebp - 0x220], 7
call fcn.005163e0
add esp, 0xc
lea eax, [ebp - 0x24c]
cmp dword [ebp - 0x238], 8
cmovae eax, dword [ebp - 0x24c]
push str.all_block_ads.dat
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x21c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov edx, dword [ebp - 0x238]
cmp edx, 8
jb 0x450e00
mov ecx, dword [ebp - 0x24c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x450df6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x450e66
push edx
push ecx
call fcn.004742b9
add esp, 8
xor eax, eax
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 7
mov word [ebp - 0x24c], ax
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x450e3c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004742a8
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00408570
call fcn.00531b5d
call fcn.00531b5d
int3