Function at 0x475710
Capabilities:
Check if file exists
Extract resource via kernel32 functions
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4e3188
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x50f130]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50f130]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x80]
xor ebx, ebx
lea edi, [esp + 0x50]
mov byte [esp + 0x17], bl
call fcn.0047c530
mov dword [esp + 0x78], ebx
mov esi, 7
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], ebx
mov word [esp + 0x38], bx
mov byte [esp + 0x78], 1
cmp dword [ebp + 0x14], ebx
jne 0x4757b3
mov eax, edi
push eax
lea ecx, [esp + 0x1c]
call fcn.0047c090
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x80], 2
call fcn.00402090
mov byte [esp + 0x78], 1
cmp dword [esp + 0x30], 8
jb 0x4757c1
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004b84d9
add esp, 4
jmp 0x4757c1
push 0xffffffffffffffff
push ebx
mov eax, ebp
lea ecx, [esp + 0x3c]
call fcn.00402090
lea edi, [esp + 0x34]
call fcn.0047c1c0
push 0xa
mov dword [esp + 0x34], esi
push 0x4f5b1c
lea esi, [esp + 0x20]
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], bx
call fcn.004024d0
mov edx, edi
push edx
mov ecx, esi
mov byte [esp + 0x7c], 3
call fcn.0047c360
mov esi, 8
mov byte [esp + 0x78], 1
cmp dword [esp + 0x30], esi
jb 0x475813
mov eax, dword [esp + 0x1c]
push eax
call fcn.004b84d9
add esp, 4
cmp dword [esp + 0x4c], esi
mov eax, dword [esp + 0x38]
jae 0x475821
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x475835
mov dword [ebp + 0x1c], ebx
jmp 0x475921
lea ecx, [esp + 0x50]
push ecx
mov dword [ebp + 0x1c], 1
call fcn.0047be90
push 3
push 0x4f5b34
lea esi, [esp + 0x20]
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], bx
call fcn.004024d0
mov edi, esi
lea eax, [esp + 0x50]
mov byte [esp + 0x78], 4
call fcn.0047c2c0
mov esi, 8
mov byte [esp + 0x78], 1
cmp dword [esp + 0x30], esi
jb 0x475894
mov edx, dword [esp + 0x1c]
push edx
call fcn.004b84d9
add esp, 4
cmp dword [esp + 0x68], esi
mov eax, dword [esp + 0x54]
jae 0x4758a2
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4758c2
push 0xffffffffffffffff
push ebx
lea ecx, [ebp + 0x80]
lea eax, [esp + 0x58]
call fcn.00402090
jmp 0x475917
mov eax, dword [0x5143d0]
push str.SKIN
push str.QMUIRES.dat
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, ebx
je 0x47591c
mov ecx, dword [0x5143d0]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x47591c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
cmp esi, ebx
je 0x47591c
mov edx, dword [0x5143d0]
push edi
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
lea esi, [ebp + 0xb0]
call fcn.00474830
mov byte [esp + 0x17], 1
mov esi, 8
cmp dword [esp + 0x4c], esi
jb 0x475934
mov eax, dword [esp + 0x38]
push eax
call fcn.004b84d9
add esp, 4
cmp dword [esp + 0x68], esi
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], ebx
mov word [esp + 0x38], bx
jb 0x475958
mov ecx, dword [esp + 0x54]
push ecx
call fcn.004b84d9
add esp, 4
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.004b84de
add esp, 0x68
ret 4