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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101dc4f0
mov eax, dword fs:[0]
push eax
mov eax, 0x1248
call fcn.1005dc60
mov eax, dword [0x10288294]
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 - 0x11b8], edi
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x1254]
xor ebx, ebx
inc ebx
mov dword [edi + 0x1168], ebx
call fcn.10059770
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x1174], eax
cmp dword [edi + 0x1160], eax
je 0x1002b3a0
push esi
mov ecx, edi
call fcn.1001f292
lea eax, [edi + 0x1200]
mov ecx, edi
push eax
call fcn.1001ff6f
test eax, eax
je 0x1002b4ab
push 0
push 0
push dword [eax]
lea ecx, [ebp - 0x1254]
call fcn.1005c400
jmp 0x1002b4ab
push 0x208
push eax
lea eax, [ebp - 0xa38]
push eax
call fcn.10079700
add esp, 0xc
lea eax, [ebp - 0x116c]
mov ecx, edi
push eax
call fcn.1002a0a9
cmp dword [eax + 0x14], 8
jb 0x1002b3cb
mov eax, dword [eax]
push eax
lea eax, [ebp - 0xa38]
push 0x102704b0
push eax
call fcn.10021d12
add esp, 0xc
lea ecx, [ebp - 0x116c]
push 0
push ebx
call fcn.10002690
lea eax, [ebp - 0xa38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1002be95
lea eax, [ebp - 0xb3c]
push eax
lea eax, [ebp - 0xa38]
push eax
call fcn.1007432c
pop ecx
pop ecx
push 0
lea eax, [ebp - 0xb3c]
push eax
lea ecx, [ebp - 0x1254]
call fcn.1005a700
test al, al
jne 0x1002b4a4
push 0x101e893c
push str.Skin
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x1002be95
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.1005dc8d
push esi
push 0
push eax
mov dword [ebp - 0x1174], eax
call fcn.10079700
mov esi, dword [ebp - 0x1174]
push edi
push ebx
push esi
call fcn.1008e630
add esp, 0x1c
lea ecx, [ebp - 0x1254]
push 0
push 0
push esi
call fcn.1005c400
xor ebx, ebx
inc ebx
jmp 0x1002b4ab
and dword [edi + 0x1168], 0
push str.TheSkin
lea ecx, [ebp - 0x1254]
call fcn.1005a3b0
test eax, eax
je 0x1002be95
mov ecx, eax
call fcn.1005a450
mov edi, eax
mov dword [ebp - 0x1170], edi
jmp 0x1002be7a
push 8
call fcn.1005d806
mov esi, eax
pop ecx
mov dword [ebp - 0x11bc], esi
mov byte [ebp - 4], bl
test esi, esi
je 0x1002b500
and dword [esi], 0
mov ecx, esi
and dword [esi + 4], 0
call fcn.1002bf1c
mov dword [esi], eax
jmp 0x1002b502
xor esi, esi
and dword [ebp - 0x1180], 0
lea ecx, [ebp - 0x1180]
and dword [ebp - 0x117c], 0
push esi
mov byte [ebp - 4], 0
call fcn.10029ced
mov eax, dword [edi + 0x20]
lea ecx, [ebp - 0xf4c]
add eax, 8
mov byte [ebp - 4], 2
push ecx
push eax
call fcn.1007441e
push 8
call fcn.1005d806
mov esi, eax
add esp, 0xc
mov dword [ebp - 0x11c0], esi
mov byte [ebp - 4], 3
test esi, esi
je 0x1002b563
and dword [esi], 0
mov ecx, esi
and dword [esi + 4], 0
call fcn.1002bf1c
mov dword [esi], eax
jmp 0x1002b565
xor esi, esi
and dword [ebp - 0x11b4], 0
lea ecx, [ebp - 0x11b4]
and dword [ebp - 0x11b0], 0
push esi
mov byte [ebp - 4], 2
call fcn.1002963b
push 8
mov byte [ebp - 4], 4
call fcn.1005d806
mov esi, eax
pop ecx
mov dword [ebp - 0x11c4], esi
mov byte [ebp - 4], 5
test esi, esi
je 0x1002b5b1
and dword [esi], 0
mov ecx, esi
and dword [esi + 4], 0
call fcn.1002beef
mov dword [esi], eax
jmp 0x1002b5b3
xor esi, esi
and dword [ebp - 0x118c], 0
lea ecx, [ebp - 0x118c]
and dword [ebp - 0x1188], 0
push esi
mov byte [ebp - 4], 4
call fcn.100295ce
lea eax, [edi + 0x2c]
mov byte [ebp - 4], 6
mov esi, dword [eax + 0x20]
cmp esi, eax
je 0x1002b6dc
test esi, esi
je 0x1002b6dc
mov edi, dword [esi + 0x18]
mov eax, dword [esi + 0x14]
add edi, 8
add eax, 8
je 0x1002b6c5
test edi, edi
je 0x1002b6c5
lea ecx, [ebp - 0x420]
push ecx
push eax
call fcn.1007441e
lea eax, [ebp - 0x218]
push eax
push edi
call fcn.1007441e
and dword [ebp - 0x115c], 0
xor eax, eax
add esp, 0x10
mov dword [ebp - 0x1158], 7
mov word [ebp - 0x116c], ax
cmp word [ebp - 0x420], ax
je 0x1002b652
lea eax, [ebp - 0x420]
push eax
call fcn.100812ef
pop ecx
push eax
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x116c]
call fcn.10002750
mov ecx, dword [ebp - 0x118c]
lea eax, [ebp - 0x116c]
push eax
lea eax, [ebp - 0x11cc]
mov byte [ebp - 4], 7
push eax
call fcn.1002985e
cmp word [ebp - 0x218], 0
mov edi, dword [ebp - 0x11cc]
jne 0x1002b696
xor eax, eax
jmp 0x1002b6a3
lea eax, [ebp - 0x218]
push eax
call fcn.100812ef
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [edi + 0x28]
call fcn.10002750
push 0
push ebx
lea ecx, [ebp - 0x116c]
mov byte [ebp - 4], 6
call fcn.10002690
mov ecx, esi
call fcn.1005a780
mov esi, eax
test esi, esi
jne 0x1002b5eb
mov edi, dword [ebp - 0x1170]
xor eax, eax
mov dword [ebp - 0x1158], 7
xor esi, esi
mov word [ebp - 0x116c], ax
push str.OurSelf
mov dword [ebp - 0x115c], esi
call fcn.100812ef
pop ecx
push eax
push str.OurSelf
lea ecx, [ebp - 0x116c]
call fcn.10002750
mov ecx, dword [ebp - 0x11b4]
lea eax, [ebp - 0x116c]
push eax
lea eax, [ebp - 0x11d4]
mov byte [ebp - 4], 8
push eax
call fcn.100298cd
mov ecx, dword [ebp - 0x11d4]
lea eax, [ebp - 0x118c]
push eax
add ecx, 0x28
call fcn.10029c19
push esi
push ebx
lea ecx, [ebp - 0x116c]
mov byte [ebp - 4], 6
call fcn.10002690
xor eax, eax
mov dword [ebp - 0x1158], 7
push str.OurSelf
mov dword [ebp - 0x115c], esi
mov word [ebp - 0x116c], ax
call fcn.100812ef
pop ecx
push eax
push str.OurSelf
lea ecx, [ebp - 0x116c]
call fcn.10002750
mov ecx, dword [ebp - 0x1180]
lea eax, [ebp - 0x116c]
push eax
lea eax, [ebp - 0x11dc]
mov byte [ebp - 4], 9
push eax
call fcn.100298cd
mov ecx, dword [ebp - 0x11dc]
lea eax, [ebp - 0x11b4]
push eax
add ecx, 0x28
call fcn.10029c19
push esi
push ebx
lea ecx, [ebp - 0x116c]
mov byte [ebp - 4], 6
call fcn.10002690
lea eax, [ebp - 0xf4c]
push str.SkinConfigure
push eax
call fcn.1008755c
pop ecx
pop ecx
mov ecx, edi
test eax, eax
jne 0x1002bade
call fcn.1005a450
mov edi, eax
jmp 0x1002bad1
mov ecx, dword [edi + 0x20]
lea eax, [ebp - 0x628]
add ecx, 8
push eax
push ecx
call fcn.1007441e
push 8
call fcn.1005d806
mov esi, eax
add esp, 0xc
mov dword [ebp - 0x120c], esi
mov byte [ebp - 4], 0xa
test esi, esi
je 0x1002b836
and dword [esi], 0
mov ecx, esi
and dword [esi + 4], 0
call fcn.1002bf1c
mov dword [esi], eax
jmp 0x1002b838
xor esi, esi
and dword [ebp - 0x11a4], 0
lea ecx, [ebp - 0x11a4]
and dword [ebp - 0x11a0], 0
push esi
mov byte [ebp - 4], 6
call fcn.1002963b
push 8
mov byte [ebp - 4], 0xb
call fcn.1005d806
mov esi, eax
pop ecx
mov dword [ebp - 0x1208], esi
mov byte [ebp - 4], 0xc
test esi, esi
je 0x1002b884
and dword [esi], 0
mov ecx, esi
and dword [esi + 4], 0
call fcn.1002beef
mov dword [esi], eax
jmp 0x1002b886
xor esi, esi
and dword [ebp - 0x11ac], 0
lea ecx, [ebp - 0x11ac]
and dword [ebp - 0x11a8], 0
push esi
mov byte [ebp - 4], 0xb
call fcn.100295ce
mov ecx, edi
mov byte [ebp - 4], 0xd
call fcn.1005a450
jmp 0x1002b9a0
mov ecx, dword [esi + 0x20]
lea eax, [ebp - 0x830]
add ecx, 8
push eax
push ecx
call fcn.1007441e
pop ecx
pop ecx
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x1002b999
mov eax, dword [ecx]
call dword [eax + 0x30]
test eax, eax
je 0x1002b999
mov eax, dword [eax + 0x20]
lea ecx, [ebp - 0xd44]
add eax, 8
push ecx
push eax
call fcn.1007441e
and dword [ebp - 0x115c], 0
xor eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x1158], 7
mov word [ebp - 0x116c], ax
cmp word [ebp - 0x830], ax
je 0x1002b926
lea eax, [ebp - 0x830]
push eax
call fcn.100812ef
pop ecx
push eax
lea eax, [ebp - 0x830]
push eax
lea ecx, [ebp - 0x116c]
call fcn.10002750
mov ecx, dword [ebp - 0x11ac]
lea eax, [ebp - 0x116c]
push eax
lea eax, [ebp - 0x11e4]
mov byte [ebp - 4], 0xe
push eax
call fcn.1002985e
cmp word [ebp - 0xd44], 0
jne 0x1002b964
xor eax, eax
jmp 0x1002b971
lea eax, [ebp - 0xd44]
push eax
call fcn.100812ef
pop ecx
mov ecx, dword [ebp - 0x11e4]
push eax
lea eax, [ebp - 0xd44]
push eax
lea ecx, [ecx + 0x28]
call fcn.10002750
push 0
push ebx
lea ecx, [ebp - 0x116c]
mov byte [ebp - 4], 0xd
call fcn.10002690
mov ecx, esi
call fcn.1005a880
mov esi, eax
test esi, esi
jne 0x1002b8b4
and dword [ebp - 0x115c], eax
mov esi, str.OurSelf
push esi
mov dword [ebp - 0x1158], 7
mov word [ebp - 0x116c], ax
call fcn.100812ef
pop ecx
push eax
push esi
lea ecx, [ebp - 0x116c]
call fcn.10002750
mov ecx, dword [ebp - 0x11a4]
lea eax, [ebp - 0x116c]
push eax
lea eax, [ebp - 0x11ec]
mov byte [ebp - 4], 0xf
push eax
call fcn.100298cd
mov ecx, dword [ebp - 0x11ec]
lea eax, [ebp - 0x11ac]
push eax
add ecx, 0x28
call fcn.10029c19
push 0
push ebx
lea ecx, [ebp - 0x116c]
mov byte [ebp - 4], 0xd
call fcn.10002690
and dword [ebp - 0x115c], 0
xor eax, eax
mov dword [ebp - 0x1158], 7
mov word [ebp - 0x116c], ax
cmp word [ebp - 0x628], ax
je 0x1002ba4e
lea eax, [ebp - 0x628]
push eax
call fcn.100812ef
pop ecx
push eax
lea eax, [ebp - 0x628]
push eax
lea ecx, [ebp - 0x116c]
call fcn.10002750
mov ecx, dword [ebp - 0x1180]
lea eax, [ebp - 0x116c]
push eax
lea eax, [ebp - 0x11f4]
mov byte [ebp - 4], 0x10
push eax
call fcn.100298cd
mov ecx, dword [ebp - 0x11f4]
lea eax, [ebp - 0x11a4]
push eax
add ecx, 0x28
call fcn.10029c19
xor esi, esi
mov byte [ebp - 4], 0xd
push esi
push ebx
lea ecx, [ebp - 0x116c]
call fcn.10002690
mov ecx, edi
call fcn.1005a880
mov ecx, dword [ebp - 0x11a8]
mov edi, eax
test ecx, ecx
je 0x1002babe
call fcn.10021ea6
mov ecx, dword [ebp - 0x11a0]
mov byte [ebp - 4], 6
test ecx, ecx
je 0x1002bad1
call fcn.10021ea6
test edi, edi
jne 0x1002b7f7
jmp 0x1002bde9
call fcn.1005a450
mov edi, eax
mov dword [ebp - 0x1184], edi
jmp 0x1002bde1
push 8
call fcn.1005d806
mov esi, eax
pop ecx
mov dword [ebp - 0x1204], esi
mov byte [ebp - 4], 0x11
test esi, esi
je 0x1002bb1a
and dword [esi], 0
mov ecx, esi
and dword [esi + 4], 0
call fcn.1002bf1c
mov dword [esi], eax
jmp 0x1002bb1c
xor esi, esi
and dword [ebp - 0x1194], 0
lea ecx, [ebp - 0x1194]
and dword [ebp - 0x1190], 0
push esi
mov byte [ebp - 4], 6
call fcn.1002963b
mov eax, dword [edi + 0x20]
lea ecx, [ebp - 0x628]
add eax, 8
mov byte [ebp - 4], 0x12
push ecx
push eax
call fcn.1007441e
pop ecx
pop ecx
mov ecx, edi
call fcn.1005a450
mov dword [ebp - 0x1178], eax
test eax, eax
je 0x1002bd76
push 8
call fcn.1005d806
mov esi, eax
pop ecx
mov dword [ebp - 0x1200], esi
mov byte [ebp - 4], 0x13
test esi, esi
je 0x1002bb92
and dword [esi], 0
mov ecx, esi
and dword [esi + 4], 0
call fcn.1002beef
mov dword [esi], eax
jmp 0x1002bb94
xor esi, esi
and dword [ebp - 0x119c], 0
lea ecx, [ebp - 0x119c]
and dword [ebp - 0x1198], 0
push esi
mov byte [ebp - 4], 0x12
call fcn.100295ce
mov eax, dword [ebp - 0x1178]
add eax, 0x2c
mov byte [ebp - 4], 0x14
mov edi, dword [eax + 0x20]
cmp edi, eax
je 0x1002bcdc
jmp 0x1002bcd4
mov eax, dword [edi + 0x14]
lea ecx, [ebp - 0x420]
mov esi, dword [edi + 0x18]
add eax, 8
push ecx
push eax
add esi, 8
call fcn.1007441e
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.1007441e
lea eax, [ebp - 0x420]
push 0x101e3ba8
push eax
call fcn.1008755c
add esp, 0x18
test eax, eax
jne 0x1002bc28
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x1154]
push 0x102704b0
push eax
call fcn.10021d12
add esp, 0xc
and dword [ebp - 0x115c], 0
xor eax, eax
mov dword [ebp - 0x1158], 7
mov word [ebp - 0x116c], ax
cmp word [ebp - 0x420], ax
je 0x1002bc58
lea eax, [ebp - 0x420]
push eax
call fcn.100812ef
pop ecx
push eax
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x116c]
call fcn.10002750
mov ecx, dword [ebp - 0x119c]
lea eax, [ebp - 0x116c]
push eax
lea eax, [ebp - 0x11fc]
mov byte [ebp - 4], 0x15
push eax
call fcn.1002985e
cmp word [ebp - 0x218], 0
mov esi, dword [ebp - 0x11fc]
jne 0x1002bc9c
xor eax, eax
jmp 0x1002bca9
lea eax, [ebp - 0x218]
push eax
call fcn.100812ef
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [esi + 0x28]
call fcn.10002750
push 0
push ebx
lea ecx, [ebp - 0x116c]
mov byte [ebp - 4], 0x14
call fcn.10002690
mov ecx, edi
call fcn.1005a780
mov edi, eax
test edi, edi
jne 0x1002bbcf
and dword [ebp - 0x115c], 0
lea ecx, [ebp - 0x116c]
push 0
mov dword [ebp - 0x1158], 7
call fcn.10002930
lea eax, [ebp - 0x1154]
push eax
lea ecx, [ebp - 0x116c]
call fcn.10002700
mov ecx, dword [ebp - 0x1194]
lea eax, [ebp - 0x119c]
push eax
lea eax, [ebp - 0x116c]
mov byte [ebp - 4], 0x16
push eax
call fcn.10029eb3
mov ecx, eax
call fcn.10029c19
push 0
push ebx
lea ecx, [ebp - 0x116c]
mov byte [ebp - 4], 0x14
call fcn.10002690
mov ecx, dword [ebp - 0x1178]
call fcn.1005a880
mov ecx, dword [ebp - 0x1198]
mov esi, eax
mov dword [ebp - 0x1178], esi
mov byte [ebp - 4], 0x12
test ecx, ecx
je 0x1002bd68
call fcn.10021ea6
test esi, esi
jne 0x1002bb68
mov edi, dword [ebp - 0x1184]
lea eax, [ebp - 0x628]
push eax
lea ecx, [ebp - 0x116c]
call fcn.100025f0
mov ecx, dword [ebp - 0x1180]
lea eax, [ebp - 0x1194]
push eax
lea eax, [ebp - 0x116c]
mov byte [ebp - 4], 0x17
push eax
call fcn.10029eb3
mov ecx, eax
call fcn.10029c19
xor esi, esi
mov byte [ebp - 4], 0x12
push esi
push ebx
lea ecx, [ebp - 0x116c]
call fcn.10002690
mov ecx, edi
call fcn.1005a880
mov ecx, dword [ebp - 0x1190]
mov edi, eax
mov dword [ebp - 0x1184], edi
mov byte [ebp - 4], 6
test ecx, ecx
je 0x1002bde1
call fcn.10021ea6
test edi, edi
jne 0x1002baf0
lea eax, [ebp - 0xf4c]
push eax
lea ecx, [ebp - 0x116c]
call fcn.100025f0
lea eax, [ebp - 0x1180]
mov byte [ebp - 4], 0x18
push eax
lea eax, [ebp - 0x116c]
push eax
mov eax, dword [ebp - 0x11b8]
mov ecx, dword [eax + 0x11ec]
call fcn.10029eb3
mov ecx, eax
call fcn.10029c19
push esi
push ebx
lea ecx, [ebp - 0x116c]
mov byte [ebp - 4], 6
call fcn.10002690
mov ecx, dword [ebp - 0x1170]
call fcn.1005a880
mov ecx, dword [ebp - 0x1188]
mov edi, eax
mov dword [ebp - 0x1170], edi
test ecx, ecx
je 0x1002be58
call fcn.10021ea6
mov ecx, dword [ebp - 0x11b0]
test ecx, ecx
je 0x1002be67
call fcn.10021ea6
mov ecx, dword [ebp - 0x117c]
mov byte [ebp - 4], 0
test ecx, ecx
je 0x1002be7a
call fcn.10021ea6
test edi, edi
jne 0x1002b4d7
mov eax, dword [ebp - 0x1174]
test eax, eax
je 0x1002be97
push eax
call fcn.1005d847
pop ecx
jmp 0x1002be97
xor ebx, ebx
lea ecx, [ebp - 0x1254]
call fcn.10029bf6
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.1005db7c
mov esp, ebp
pop ebp
ret 4