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

Disassembly:
push ebp
lea ebp, [esp - 0x1148]
mov eax, 0x1148
call fcn.100860f0
push 0xffffffffffffffff
push 0x1018099e
mov eax, dword fs:[0]
push eax
sub esp, 0xc4
mov eax, dword [0x10207390]
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 edi, dword [ebp + 0x1150]
mov esi, ecx
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0x1c], esi
mov dword [esi + 8], 1
call fcn.1005e8b0
xor ebx, ebx
cmp dword [esi], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
je 0x100573bc
push 0x101863dc
push str.Skin
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
jne 0x10057372
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc0]
call fcn.10005414
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.1008545e
add ebp, 0x1148
leave
ret 4
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push edi
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
push eax
call fcn.100621c1
mov esi, eax
lea eax, [edi + 1]
push eax
push ebx
push esi
mov dword [ebp - 0x18], esi
call fcn.10085bc0
push edi
push dword [ebp - 0x14]
push esi
call fcn.10086310
add esp, 0x1c
push ebx
push ebx
push esi
jmp 0x100574b8
cmp dword [esi + 0xc], ebx
je 0x100573f5
cmp dword [esi + 0x2c], 8
jb 0x100573cc
mov eax, dword [esi + 0x18]
jmp 0x100573cf
lea eax, [esi + 0x18]
push eax
lea eax, [ebp + 0xf3c]
push str._sTempSkinSkin.xml
push eax
call fcn.10004df5
add esp, 0xc
lea eax, [ebp + 0xf3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10057418
cmp dword [esi + 0x2c], 8
jb 0x10057400
mov eax, dword [esi + 0x18]
jmp 0x10057403
lea eax, [esi + 0x18]
push eax
lea eax, [ebp + 0xf3c]
push str._sSkinSkin.xml
push eax
call fcn.10004df5
add esp, 0xc
lea eax, [ebp + 0xf3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1005733c
lea eax, [ebp + 0xa28]
push eax
lea eax, [ebp + 0xf3c]
push eax
call fcn.1001c2f8
pop ecx
pop ecx
push ebx
lea eax, [ebp + 0xa28]
push eax
lea ecx, [ebp - 0xc0]
call fcn.1005f8f0
test al, al
jne 0x100574c8
push 0x101863dc
push str.Skin
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
je 0x1005733c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push edi
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea edi, [esi + 1]
push edi
call fcn.100621c1
push edi
push ebx
push eax
mov dword [ebp - 0x18], eax
call fcn.10085bc0
push esi
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.10086310
add esp, 0x1c
push ebx
push ebx
push dword [ebp - 0x18]
lea ecx, [ebp - 0xc0]
call fcn.10060db0
mov esi, dword [ebp - 0x1c]
jmp 0x100574cb
mov dword [esi + 8], ebx
push str.TheSkin
lea ecx, [ebp - 0xc0]
call fcn.1005ddb0
cmp eax, ebx
jne 0x100574f5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc0]
call fcn.10005414
mov eax, ebx
jmp 0x1005734d
mov ecx, eax
call fcn.1005de50
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x20], edi
je 0x10057a4d
jmp 0x1005750e
mov edi, dword [ebp - 0x20]
push 0x14
call fcn.10062191
pop ecx
cmp eax, ebx
je 0x1005752b
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 0x1005752d
xor eax, eax
mov dword [ebp - 0x28], eax
mov eax, dword [edi + 0x20]
lea ecx, [ebp + 0x618]
add eax, 8
push ecx
push eax
mov byte [ebp - 4], bl
call fcn.1001c35f
push 0x14
call fcn.10062191
add esp, 0xc
cmp eax, ebx
je 0x10057565
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 0x10057567
xor eax, eax
push 8
mov byte [ebp - 4], bl
mov dword [ebp - 0x48], eax
call fcn.10062191
pop ecx
mov dword [ebp - 0x24], eax
cmp eax, ebx
mov byte [ebp - 4], 3
je 0x10057589
mov ecx, eax
call fcn.1000754d
jmp 0x1005758b
xor eax, eax
mov dword [ebp - 0x50], eax
lea eax, [edi + 0x2c]
mov edi, dword [eax + 0x20]
cmp edi, eax
mov byte [ebp - 4], bl
je 0x1005763a
cmp edi, ebx
je 0x1005763a
mov eax, dword [edi + 0x14]
mov esi, dword [edi + 0x18]
add eax, 8
add esi, 8
cmp eax, ebx
je 0x10057626
cmp esi, ebx
je 0x10057626
lea ecx, [ebp + 0xb2c]
push ecx
push eax
call fcn.1001c35f
lea eax, [ebp + 0xd34]
push eax
push esi
call fcn.1001c35f
add esp, 0x10
lea eax, [ebp + 0xd34]
push eax
lea ecx, [ebp - 0x44]
call fcn.100015f0
lea eax, [ebp + 0xb2c]
push eax
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 4
call fcn.100015f0
mov ecx, dword [ebp - 0x50]
mov eax, dword [ecx]
lea edx, [ebp - 0x44]
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.100017c0
push ebx
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], bl
call fcn.100017c0
mov ecx, edi
call fcn.1005e0a0
mov edi, eax
cmp edi, ebx
jne 0x100575a7
mov esi, dword [ebp - 0x1c]
mov edi, str.OurSelf
push edi
lea ecx, [ebp - 0x44]
call fcn.100015f0
mov ecx, dword [ebp - 0x48]
mov eax, dword [ecx]
lea edx, [ebp - 0x50]
push edx
lea edx, [ebp - 0x44]
push edx
mov byte [ebp - 4], 6
call dword [eax]
push ebx
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], bl
call fcn.100017c0
push edi
lea ecx, [ebp - 0x44]
call fcn.100015f0
mov ecx, dword [ebp - 0x28]
mov eax, dword [ecx]
lea edx, [ebp - 0x48]
push edx
lea edx, [ebp - 0x44]
push edx
mov byte [ebp - 4], 7
call dword [eax]
push ebx
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], bl
call fcn.100017c0
lea eax, [ebp + 0x618]
push str.SkinConfigure
push eax
call fcn.100862d7
test eax, eax
pop ecx
pop ecx
mov ecx, dword [ebp - 0x20]
jne 0x10057837
call fcn.1005de50
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x10057a07
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x20]
lea ecx, [ebp + 0x820]
add eax, 8
push ecx
push eax
call fcn.1001c35f
push 0x14
call fcn.10062191
add esp, 0xc
cmp eax, ebx
je 0x100576f6
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 0x100576f8
xor eax, eax
push 8
mov byte [ebp - 4], bl
mov dword [ebp - 0x54], eax
call fcn.10062191
pop ecx
mov dword [ebp - 0x24], eax
cmp eax, ebx
mov byte [ebp - 4], 9
je 0x1005771a
mov ecx, eax
call fcn.1000754d
jmp 0x1005771c
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], bl
mov dword [ebp - 0x4c], eax
call fcn.1005de50
jmp 0x100577b8
mov eax, dword [esi + 0x20]
lea ecx, [ebp + 0x208]
add eax, 8
push ecx
push eax
call fcn.1001c35f
pop ecx
pop ecx
mov ecx, dword [esi + 0x18]
cmp ecx, ebx
je 0x100577b1
mov eax, dword [ecx]
call dword [eax + 0x30]
cmp eax, ebx
je 0x100577b1
mov eax, dword [eax + 0x20]
lea ecx, [ebp]
add eax, 8
push ecx
push eax
call fcn.1001c35f
pop ecx
pop ecx
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x74]
call fcn.100015f0
lea eax, [ebp + 0x208]
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0xa
call fcn.100015f0
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ecx]
lea edx, [ebp - 0x74]
push edx
lea edx, [ebp - 0x44]
push edx
mov byte [ebp - 4], 0xb
call dword [eax]
push ebx
push 1
lea ecx, [ebp - 0x44]
call fcn.100017c0
push ebx
push 1
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], bl
call fcn.100017c0
mov ecx, esi
call fcn.1005dec0
mov esi, eax
cmp esi, ebx
jne 0x1005772f
push edi
lea ecx, [ebp - 0x44]
call fcn.100015f0
mov ecx, dword [ebp - 0x54]
mov eax, dword [ecx]
lea edx, [ebp - 0x4c]
push edx
lea edx, [ebp - 0x44]
push edx
mov byte [ebp - 4], 0xc
call dword [eax]
push ebx
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], bl
call fcn.100017c0
lea eax, [ebp + 0x820]
push eax
lea ecx, [ebp - 0x44]
call fcn.100015f0
mov ecx, dword [ebp - 0x28]
mov eax, dword [ecx]
lea edx, [ebp - 0x54]
push edx
lea edx, [ebp - 0x44]
push edx
mov byte [ebp - 4], 0xd
call dword [eax]
push ebx
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], bl
call fcn.100017c0
mov ecx, dword [ebp - 0x10]
call fcn.1005dec0
cmp eax, ebx
mov dword [ebp - 0x10], eax
jne 0x100576c1
mov esi, dword [ebp - 0x1c]
jmp 0x10057a07
call fcn.1005de50
jmp 0x100579fc
push 0x14
call fcn.10062191
pop ecx
cmp eax, ebx
je 0x1005785e
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 0x10057860
xor eax, eax
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 0x20]
lea ecx, [ebp + 0x820]
add eax, 8
push ecx
push eax
mov byte [ebp - 4], bl
call fcn.1001c35f
pop ecx
pop ecx
mov ecx, edi
call fcn.1005de50
jmp 0x100579b9
push 8
call fcn.10062191
pop ecx
mov dword [ebp - 0x78], eax
cmp eax, ebx
mov byte [ebp - 4], 0xf
je 0x100578a6
mov ecx, eax
call fcn.1000754d
jmp 0x100578a8
xor eax, eax
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x4c]
add eax, 0x2c
cmp ecx, eax
mov byte [ebp - 4], bl
je 0x10057981
mov esi, ecx
cmp esi, ebx
je 0x1005797e
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.1001c35f
lea eax, [ebp + 0xd34]
push eax
push edi
call fcn.1001c35f
lea eax, [ebp + 0xb2c]
push 0x10196d54
push eax
call fcn.100862d7
add esp, 0x18
test eax, eax
jne 0x10057922
lea eax, [ebp + 0xd34]
push eax
lea eax, [ebp + 0x410]
push 0x10187268
push eax
call fcn.10004df5
add esp, 0xc
lea eax, [ebp + 0xd34]
push eax
lea ecx, [ebp - 0x74]
call fcn.100015f0
lea eax, [ebp + 0xb2c]
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0x10
call fcn.100015f0
mov ecx, dword [ebp - 0x58]
mov eax, dword [ecx]
lea edx, [ebp - 0x74]
push edx
lea edx, [ebp - 0x44]
push edx
mov byte [ebp - 4], 0x11
call dword [eax]
push ebx
push 1
lea ecx, [ebp - 0x44]
call fcn.100017c0
push ebx
push 1
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], bl
call fcn.100017c0
mov ecx, esi
call fcn.1005e0a0
mov esi, eax
jmp 0x100578c1
mov esi, dword [ebp - 0x1c]
lea eax, [ebp + 0x410]
push eax
lea ecx, [ebp - 0x44]
call fcn.100015f0
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
lea edx, [ebp - 0x58]
push edx
lea edx, [ebp - 0x44]
push edx
mov byte [ebp - 4], 0x12
call dword [eax]
push ebx
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], bl
call fcn.100017c0
mov ecx, dword [ebp - 0x24]
call fcn.1005dec0
cmp eax, ebx
mov dword [ebp - 0x24], eax
jne 0x1005788a
lea eax, [ebp + 0x820]
push eax
lea ecx, [ebp - 0x44]
call fcn.100015f0
mov ecx, dword [ebp - 0x28]
mov eax, dword [ecx]
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 0x44]
push edx
mov byte [ebp - 4], 0x13
call dword [eax]
push ebx
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], bl
call fcn.100017c0
mov ecx, dword [ebp - 0x10]
call fcn.1005dec0
cmp eax, ebx
mov dword [ebp - 0x10], eax
jne 0x10057841
lea eax, [ebp + 0x618]
push eax
lea ecx, [ebp - 0x44]
call fcn.100015f0
mov ecx, dword [esi + 0x90]
mov eax, dword [ecx]
lea edx, [ebp - 0x28]
push edx
lea edx, [ebp - 0x44]
push edx
mov byte [ebp - 4], 0x14
call dword [eax]
push ebx
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], bl
call fcn.100017c0
mov ecx, dword [ebp - 0x20]
call fcn.1005dec0
cmp eax, ebx
mov dword [ebp - 0x20], eax
jne 0x1005750b
cmp dword [ebp - 0x18], ebx
je 0x10057a5b
push dword [ebp - 0x18]
call fcn.100621bc
pop ecx
xor ebx, ebx
inc ebx
jmp 0x100574df