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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101dc468
mov eax, dword fs:[0]
push eax
mov eax, 0x1248
call fcn.1005da00
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.100594e0
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x1174], eax
cmp dword [edi + 0x1160], eax
je 0x1002b677
push esi
mov ecx, edi
call fcn.1001f204
lea eax, [edi + 0x1200]
mov ecx, edi
push eax
call fcn.1001fee0
test eax, eax
je 0x1002b782
push 0
push 0
push dword [eax]
lea ecx, [ebp - 0x1254]
call fcn.1005c180
jmp 0x1002b782
push 0x208
push eax
lea eax, [ebp - 0xa38]
push eax
call fcn.10079740
add esp, 0xc
lea eax, [ebp - 0x116c]
mov ecx, edi
push eax
call fcn.1002a380
cmp dword [eax + 0x14], 8
jb 0x1002b6a2
mov eax, dword [eax]
push eax
lea eax, [ebp - 0xa38]
push 0x102704c0
push eax
call fcn.10021c4b
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 0x1002c16c
lea eax, [ebp - 0xb3c]
push eax
lea eax, [ebp - 0xa38]
push eax
call fcn.10074165
pop ecx
pop ecx
push 0
lea eax, [ebp - 0xb3c]
push eax
lea ecx, [ebp - 0x1254]
call fcn.1005a470
test al, al
jne 0x1002b77b
push 0x101e893c
push str.Skin
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x1002c16c
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.1005da2d
push esi
push 0
push eax
mov dword [ebp - 0x1174], eax
call fcn.10079740
mov esi, dword [ebp - 0x1174]
push edi
push ebx
push esi
call fcn.1008e620
add esp, 0x1c
lea ecx, [ebp - 0x1254]
push 0
push 0
push esi
call fcn.1005c180
xor ebx, ebx
inc ebx
jmp 0x1002b782
and dword [edi + 0x1168], 0
push str.TheSkin
lea ecx, [ebp - 0x1254]
call fcn.1005a120
test eax, eax
je 0x1002c16c
mov ecx, eax
call fcn.1005a1c0
mov edi, eax
mov dword [ebp - 0x1170], edi
jmp 0x1002c151
push 8
call fcn.1005d5a3
mov esi, eax
pop ecx
mov dword [ebp - 0x11bc], esi
mov byte [ebp - 4], bl
test esi, esi
je 0x1002b7d7
and dword [esi], 0
mov ecx, esi
and dword [esi + 4], 0
call fcn.1002c200
mov dword [esi], eax
jmp 0x1002b7d9
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.10029f2a
mov eax, dword [edi + 0x20]
lea ecx, [ebp - 0xf4c]
add eax, 8
mov byte [ebp - 4], 2
push ecx
push eax
call fcn.10074257
push 8
call fcn.1005d5a3
mov esi, eax
add esp, 0xc
mov dword [ebp - 0x11c0], esi
mov byte [ebp - 4], 3
test esi, esi
je 0x1002b83a
and dword [esi], 0
mov ecx, esi
and dword [esi + 4], 0
call fcn.1002c200
mov dword [esi], eax
jmp 0x1002b83c
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.100295a4
push 8
mov byte [ebp - 4], 4
call fcn.1005d5a3
mov esi, eax
pop ecx
mov dword [ebp - 0x11c4], esi
mov byte [ebp - 4], 5
test esi, esi
je 0x1002b888
and dword [esi], 0
mov ecx, esi
and dword [esi + 4], 0
call fcn.1002c1d3
mov dword [esi], eax
jmp 0x1002b88a
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.10029537
lea eax, [edi + 0x2c]
mov byte [ebp - 4], 6
mov esi, dword [eax + 0x20]
cmp esi, eax
je 0x1002b9b3
test esi, esi
je 0x1002b9b3
mov edi, dword [esi + 0x18]
mov eax, dword [esi + 0x14]
add edi, 8
add eax, 8
je 0x1002b99c
test edi, edi
je 0x1002b99c
lea ecx, [ebp - 0x420]
push ecx
push eax
call fcn.10074257
lea eax, [ebp - 0x218]
push eax
push edi
call fcn.10074257
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 0x1002b929
lea eax, [ebp - 0x420]
push eax
call fcn.1008133f
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.10029758
cmp word [ebp - 0x218], 0
mov edi, dword [ebp - 0x11cc]
jne 0x1002b96d
xor eax, eax
jmp 0x1002b97a
lea eax, [ebp - 0x218]
push eax
call fcn.1008133f
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.1005a4f0
mov esi, eax
test esi, esi
jne 0x1002b8c2
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.1008133f
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.100297c7
mov ecx, dword [ebp - 0x11d4]
lea eax, [ebp - 0x118c]
push eax
add ecx, 0x28
call fcn.10029b3b
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.1008133f
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.100297c7
mov ecx, dword [ebp - 0x11dc]
lea eax, [ebp - 0x11b4]
push eax
add ecx, 0x28
call fcn.10029b3b
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.100875a3
pop ecx
pop ecx
mov ecx, edi
test eax, eax
jne 0x1002bdb5
call fcn.1005a1c0
mov edi, eax
jmp 0x1002bda8
mov ecx, dword [edi + 0x20]
lea eax, [ebp - 0x628]
add ecx, 8
push eax
push ecx
call fcn.10074257
push 8
call fcn.1005d5a3
mov esi, eax
add esp, 0xc
mov dword [ebp - 0x120c], esi
mov byte [ebp - 4], 0xa
test esi, esi
je 0x1002bb0d
and dword [esi], 0
mov ecx, esi
and dword [esi + 4], 0
call fcn.1002c200
mov dword [esi], eax
jmp 0x1002bb0f
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.100295a4
push 8
mov byte [ebp - 4], 0xb
call fcn.1005d5a3
mov esi, eax
pop ecx
mov dword [ebp - 0x1208], esi
mov byte [ebp - 4], 0xc
test esi, esi
je 0x1002bb5b
and dword [esi], 0
mov ecx, esi
and dword [esi + 4], 0
call fcn.1002c1d3
mov dword [esi], eax
jmp 0x1002bb5d
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.10029537
mov ecx, edi
mov byte [ebp - 4], 0xd
call fcn.1005a1c0
jmp 0x1002bc77
mov ecx, dword [esi + 0x20]
lea eax, [ebp - 0x830]
add ecx, 8
push eax
push ecx
call fcn.10074257
pop ecx
pop ecx
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x1002bc70
mov eax, dword [ecx]
call dword [eax + 0x30]
test eax, eax
je 0x1002bc70
mov eax, dword [eax + 0x20]
lea ecx, [ebp - 0xd44]
add eax, 8
push ecx
push eax
call fcn.10074257
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 0x1002bbfd
lea eax, [ebp - 0x830]
push eax
call fcn.1008133f
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.10029758
cmp word [ebp - 0xd44], 0
jne 0x1002bc3b
xor eax, eax
jmp 0x1002bc48
lea eax, [ebp - 0xd44]
push eax
call fcn.1008133f
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.1005a5f0
mov esi, eax
test esi, esi
jne 0x1002bb8b
and dword [ebp - 0x115c], eax
mov esi, str.OurSelf
push esi
mov dword [ebp - 0x1158], 7
mov word [ebp - 0x116c], ax
call fcn.1008133f
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.100297c7
mov ecx, dword [ebp - 0x11ec]
lea eax, [ebp - 0x11ac]
push eax
add ecx, 0x28
call fcn.10029b3b
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 0x1002bd25
lea eax, [ebp - 0x628]
push eax
call fcn.1008133f
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.100297c7
mov ecx, dword [ebp - 0x11f4]
lea eax, [ebp - 0x11a4]
push eax
add ecx, 0x28
call fcn.10029b3b
xor esi, esi
mov byte [ebp - 4], 0xd
push esi
push ebx
lea ecx, [ebp - 0x116c]
call fcn.10002690
mov ecx, edi
call fcn.1005a5f0
mov ecx, dword [ebp - 0x11a8]
mov edi, eax
test ecx, ecx
je 0x1002bd95
call fcn.10021ddf
mov ecx, dword [ebp - 0x11a0]
mov byte [ebp - 4], 6
test ecx, ecx
je 0x1002bda8
call fcn.10021ddf
test edi, edi
jne 0x1002bace
jmp 0x1002c0c0
call fcn.1005a1c0
mov edi, eax
mov dword [ebp - 0x1184], edi
jmp 0x1002c0b8
push 8
call fcn.1005d5a3
mov esi, eax
pop ecx
mov dword [ebp - 0x1204], esi
mov byte [ebp - 4], 0x11
test esi, esi
je 0x1002bdf1
and dword [esi], 0
mov ecx, esi
and dword [esi + 4], 0
call fcn.1002c200
mov dword [esi], eax
jmp 0x1002bdf3
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.100295a4
mov eax, dword [edi + 0x20]
lea ecx, [ebp - 0x628]
add eax, 8
mov byte [ebp - 4], 0x12
push ecx
push eax
call fcn.10074257
pop ecx
pop ecx
mov ecx, edi
call fcn.1005a1c0
mov dword [ebp - 0x1178], eax
test eax, eax
je 0x1002c04d
push 8
call fcn.1005d5a3
mov esi, eax
pop ecx
mov dword [ebp - 0x1200], esi
mov byte [ebp - 4], 0x13
test esi, esi
je 0x1002be69
and dword [esi], 0
mov ecx, esi
and dword [esi + 4], 0
call fcn.1002c1d3
mov dword [esi], eax
jmp 0x1002be6b
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.10029537
mov eax, dword [ebp - 0x1178]
add eax, 0x2c
mov byte [ebp - 4], 0x14
mov edi, dword [eax + 0x20]
cmp edi, eax
je 0x1002bfb3
jmp 0x1002bfab
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.10074257
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.10074257
lea eax, [ebp - 0x420]
push 0x101e3ba8
push eax
call fcn.100875a3
add esp, 0x18
test eax, eax
jne 0x1002beff
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x1154]
push 0x102704c0
push eax
call fcn.10021c4b
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 0x1002bf2f
lea eax, [ebp - 0x420]
push eax
call fcn.1008133f
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.10029758
cmp word [ebp - 0x218], 0
mov esi, dword [ebp - 0x11fc]
jne 0x1002bf73
xor eax, eax
jmp 0x1002bf80
lea eax, [ebp - 0x218]
push eax
call fcn.1008133f
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.1005a4f0
mov edi, eax
test edi, edi
jne 0x1002bea6
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.1002a190
mov ecx, eax
call fcn.10029b3b
push 0
push ebx
lea ecx, [ebp - 0x116c]
mov byte [ebp - 4], 0x14
call fcn.10002690
mov ecx, dword [ebp - 0x1178]
call fcn.1005a5f0
mov ecx, dword [ebp - 0x1198]
mov esi, eax
mov dword [ebp - 0x1178], esi
mov byte [ebp - 4], 0x12
test ecx, ecx
je 0x1002c03f
call fcn.10021ddf
test esi, esi
jne 0x1002be3f
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.1002a190
mov ecx, eax
call fcn.10029b3b
xor esi, esi
mov byte [ebp - 4], 0x12
push esi
push ebx
lea ecx, [ebp - 0x116c]
call fcn.10002690
mov ecx, edi
call fcn.1005a5f0
mov ecx, dword [ebp - 0x1190]
mov edi, eax
mov dword [ebp - 0x1184], edi
mov byte [ebp - 4], 6
test ecx, ecx
je 0x1002c0b8
call fcn.10021ddf
test edi, edi
jne 0x1002bdc7
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.1002a190
mov ecx, eax
call fcn.10029b3b
push esi
push ebx
lea ecx, [ebp - 0x116c]
mov byte [ebp - 4], 6
call fcn.10002690
mov ecx, dword [ebp - 0x1170]
call fcn.1005a5f0
mov ecx, dword [ebp - 0x1188]
mov edi, eax
mov dword [ebp - 0x1170], edi
test ecx, ecx
je 0x1002c12f
call fcn.10021ddf
mov ecx, dword [ebp - 0x11b0]
test ecx, ecx
je 0x1002c13e
call fcn.10021ddf
mov ecx, dword [ebp - 0x117c]
mov byte [ebp - 4], 0
test ecx, ecx
je 0x1002c151
call fcn.10021ddf
test edi, edi
jne 0x1002b7ae
mov eax, dword [ebp - 0x1174]
test eax, eax
je 0x1002c16e
push eax
call fcn.1005d5e4
pop ecx
jmp 0x1002c16e
xor ebx, ebx
lea ecx, [ebp - 0x1254]
call fcn.10029b18
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.1005d919
mov esp, ebp
pop ebp
ret 4