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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6033b1
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x6b000c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x228], 0
cmp dword [0x6b0c60], 0x3a8
je 0x4e9cb4
call fcn.0040bf10
mov ecx, eax
test ecx, ecx
je 0x4e9d41
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x21c], esi
mov dword [ebp - 4], 1
mov eax, dword [0x6b0c60]
cmp eax, 0x3b6
ja 0x4e98e8
je 0x4e9847
sub eax, 0x35c
cmp eax, 0x48
ja case.0x4e95cf.861
movzx eax, byte [eax + 0x4e9d64]
jmp dword [eax*4 + 0x4e9d4c]
mov edx, str.skin_skin_jp.skin
lea ecx, [ebp - 0x220]
call fcn.0048e4f0
mov byte [ebp - 4], 4
lea ebx, [esi - 0x10]
mov edx, dword [eax]
or edi, 0xffffffff
lea ecx, [edx - 0x10]
cmp ecx, ebx
je 0x4e964c
cmp dword [ebx + 0xc], 0
lea esi, [ebx + 0xc]
jl 0x4e9637
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x4e9637
call fcn.0040c950
mov dword [ebp - 0x224], eax
mov ecx, edi
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x4e962c
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x224]
lea esi, [eax + 0x10]
mov dword [ebp - 0x21c], esi
jmp 0x4e964c
push dword [edx - 0xc]
lea ecx, [ebp - 0x21c]
push edx
call fcn.0040c9d0
mov esi, dword [ebp - 0x21c]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x220]
jmp 0x4e9ba7
mov edx, str.skin_skin_fr.skin
lea ecx, [ebp - 0x224]
call fcn.0048e4f0
mov byte [ebp - 4], 0xa
lea ebx, [esi - 0x10]
mov edx, dword [eax]
or edi, 0xffffffff
lea ecx, [edx - 0x10]
cmp ecx, ebx
je 0x4e96d1
cmp dword [ebx + 0xc], 0
lea esi, [ebx + 0xc]
jl 0x4e96bc
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x4e96bc
call fcn.0040c950
mov dword [ebp - 0x220], eax
mov ecx, edi
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x4e96b1
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x220]
lea esi, [eax + 0x10]
mov dword [ebp - 0x21c], esi
jmp 0x4e96d1
push dword [edx - 0xc]
lea ecx, [ebp - 0x21c]
push edx
call fcn.0040c9d0
mov esi, dword [ebp - 0x21c]
jmp 0x4e9b9d
mov edx, str.skin_skin_ar.skin
lea ecx, [ebp - 0x224]
call fcn.0048e4f0
mov byte [ebp - 4], 0xe
lea ebx, [esi - 0x10]
mov edx, dword [eax]
or edi, 0xffffffff
lea ecx, [edx - 0x10]
cmp ecx, ebx
je 0x4e974c
cmp dword [ebx + 0xc], 0
lea esi, [ebx + 0xc]
jl 0x4e9737
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x4e9737
call fcn.0040c950
mov dword [ebp - 0x220], eax
mov ecx, edi
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x4e972c
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x220]
lea esi, [eax + 0x10]
mov dword [ebp - 0x21c], esi
jmp 0x4e974c
push dword [edx - 0xc]
lea ecx, [ebp - 0x21c]
push edx
call fcn.0040c9d0
mov esi, dword [ebp - 0x21c]
jmp 0x4e9b9d
mov edx, str.skin_skin_pt.skin
lea ecx, [ebp - 0x224]
call fcn.0048e4f0
mov byte [ebp - 4], 0x10
lea ebx, [esi - 0x10]
mov edx, dword [eax]
or edi, 0xffffffff
lea ecx, [edx - 0x10]
cmp ecx, ebx
je 0x4e97c7
cmp dword [ebx + 0xc], 0
lea esi, [ebx + 0xc]
jl 0x4e97b2
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x4e97b2
call fcn.0040c950
mov dword [ebp - 0x220], eax
mov ecx, edi
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x4e97a7
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x220]
lea esi, [eax + 0x10]
mov dword [ebp - 0x21c], esi
jmp 0x4e97c7
push dword [edx - 0xc]
lea ecx, [ebp - 0x21c]
push edx
call fcn.0040c9d0
mov esi, dword [ebp - 0x21c]
jmp 0x4e9b9d
mov edx, str.skin_skin_ru.skin
lea ecx, [ebp - 0x224]
call fcn.0048e4f0
mov byte [ebp - 4], 0x12
lea ebx, [esi - 0x10]
mov edx, dword [eax]
or edi, 0xffffffff
lea ecx, [edx - 0x10]
cmp ecx, ebx
je 0x4e9842
cmp dword [ebx + 0xc], 0
lea esi, [ebx + 0xc]
jl 0x4e982d
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x4e982d
call fcn.0040c950
mov dword [ebp - 0x220], eax
mov ecx, edi
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x4e9822
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x220]
lea esi, [eax + 0x10]
mov dword [ebp - 0x21c], esi
jmp 0x4e9842
push dword [edx - 0xc]
lea ecx, [ebp - 0x21c]
push edx
call fcn.0040c9d0
mov esi, dword [ebp - 0x21c]
jmp 0x4e9b9d
mov byte [ebp - 4], 2
mov edx, 0x6b88a0
push str.skin_skin_tr.skin
lea ecx, [ebp - 0x224]
call fcn.0048e450
lea ebx, [esi - 0x10]
mov dword [ebp - 0x228], 1
add esp, 4
or edi, 0xffffffff
mov edx, dword [eax]
lea ecx, [edx - 0x10]
cmp ecx, ebx
je 0x4e98cf
cmp dword [ebx + 0xc], 0
lea esi, [ebx + 0xc]
jl 0x4e98ba
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x4e98ba
call fcn.0040c950
mov dword [ebp - 0x220], eax
mov ecx, edi
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x4e98af
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x220]
lea esi, [eax + 0x10]
mov dword [ebp - 0x21c], esi
jmp 0x4e98cf
push dword [edx - 0xc]
lea ecx, [ebp - 0x21c]
push edx
call fcn.0040c9d0
mov esi, dword [ebp - 0x21c]
mov eax, 1
mov dword [ebp - 0x228], eax
and eax, 0xfffffffe
mov dword [ebp - 0x228], eax
jmp 0x4e9b9d
cmp eax, 0x479
ja 0x4e9a7e
je 0x4e9a03
sub eax, 0x421
je 0x4e9988
sub eax, 0x54
jne case.0x4e95cf.861
mov edx, str.skin_skin_de.skin
lea ecx, [ebp - 0x224]
call fcn.0048e4f0
mov byte [ebp - 4], 6
lea ebx, [esi - 0x10]
mov edx, dword [eax]
or edi, 0xffffffff
lea ecx, [edx - 0x10]
cmp ecx, ebx
je 0x4e9983
cmp dword [ebx + 0xc], 0
lea esi, [ebx + 0xc]
jl 0x4e996e
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x4e996e
call fcn.0040c950
mov dword [ebp - 0x220], eax
mov ecx, edi
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x4e9963
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x220]
lea esi, [eax + 0x10]
mov dword [ebp - 0x21c], esi
jmp 0x4e9983
push dword [edx - 0xc]
lea ecx, [ebp - 0x21c]
push edx
call fcn.0040c9d0
mov esi, dword [ebp - 0x21c]
jmp 0x4e9b9d
mov edx, str.skin_skin_id.skin
lea ecx, [ebp - 0x224]
call fcn.0048e4f0
mov byte [ebp - 4], 0x14
lea ebx, [esi - 0x10]
mov edx, dword [eax]
or edi, 0xffffffff
lea ecx, [edx - 0x10]
cmp ecx, ebx
je 0x4e99fe
cmp dword [ebx + 0xc], 0
lea esi, [ebx + 0xc]
jl 0x4e99e9
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x4e99e9
call fcn.0040c950
mov dword [ebp - 0x220], eax
mov ecx, edi
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x4e99de
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x220]
lea esi, [eax + 0x10]
mov dword [ebp - 0x21c], esi
jmp 0x4e99fe
push dword [edx - 0xc]
lea ecx, [ebp - 0x21c]
push edx
call fcn.0040c9d0
mov esi, dword [ebp - 0x21c]
jmp 0x4e9b9d
mov edx, str.skin_skin_es.skin
lea ecx, [ebp - 0x224]
call fcn.0048e4f0
mov byte [ebp - 4], 0xc
lea ebx, [esi - 0x10]
mov edx, dword [eax]
or edi, 0xffffffff
lea ecx, [edx - 0x10]
cmp ecx, ebx
je 0x4e9a79
cmp dword [ebx + 0xc], 0
lea esi, [ebx + 0xc]
jl 0x4e9a64
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x4e9a64
call fcn.0040c950
mov dword [ebp - 0x220], eax
mov ecx, edi
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x4e9a59
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x220]
lea esi, [eax + 0x10]
mov dword [ebp - 0x21c], esi
jmp 0x4e9a79
push dword [edx - 0xc]
lea ecx, [ebp - 0x21c]
push edx
call fcn.0040c9d0
mov esi, dword [ebp - 0x21c]
jmp 0x4e9b9d
cmp eax, 0x551
je 0x4e9b27
mov byte [ebp - 4], 0x16
mov edx, 0x6b88a0
push str.skin_skin_en.skin
lea ecx, [ebp - 0x224]
call fcn.0048e450
lea ebx, [esi - 0x10]
mov dword [ebp - 0x228], 2
add esp, 4
or edi, 0xffffffff
mov edx, dword [eax]
lea ecx, [edx - 0x10]
cmp ecx, ebx
je 0x4e9b11
cmp dword [ebx + 0xc], 0
lea esi, [ebx + 0xc]
jl 0x4e9afc
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x4e9afc
call fcn.0040c950
mov dword [ebp - 0x220], eax
mov ecx, edi
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x4e9af1
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x220]
lea esi, [eax + 0x10]
mov dword [ebp - 0x21c], esi
jmp 0x4e9b11
push dword [edx - 0xc]
lea ecx, [ebp - 0x21c]
push edx
call fcn.0040c9d0
mov esi, dword [ebp - 0x21c]
mov eax, 2
mov dword [ebp - 0x228], eax
and eax, 0xfffffffd
mov dword [ebp - 0x228], eax
jmp 0x4e9b9d
mov edx, str.skin_skin_ko.skin
lea ecx, [ebp - 0x224]
call fcn.0048e4f0
mov byte [ebp - 4], 8
lea ebx, [esi - 0x10]
mov edx, dword [eax]
or edi, 0xffffffff
lea ecx, [edx - 0x10]
cmp ecx, ebx
je 0x4e9b9d
cmp dword [ebx + 0xc], 0
lea esi, [ebx + 0xc]
jl 0x4e9b88
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x4e9b88
call fcn.0040c950
mov dword [ebp - 0x220], eax
mov ecx, edi
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x4e9b7d
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x220]
lea esi, [eax + 0x10]
mov dword [ebp - 0x21c], esi
jmp 0x4e9b9d
push dword [edx - 0xc]
lea ecx, [ebp - 0x21c]
push edx
call fcn.0040c9d0
mov esi, dword [ebp - 0x21c]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x224]
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4e9bbe
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4e9c92
xor eax, eax
push esi
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.005bb8c7
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov ebx, dword [ebp - 0x22c]
lea ecx, [ebp - 0x218]
add ebx, 0x7c
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e9c10
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, ebx
call fcn.0040c9d0
push 1
push 0x64f4f8
mov ecx, ebx
call fcn.0040ceb0
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov edx, eax
mov eax, dword [ebp - 0x22c]
add eax, 0x78
mov dword [ebp - 0x220], eax
test edx, edx
jne 0x4e9c67
xor ecx, ecx
push ecx
push edx
mov ecx, eax
call fcn.0040c9d0
mov bl, 1
jmp 0x4e9c94
mov ecx, edx
lea ebx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e9c70
mov eax, dword [ebp - 0x220]
sub ecx, ebx
sar ecx, 1
push ecx
push edx
mov ecx, eax
call fcn.0040c9d0
mov bl, 1
jmp 0x4e9c94
xor bl, bl
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x4e9cb0
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
jmp 0x4e9d25
lea esi, [eax + 0x84]
call dword [sym.imp.ycomuiu.dll_public:_static_struct_HINSTANCE______cdecl_DuiLib::CPaintManagerUI::GetInstance_void_]
push 0x659fb4
mov edi, eax
push 0xda
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x4e9d08
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x220], eax
test eax, eax
je 0x4e9d08
test esi, esi
je 0x4e9cff
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esi], eax
mov eax, dword [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
jmp 0x4e9d0a
xor eax, eax
mov ecx, dword [ebp - 0x22c]
mov dword [ecx + 0x80], eax
test eax, eax
je 0x4e9d23
cmp dword [esi], 0
jbe 0x4e9d23
mov al, 1
jmp 0x4e9d25
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055f9be
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0040b250
nop
push ecx
xchg edi, eax
dec esi
add byte [ebx - 0x6a], bl
dec esi
add dh, dl
xchg esi, eax
dec esi
add ah, cl
xchg edi, eax
dec esi
add dh, dl
xchg ebp, eax
dec esi
add byte [ecx + 0x4e9a], cl
add eax, 0x5020105
add eax, dword [84215045]
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add al, 204
int3