Function at 0x42fd10
Capabilities:
Check if file exists
Delete file
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x483eb6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa0
push ebp
push esi
push edi
mov ebp, ecx
call fcn.0047b66b
mov esi, dword [eax + 8]
push str.DATA
push str.IDR_SKIN
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
mov eax, dword [0x4ae080]
add eax, 0xfffffff0
push eax
call fcn.00401250
add eax, 0x10
add esp, 4
mov dword [esp + 0xc], eax
push 0xc
push str.SkinDll.dll
lea ecx, [esp + 0x14]
mov dword [esp + 0xbc], 0
call fcn.00401870
test edi, edi
jne 0x42fdd7
push edi
push 0x489a0c
push 0x48ffc4
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0xb4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42fdbd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
add esp, 0xac
ret
push ebx
mov ebx, dword [esp + 0x10]
cmp dword [ebx - 4], 1
jle 0x42fdf3
mov eax, dword [ebx - 0xc]
push eax
lea ecx, [esp + 0x14]
call fcn.00401460
mov ebx, dword [esp + 0x10]
push 1
push 0x1b6
push 0x20
push ebx
lea ecx, [esp + 0x2c]
call fcn.0042f7a0
push edi
push esi
mov byte [esp + 0xc0], 1
call dword [sym.imp.KERNEL32.dll_LoadResource]
push edi
push esi
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
lea ecx, [esp + 0x24]
call fcn.0042eb00
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 4]
test byte [esp + eax + 0x24], 6
lea ecx, [esp + 0x20]
setne byte [esp + 0x17]
call fcn.0041e4b0
test eax, eax
jne 0x42fe7b
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx + 4]
mov eax, dword [esp + ecx + 0x24]
mov edx, dword [esp + ecx + 0x44]
lea ecx, [esp + ecx + 0x1c]
or eax, 2
test edx, edx
jne 0x42fe73
or eax, 4
push 0
push eax
call fcn.0045ccf7
mov al, byte [esp + 0x17]
test al, al
je 0x42fed1
lea ecx, [esp + 0x7c]
mov byte [esp + 0xb8], 0
call fcn.0042f8e0
lea ecx, [esp + 0x7c]
mov dword [esp + 0x7c], 0x48d12c
call fcn.0045cc0d
lea eax, [ebx - 0x10]
mov dword [esp + 0xb8], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42feca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
jmp 0x42ffc2
xor esi, esi
mov dword [ebp + 0x24], esi
mov eax, dword [ebx - 4]
mov edi, 1
cmp eax, edi
jle 0x42fef3
mov eax, dword [ebx - 0xc]
push eax
lea ecx, [esp + 0x14]
call fcn.00401460
mov ebx, dword [esp + 0x10]
push ebx
mov dword [ebp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, esi
mov dword [ebp + 0x28], eax
je 0x42ff5c
push str.ExtractDll
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp + 0x24], eax
mov eax, dword [ebp + 8]
lea esi, [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x42ff31
mov eax, dword [esi]
push eax
mov ecx, 0x4adfd8
call fcn.0043e3e0
mov eax, dword [esi]
mov ecx, dword [eax - 4]
sub eax, 0x10
cmp ecx, edi
jle 0x42ff48
mov ecx, dword [eax + 4]
push ecx
mov ecx, esi
call fcn.00401460
mov esi, dword [esi]
push esi
call dword [ebp + 0x24]
mov ebp, dword [ebp + 0x28]
test ebp, ebp
je 0x42ff5c
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebx - 4], edi
jle 0x42ff72
mov edx, dword [ebx - 0xc]
push edx
lea ecx, [esp + 0x14]
call fcn.00401460
mov ebx, dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x7c]
mov byte [esp + 0xb8], 0
call fcn.0042f8e0
lea ecx, [esp + 0x7c]
mov dword [esp + 0x7c], 0x48d12c
call fcn.0045cc0d
add ebx, 0xfffffff0
mov dword [esp + 0xb8], 0xffffffff
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x42ffc0
mov ecx, dword [ebx]
mov edx, dword [ecx]
push ebx
call dword [edx + 4]
mov eax, edi
mov ecx, dword [esp + 0xb0]
pop ebx
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0xac
ret