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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a9e11
mov eax, dword fs:[0]
push eax
mov eax, 0x11f4
call fcn.00554f90
mov eax, dword [0x630f50]
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 edi, ecx
mov dword [ebp - 0x11b4], edi
mov esi, dword [ebp + 8]
xor ebx, ebx
inc ebx
lea ecx, [ebp - 0x1200]
mov dword [edi + 4], ebx
call fcn.00578190
and dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x1190], eax
cmp dword [edi], eax
je 0x40cc65
push 0x5bf304
push str.Skin
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x40d622
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 ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea esi, [edi + 1]
push esi
call fcn.00432f36
push esi
mov esi, eax
push 0
push esi
mov dword [ebp - 0x1190], eax
call fcn.005534a0
push edi
push ebx
push esi
call fcn.00553b80
add esp, 0x1c
push 0
push 0
push esi
jmp 0x40cd23
lea eax, [edi + 0x10]
push eax
lea eax, [ebp - 0x1154]
push str._sSkinSkin.xml
push eax
call fcn.00554d64
add esp, 0xc
lea eax, [ebp - 0x1154]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40d622
lea eax, [ebp - 0xb3c]
push eax
lea eax, [ebp - 0x1154]
push eax
call fcn.0041059f
pop ecx
pop ecx
push 0
lea eax, [ebp - 0xb3c]
push eax
lea ecx, [ebp - 0x1200]
call fcn.00578f80
test al, al
jne 0x40cd33
push 0x5bf304
push str.Skin
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x40d622
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 ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea esi, [edi + 1]
push esi
call fcn.00432f36
push esi
push 0
push eax
mov dword [ebp - 0x1190], eax
call fcn.005534a0
push edi
mov edi, dword [ebp - 0x1190]
push ebx
push edi
call fcn.00553b80
add esp, 0x1c
push 0
push 0
push edi
lea ecx, [ebp - 0x1200]
call fcn.0057a440
xor ebx, ebx
inc ebx
jmp 0x40cd37
and dword [edi + 4], 0
push str.TheSkin
lea ecx, [ebp - 0x1200]
call fcn.005776f0
test eax, eax
je 0x40d622
mov ecx, eax
call fcn.00577790
mov edi, eax
mov dword [ebp - 0x118c], edi
jmp 0x40d607
push 0x10
call fcn.00432f09
pop ecx
test eax, eax
je 0x40cd82
xor ecx, ecx
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 + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
jmp 0x40cd84
xor eax, eax
mov dword [ebp - 0x1188], eax
mov eax, dword [edi + 0x20]
lea ecx, [ebp - 0x830]
add eax, 8
push ecx
push eax
call fcn.004105ce
push 0x10
call fcn.00432f09
add esp, 0xc
test eax, eax
je 0x40cdbe
xor ecx, ecx
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 + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
jmp 0x40cdc0
xor eax, eax
push 8
mov dword [ebp - 0x1198], eax
call fcn.00432f09
pop ecx
mov dword [ebp - 0x1194], eax
mov byte [ebp - 4], bl
test eax, eax
je 0x40cde4
mov ecx, eax
call fcn.004012a4
jmp 0x40cde6
xor eax, eax
mov dword [ebp - 0x11a4], eax
lea eax, [edi + 0x2c]
mov byte [ebp - 4], 0
mov esi, dword [eax + 0x20]
cmp esi, eax
je 0x40cf15
test esi, esi
je 0x40cf15
mov edi, dword [esi + 0x18]
mov eax, dword [esi + 0x14]
add edi, 8
add eax, 8
je 0x40cefe
test edi, edi
je 0x40cefe
lea ecx, [ebp - 0x420]
push ecx
push eax
call fcn.004105ce
lea eax, [ebp - 0x218]
push eax
push edi
call fcn.004105ce
and dword [ebp - 0x115c], 0
add esp, 0x10
xor eax, eax
push 7
pop edi
mov dword [ebp - 0x1158], edi
mov word [ebp - 0x116c], ax
cmp word [ebp - 0x218], ax
je 0x40ce6c
lea eax, [ebp - 0x218]
push eax
call fcn.00553cf3
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x116c]
call fcn.00402120
and dword [ebp - 0x1174], 0
xor eax, eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x1170], edi
mov word [ebp - 0x1184], ax
cmp word [ebp - 0x420], ax
je 0x40ceaf
lea eax, [ebp - 0x420]
push eax
call fcn.00553cf3
pop ecx
push eax
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x1184]
call fcn.00402120
mov ecx, dword [ebp - 0x11a4]
lea edx, [ebp - 0x116c]
mov eax, dword [ecx]
push edx
lea edx, [ebp - 0x1184]
push edx
mov byte [ebp - 4], 3
call dword [eax]
push 0
push ebx
lea ecx, [ebp - 0x1184]
call fcn.00402004
push 0
push ebx
lea ecx, [ebp - 0x116c]
mov byte [ebp - 4], 0
call fcn.00402004
mov ecx, esi
call fcn.00577980
mov esi, eax
test esi, esi
jne 0x40ce06
mov edi, dword [ebp - 0x118c]
and dword [ebp - 0x115c], 0
push 7
pop esi
xor eax, eax
push 0x5bfee0
mov dword [ebp - 0x1158], esi
mov word [ebp - 0x116c], ax
call fcn.00553cf3
pop ecx
push eax
push 0x5bfee0
lea ecx, [ebp - 0x116c]
call fcn.00402120
mov ecx, dword [ebp - 0x1198]
lea edx, [ebp - 0x11a4]
mov eax, dword [ecx]
push edx
lea edx, [ebp - 0x116c]
push edx
mov byte [ebp - 4], 4
call dword [eax]
push 0
push ebx
lea ecx, [ebp - 0x116c]
mov byte [ebp - 4], 0
call fcn.00402004
and dword [ebp - 0x115c], 0
mov dword [ebp - 0x1158], esi
xor eax, eax
mov esi, 0x5bfee0
push esi
mov word [ebp - 0x116c], ax
call fcn.00553cf3
pop ecx
push eax
push esi
lea ecx, [ebp - 0x116c]
call fcn.00402120
mov ecx, dword [ebp - 0x1188]
lea edx, [ebp - 0x1198]
mov eax, dword [ecx]
push edx
lea edx, [ebp - 0x116c]
push edx
mov byte [ebp - 4], 5
call dword [eax]
push 0
push ebx
lea ecx, [ebp - 0x116c]
mov byte [ebp - 4], 0
call fcn.00402004
lea eax, [ebp - 0x830]
push str.SkinConfigure
push eax
call fcn.00553cb5
pop ecx
pop ecx
mov ecx, edi
test eax, eax
jne 0x40d26b
call fcn.00577790
jmp 0x40d25c
mov ecx, dword [edi + 0x20]
lea eax, [ebp - 0x628]
add ecx, 8
push eax
push ecx
call fcn.004105ce
push 0x10
call fcn.00432f09
add esp, 0xc
test eax, eax
je 0x40d030
xor ecx, ecx
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 + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
jmp 0x40d032
xor eax, eax
push 8
mov dword [ebp - 0x11a8], eax
call fcn.00432f09
pop ecx
mov dword [ebp - 0x1194], eax
mov byte [ebp - 4], 6
test eax, eax
je 0x40d057
mov ecx, eax
call fcn.004012a4
jmp 0x40d059
xor eax, eax
mov ecx, edi
mov byte [ebp - 4], 0
mov dword [ebp - 0x11a0], eax
call fcn.00577790
jmp 0x40d17e
mov ecx, dword [esi + 0x20]
lea eax, [ebp - 0xf4c]
add ecx, 8
push eax
push ecx
call fcn.004105ce
pop ecx
pop ecx
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x40d177
mov eax, dword [ecx]
call dword [eax + 0x30]
test eax, eax
je 0x40d177
mov eax, dword [eax + 0x20]
lea ecx, [ebp - 0xa38]
add eax, 8
push ecx
push eax
call fcn.004105ce
and dword [ebp - 0x1174], 0
xor eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x1170], 7
mov word [ebp - 0x1184], ax
cmp word [ebp - 0xa38], ax
je 0x40d0e1
lea eax, [ebp - 0xa38]
push eax
call fcn.00553cf3
pop ecx
push eax
lea eax, [ebp - 0xa38]
push eax
lea ecx, [ebp - 0x1184]
call fcn.00402120
and dword [ebp - 0x115c], 0
xor eax, eax
mov byte [ebp - 4], 7
mov dword [ebp - 0x1158], 7
mov word [ebp - 0x116c], ax
cmp word [ebp - 0xf4c], ax
je 0x40d128
lea eax, [ebp - 0xf4c]
push eax
call fcn.00553cf3
pop ecx
push eax
lea eax, [ebp - 0xf4c]
push eax
lea ecx, [ebp - 0x116c]
call fcn.00402120
mov ecx, dword [ebp - 0x11a0]
lea edx, [ebp - 0x1184]
mov eax, dword [ecx]
push edx
lea edx, [ebp - 0x116c]
push edx
mov byte [ebp - 4], 8
call dword [eax]
push 0
push ebx
lea ecx, [ebp - 0x116c]
call fcn.00402004
push 0
push ebx
lea ecx, [ebp - 0x1184]
mov byte [ebp - 4], 0
call fcn.00402004
mov ecx, esi
call fcn.00577800
mov esi, eax
test esi, esi
jne 0x40d06f
and dword [ebp - 0x115c], eax
push 7
pop esi
push 0x5bfee0
mov dword [ebp - 0x1158], esi
mov word [ebp - 0x116c], ax
call fcn.00553cf3
pop ecx
push eax
push 0x5bfee0
lea ecx, [ebp - 0x116c]
call fcn.00402120
mov ecx, dword [ebp - 0x11a8]
lea edx, [ebp - 0x11a0]
mov eax, dword [ecx]
push edx
lea edx, [ebp - 0x116c]
push edx
mov byte [ebp - 4], 9
call dword [eax]
push 0
push ebx
lea ecx, [ebp - 0x116c]
mov byte [ebp - 4], 0
call fcn.00402004
and dword [ebp - 0x115c], 0
xor eax, eax
mov dword [ebp - 0x1158], esi
mov word [ebp - 0x116c], ax
cmp word [ebp - 0x628], ax
je 0x40d214
lea eax, [ebp - 0x628]
push eax
call fcn.00553cf3
pop ecx
push eax
lea eax, [ebp - 0x628]
push eax
lea ecx, [ebp - 0x116c]
call fcn.00402120
mov ecx, dword [ebp - 0x1188]
lea edx, [ebp - 0x11a8]
mov eax, dword [ecx]
push edx
lea edx, [ebp - 0x116c]
push edx
mov byte [ebp - 4], 0xa
call dword [eax]
push 0
push ebx
lea ecx, [ebp - 0x116c]
mov byte [ebp - 4], 0
call fcn.00402004
mov ecx, edi
call fcn.00577800
mov edi, eax
test edi, edi
jne 0x40cffc
jmp 0x40d556
call fcn.00577790
mov esi, eax
mov dword [ebp - 0x1194], esi
test esi, esi
je 0x40d55c
push 0x10
call fcn.00432f09
pop ecx
test eax, eax
je 0x40d29f
xor ecx, ecx
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 + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
jmp 0x40d2a1
xor eax, eax
mov dword [ebp - 0x11ac], eax
mov eax, dword [esi + 0x20]
lea ecx, [ebp - 0x628]
add eax, 8
push ecx
push eax
call fcn.004105ce
pop ecx
pop ecx
mov ecx, esi
call fcn.00577790
mov edi, eax
mov dword [ebp - 0x119c], edi
test edi, edi
je 0x40d4ce
push 8
call fcn.00432f09
pop ecx
mov dword [ebp - 0x11b8], eax
mov byte [ebp - 4], 0xb
test eax, eax
je 0x40d2f2
mov ecx, eax
call fcn.004012a4
jmp 0x40d2f4
xor eax, eax
mov dword [ebp - 0x11b0], eax
lea eax, [edi + 0x2c]
mov byte [ebp - 4], 0
mov edi, dword [eax + 0x20]
cmp edi, eax
je 0x40d43c
jmp 0x40d434
mov eax, dword [edi + 0x14]
mov esi, dword [edi + 0x18]
lea ecx, [ebp - 0x420]
add eax, 8
push ecx
push eax
add esi, 8
call fcn.004105ce
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.004105ce
lea eax, [ebp - 0x420]
push 0x5bf354
push eax
call fcn.00553cb5
add esp, 0x18
test eax, eax
jne 0x40d36a
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0xd44]
push 0x5bf428
push eax
call fcn.00554d64
add esp, 0xc
and dword [ebp - 0x1174], 0
push 7
xor eax, eax
pop esi
mov dword [ebp - 0x1170], esi
mov word [ebp - 0x1184], ax
cmp word [ebp - 0x218], ax
je 0x40d399
lea eax, [ebp - 0x218]
push eax
call fcn.00553cf3
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x1184]
call fcn.00402120
and dword [ebp - 0x115c], 0
xor eax, eax
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x1158], esi
mov word [ebp - 0x116c], ax
cmp word [ebp - 0x420], ax
je 0x40d3dc
lea eax, [ebp - 0x420]
push eax
call fcn.00553cf3
pop ecx
push eax
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x116c]
call fcn.00402120
mov ecx, dword [ebp - 0x11b0]
lea edx, [ebp - 0x1184]
mov eax, dword [ecx]
push edx
lea edx, [ebp - 0x116c]
push edx
mov byte [ebp - 4], 0xd
call dword [eax]
push 0
push ebx
lea ecx, [ebp - 0x116c]
call fcn.00402004
push 0
push ebx
lea ecx, [ebp - 0x1184]
mov byte [ebp - 4], 0
call fcn.00402004
mov ecx, edi
call fcn.00577980
mov edi, eax
test edi, edi
jne 0x40d311
and dword [ebp - 0x115c], 0
xor eax, eax
mov dword [ebp - 0x1158], 7
mov word [ebp - 0x116c], ax
cmp word [ebp - 0xd44], ax
je 0x40d46c
lea eax, [ebp - 0xd44]
push eax
call fcn.00553cf3
pop ecx
push eax
lea eax, [ebp - 0xd44]
push eax
lea ecx, [ebp - 0x116c]
call fcn.00402120
mov ecx, dword [ebp - 0x11ac]
lea edx, [ebp - 0x11b0]
mov eax, dword [ecx]
push edx
lea edx, [ebp - 0x116c]
push edx
mov byte [ebp - 4], 0xe
call dword [eax]
push 0
push ebx
lea ecx, [ebp - 0x116c]
mov byte [ebp - 4], 0
call fcn.00402004
mov ecx, dword [ebp - 0x119c]
call fcn.00577800
mov edi, eax
mov dword [ebp - 0x119c], eax
test edi, edi
jne 0x40d2d3
mov esi, dword [ebp - 0x1194]
and dword [ebp - 0x115c], 0
xor eax, eax
mov dword [ebp - 0x1158], 7
mov word [ebp - 0x116c], ax
cmp word [ebp - 0x628], ax
je 0x40d4fe
lea eax, [ebp - 0x628]
push eax
call fcn.00553cf3
pop ecx
push eax
lea eax, [ebp - 0x628]
push eax
lea ecx, [ebp - 0x116c]
call fcn.00402120
mov ecx, dword [ebp - 0x1188]
lea edx, [ebp - 0x11ac]
mov eax, dword [ecx]
push edx
lea edx, [ebp - 0x116c]
push edx
mov byte [ebp - 4], 0xf
call dword [eax]
push 0
push ebx
lea ecx, [ebp - 0x116c]
mov byte [ebp - 4], 0
call fcn.00402004
mov ecx, esi
call fcn.00577800
mov esi, eax
mov dword [ebp - 0x1194], eax
test esi, esi
jne 0x40d280
mov edi, dword [ebp - 0x118c]
and dword [ebp - 0x115c], 0
xor eax, eax
mov dword [ebp - 0x1158], 7
mov word [ebp - 0x116c], ax
cmp word [ebp - 0x830], ax
je 0x40d58c
lea eax, [ebp - 0x830]
push eax
call fcn.00553cf3
pop ecx
push eax
lea eax, [ebp - 0x830]
push eax
lea ecx, [ebp - 0x116c]
call fcn.00402120
mov esi, dword [ebp - 0x11b4]
lea edx, [ebp - 0x1188]
mov ecx, dword [esi + 0xc]
push edx
mov eax, dword [ecx]
lea edx, [ebp - 0x116c]
push edx
mov byte [ebp - 4], 0x10
call dword [eax]
push 0
push ebx
lea ecx, [ebp - 0x116c]
mov byte [ebp - 4], 0
call fcn.00402004
push dword [ebp - 0x1188]
lea eax, [ebp - 0x830]
push eax
mov ecx, esi
call fcn.0040be98
push dword [ebp - 0x1188]
lea eax, [ebp - 0x830]
push eax
mov ecx, esi
call fcn.0040c2f8
mov ecx, edi
call fcn.00577800
mov edi, eax
mov dword [ebp - 0x118c], eax
test edi, edi
jne 0x40cd63
mov eax, dword [ebp - 0x1190]
test eax, eax
je 0x40d624
push eax
call fcn.00432f3f
pop ecx
jmp 0x40d624
xor ebx, ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1200]
call fcn.0040147e
mov eax, ebx
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.00553d0c
leave
ret 4