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

Disassembly:
push ebp
lea ebp, [esp - 0x1148]
mov eax, 0x1148
call fcn.00448bd0
push 0xffffffffffffffff
push 0x4b432b
mov eax, dword fs:[0]
push eax
sub esp, 0xc4
mov eax, dword [0x4f5a90]
xor eax, ebp
mov dword [ebp + 0x1144], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x1150]
mov edi, ecx
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0x58], edi
mov dword [edi + 4], 1
call fcn.00466670
xor ebx, ebx
cmp dword [edi], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
je 0x408f63
push 0x4bada4
push str.Skin
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, ebx
jne 0x408fe9
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc0]
call fcn.004019e9
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1144]
xor ecx, ebp
call fcn.004482ff
add ebp, 0x1148
leave
ret 4
lea eax, [edi + 0x14]
push eax
lea eax, [ebp + 0x618]
push str._sSkinSkin.xml
push eax
call fcn.00448afe
add esp, 0xc
lea eax, [ebp + 0x618]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x408f2d
lea eax, [ebp + 0xa28]
push eax
lea eax, [ebp + 0x618]
push eax
call fcn.0040b788
pop ecx
pop ecx
push ebx
lea eax, [ebp + 0xa28]
push eax
lea ecx, [ebp - 0xc0]
call fcn.00467460
test al, al
je 0x408f12
mov dword [edi + 4], ebx
push str.TheSkin
lea ecx, [ebp - 0xc0]
call fcn.00465bd0
cmp eax, ebx
jne 0x40903a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc0]
call fcn.004019e9
mov eax, ebx
jmp 0x408f3e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push esi
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea edi, [esi + 1]
push edi
call fcn.0042d4e7
push edi
push ebx
push eax
mov dword [ebp - 0x10], eax
call fcn.00448590
push esi
push dword [ebp - 0x18]
push dword [ebp - 0x10]
call fcn.00448450
add esp, 0x1c
push ebx
push ebx
push dword [ebp - 0x10]
lea ecx, [ebp - 0xc0]
call fcn.00468930
jmp 0x408fbf
mov ecx, eax
call fcn.00465c70
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x24], esi
je 0x4095a4
jmp 0x409053
mov esi, dword [ebp - 0x24]
push 0x14
call fcn.0042d4b7
pop ecx
cmp eax, ebx
je 0x409070
mov dword [eax], method.VectorParameter_class_MapParameter_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____.virtual_0
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
jmp 0x409072
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x20]
lea ecx, [ebp + 0xd34]
add eax, 8
push ecx
push eax
mov byte [ebp - 4], bl
call fcn.0040b7b6
push 0x14
call fcn.0042d4b7
add esp, 0xc
cmp eax, ebx
je 0x4090aa
mov dword [eax], vtable.VectorParameter_class_MapParameter_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____.0
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
jmp 0x4090ac
xor eax, eax
push 8
mov byte [ebp - 4], bl
mov dword [ebp - 0x4c], eax
call fcn.0042d4b7
pop ecx
mov dword [ebp - 0x20], eax
cmp eax, ebx
mov byte [ebp - 4], 3
je 0x4090ce
mov ecx, eax
call fcn.00402886
jmp 0x4090d0
xor eax, eax
mov dword [ebp - 0x54], eax
lea eax, [esi + 0x2c]
mov edi, dword [eax + 0x20]
cmp edi, eax
mov byte [ebp - 4], bl
je 0x40917f
cmp edi, ebx
je 0x40917f
mov eax, dword [edi + 0x14]
mov esi, dword [edi + 0x18]
add eax, 8
add esi, 8
cmp eax, ebx
je 0x40916b
cmp esi, ebx
je 0x40916b
lea ecx, [ebp + 0xb2c]
push ecx
push eax
call fcn.0040b7b6
lea eax, [ebp + 0xf3c]
push eax
push esi
call fcn.0040b7b6
add esp, 0x10
lea eax, [ebp + 0xf3c]
push eax
lea ecx, [ebp - 0x40]
call fcn.004022a8
lea eax, [ebp + 0xb2c]
push eax
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 4
call fcn.004022a8
mov ecx, dword [ebp - 0x54]
mov eax, dword [ecx]
lea edx, [ebp - 0x40]
push edx
lea edx, [ebp - 0x74]
push edx
mov byte [ebp - 4], 5
call dword [eax]
push ebx
push 1
lea ecx, [ebp - 0x74]
call fcn.00401b9c
push ebx
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], bl
call fcn.00401b9c
mov ecx, edi
call fcn.00465e60
mov edi, eax
cmp edi, ebx
jne 0x4090ec
mov esi, dword [ebp - 0x24]
mov edi, str.OurSelf
push edi
lea ecx, [ebp - 0x40]
call fcn.004022a8
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ecx]
lea edx, [ebp - 0x54]
push edx
lea edx, [ebp - 0x40]
push edx
mov byte [ebp - 4], 6
call dword [eax]
push ebx
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], bl
call fcn.00401b9c
push edi
lea ecx, [ebp - 0x40]
call fcn.004022a8
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx]
lea edx, [ebp - 0x4c]
push edx
lea edx, [ebp - 0x40]
push edx
mov byte [ebp - 4], 7
call dword [eax]
push ebx
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], bl
call fcn.00401b9c
lea eax, [ebp + 0xd34]
push str.SkinConfigure
push eax
call fcn.00448418
test eax, eax
pop ecx
pop ecx
mov ecx, esi
jne 0x409371
call fcn.00465c70
jmp 0x409361
mov esi, dword [ebp - 0x14]
mov eax, dword [esi + 0x20]
lea ecx, [ebp + 0x820]
add eax, 8
push ecx
push eax
call fcn.0040b7b6
push 0x14
call fcn.0042d4b7
add esp, 0xc
cmp eax, ebx
je 0x409234
mov dword [eax], vtable.VectorParameter_class_MapParameter_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____.0
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
jmp 0x409236
xor eax, eax
push 8
mov byte [ebp - 4], bl
mov dword [ebp - 0x50], eax
call fcn.0042d4b7
pop ecx
mov dword [ebp - 0x20], eax
cmp eax, ebx
mov byte [ebp - 4], 9
je 0x409258
mov ecx, eax
call fcn.00402886
jmp 0x40925a
xor eax, eax
mov ecx, esi
mov byte [ebp - 4], bl
mov dword [ebp - 0x44], eax
call fcn.00465c70
jmp 0x4092f5
mov eax, dword [esi + 0x20]
lea ecx, [ebp + 0x410]
add eax, 8
push ecx
push eax
call fcn.0040b7b6
pop ecx
pop ecx
mov ecx, dword [esi + 0x18]
cmp ecx, ebx
je 0x4092ee
mov eax, dword [ecx]
call dword [eax + 0x30]
cmp eax, ebx
je 0x4092ee
mov eax, dword [eax + 0x20]
lea ecx, [ebp]
add eax, 8
push ecx
push eax
call fcn.0040b7b6
pop ecx
pop ecx
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x74]
call fcn.004022a8
lea eax, [ebp + 0x410]
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xa
call fcn.004022a8
mov ecx, dword [ebp - 0x44]
mov eax, dword [ecx]
lea edx, [ebp - 0x74]
push edx
lea edx, [ebp - 0x40]
push edx
mov byte [ebp - 4], 0xb
call dword [eax]
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.00401b9c
push ebx
push 1
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], bl
call fcn.00401b9c
mov ecx, esi
call fcn.00465ce0
mov esi, eax
cmp esi, ebx
jne 0x40926c
push edi
lea ecx, [ebp - 0x40]
call fcn.004022a8
mov ecx, dword [ebp - 0x50]
mov eax, dword [ecx]
lea edx, [ebp - 0x44]
push edx
lea edx, [ebp - 0x40]
push edx
mov byte [ebp - 4], 0xc
call dword [eax]
push ebx
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], bl
call fcn.00401b9c
lea eax, [ebp + 0x820]
push eax
lea ecx, [ebp - 0x40]
call fcn.004022a8
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx]
lea edx, [ebp - 0x50]
push edx
lea edx, [ebp - 0x40]
push edx
mov byte [ebp - 4], 0xd
call dword [eax]
push ebx
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], bl
call fcn.00401b9c
mov ecx, dword [ebp - 0x14]
call fcn.00465ce0
cmp eax, ebx
mov dword [ebp - 0x14], eax
jne 0x4091ff
jmp 0x40953c
call fcn.00465c70
jmp 0x409531
push 0x14
call fcn.0042d4b7
pop ecx
cmp eax, ebx
je 0x409398
mov dword [eax], vtable.VectorParameter_class_MapParameter_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____.0
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
jmp 0x40939a
xor eax, eax
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x20]
lea ecx, [ebp + 0x820]
add eax, 8
push ecx
push eax
mov byte [ebp - 4], bl
call fcn.0040b7b6
pop ecx
pop ecx
mov ecx, esi
call fcn.00465c70
jmp 0x4094ee
push 8
call fcn.0042d4b7
pop ecx
mov dword [ebp - 0x78], eax
cmp eax, ebx
mov byte [ebp - 4], 0xf
je 0x4093e0
mov ecx, eax
call fcn.00402886
jmp 0x4093e2
xor eax, eax
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x20]
mov esi, dword [eax + 0x4c]
add eax, 0x2c
cmp esi, eax
mov byte [ebp - 4], bl
je 0x4094b6
jmp 0x4094ae
mov eax, dword [esi + 0x14]
mov edi, dword [esi + 0x18]
lea ecx, [ebp + 0xb2c]
add eax, 8
push ecx
push eax
add edi, 8
call fcn.0040b7b6
lea eax, [ebp + 0xf3c]
push eax
push edi
call fcn.0040b7b6
lea eax, [ebp + 0xb2c]
push 0x4bad60
push eax
call fcn.00448418
add esp, 0x18
test eax, eax
jne 0x409457
lea eax, [ebp + 0xf3c]
push eax
lea eax, [ebp + 0x208]
push 0x4bae78
push eax
call fcn.00448afe
add esp, 0xc
lea eax, [ebp + 0xf3c]
push eax
lea ecx, [ebp - 0x74]
call fcn.004022a8
lea eax, [ebp + 0xb2c]
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x10
call fcn.004022a8
mov ecx, dword [ebp - 0x48]
mov eax, dword [ecx]
lea edx, [ebp - 0x74]
push edx
lea edx, [ebp - 0x40]
push edx
mov byte [ebp - 4], 0x11
call dword [eax]
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.00401b9c
push ebx
push 1
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], bl
call fcn.00401b9c
mov ecx, esi
call fcn.00465e60
mov esi, eax
cmp esi, ebx
jne 0x4093fe
lea eax, [ebp + 0x208]
push eax
lea ecx, [ebp - 0x40]
call fcn.004022a8
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx]
lea edx, [ebp - 0x48]
push edx
lea edx, [ebp - 0x40]
push edx
mov byte [ebp - 4], 0x12
call dword [eax]
push ebx
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], bl
call fcn.00401b9c
mov ecx, dword [ebp - 0x20]
call fcn.00465ce0
cmp eax, ebx
mov dword [ebp - 0x20], eax
jne 0x4093c4
lea eax, [ebp + 0x820]
push eax
lea ecx, [ebp - 0x40]
call fcn.004022a8
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx]
lea edx, [ebp - 0x18]
push edx
lea edx, [ebp - 0x40]
push edx
mov byte [ebp - 4], 0x13
call dword [eax]
push ebx
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], bl
call fcn.00401b9c
mov ecx, dword [ebp - 0x14]
call fcn.00465ce0
cmp eax, ebx
mov dword [ebp - 0x14], eax
jne 0x40937b
lea eax, [ebp + 0xd34]
push eax
lea ecx, [ebp - 0x40]
call fcn.004022a8
mov esi, dword [ebp - 0x58]
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx]
lea edx, [ebp - 0x1c]
push edx
lea edx, [ebp - 0x40]
push edx
mov byte [ebp - 4], 0x14
call dword [eax]
push ebx
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], bl
call fcn.00401b9c
push dword [ebp - 0x1c]
lea eax, [ebp + 0xd34]
push eax
mov ecx, esi
call fcn.00408a44
push dword [ebp - 0x1c]
lea eax, [ebp + 0xd34]
push eax
mov ecx, esi
call fcn.00406f99
mov ecx, dword [ebp - 0x24]
call fcn.00465ce0
cmp eax, ebx
mov dword [ebp - 0x24], eax
jne 0x409050
cmp dword [ebp - 0x10], ebx
je 0x4095b2
push dword [ebp - 0x10]
call fcn.0042d4e2
pop ecx
xor ebx, ebx
inc ebx
jmp 0x408fd3