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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101dad6d
mov eax, dword fs:[0]
push eax
mov eax, 0x1248
call fcn.1005d950
mov eax, dword [0x10285294]
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.10059460
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x1174], eax
cmp dword [edi + 0x1160], eax
je 0x1002b8cb
push esi
mov ecx, edi
call fcn.1001f1d1
lea eax, [edi + 0x1200]
mov ecx, edi
push eax
call fcn.1001febb
test eax, eax
je 0x1002b9d6
push 0
push 0
push dword [eax]
lea ecx, [ebp - 0x1254]
call fcn.1005c0e0
jmp 0x1002b9d6
push 0x208
push eax
lea eax, [ebp - 0xa38]
push eax
call fcn.10078730
add esp, 0xc
lea eax, [ebp - 0x116c]
mov ecx, edi
push eax
call fcn.1002a5d4
cmp dword [eax + 0x14], 8
jb 0x1002b8f6
mov eax, dword [eax]
push eax
lea eax, [ebp - 0xa38]
push 0x1026de28
push eax
call fcn.10021c56
add esp, 0xc
lea ecx, [ebp - 0x116c]
push 0
push ebx
call fcn.10002630
lea eax, [ebp - 0xa38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1002c3c0
lea eax, [ebp - 0xb3c]
push eax
lea eax, [ebp - 0xa38]
push eax
call fcn.10073367
pop ecx
pop ecx
push 0
lea eax, [ebp - 0xb3c]
push eax
lea ecx, [ebp - 0x1254]
call fcn.1005a3f0
test al, al
jne 0x1002b9cf
push 0x101e68fc
push str.Skin
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x1002c3c0
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.1001f34a
push esi
push 0
push eax
mov dword [ebp - 0x1174], eax
call fcn.10078730
mov esi, dword [ebp - 0x1174]
push edi
push ebx
push esi
call fcn.1008d5e0
add esp, 0x1c
lea ecx, [ebp - 0x1254]
push 0
push 0
push esi
call fcn.1005c0e0
xor ebx, ebx
inc ebx
jmp 0x1002b9d6
and dword [edi + 0x1168], 0
push str.TheSkin
lea ecx, [ebp - 0x1254]
call fcn.1005a0a0
test eax, eax
je 0x1002c3c0
mov ecx, eax
call fcn.1005a140
mov edi, eax
mov dword [ebp - 0x1170], edi
jmp 0x1002c3a5
push 8
call fcn.1005d503
mov esi, eax
pop ecx
mov dword [ebp - 0x11bc], esi
mov byte [ebp - 4], bl
test esi, esi
je 0x1002ba2b
and dword [esi], 0
mov ecx, esi
and dword [esi + 4], 0
call fcn.1002c450
mov dword [esi], eax
jmp 0x1002ba2d
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.10029e47
mov eax, dword [edi + 0x20]
lea ecx, [ebp - 0xf4c]
add eax, 8
mov byte [ebp - 4], 2
push ecx
push eax
call fcn.10073459
push 8
call fcn.1005d503
mov esi, eax
add esp, 0xc
mov dword [ebp - 0x11c0], esi
mov byte [ebp - 4], 3
test esi, esi
je 0x1002ba8e
and dword [esi], 0
mov ecx, esi
and dword [esi + 4], 0
call fcn.1002c450
mov dword [esi], eax
jmp 0x1002ba90
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.1002970a
push 8
mov byte [ebp - 4], 4
call fcn.1005d503
mov esi, eax
pop ecx
mov dword [ebp - 0x11c4], esi
mov byte [ebp - 4], 5
test esi, esi
je 0x1002badc
and dword [esi], 0
mov ecx, esi
and dword [esi + 4], 0
call fcn.1002c423
mov dword [esi], eax
jmp 0x1002bade
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.1002969d
lea eax, [edi + 0x2c]
mov byte [ebp - 4], 6
mov esi, dword [eax + 0x20]
cmp esi, eax
je 0x1002bc07
test esi, esi
je 0x1002bc07
mov edi, dword [esi + 0x18]
mov eax, dword [esi + 0x14]
add edi, 8
add eax, 8
je 0x1002bbf0
test edi, edi
je 0x1002bbf0
lea ecx, [ebp - 0x420]
push ecx
push eax
call fcn.10073459
lea eax, [ebp - 0x218]
push eax
push edi
call fcn.10073459
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 0x1002bb7d
lea eax, [ebp - 0x420]
push eax
call fcn.100802ff
pop ecx
push eax
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x116c]
call fcn.100026f0
mov ecx, dword [ebp - 0x118c]
lea eax, [ebp - 0x116c]
push eax
lea eax, [ebp - 0x11cc]
mov byte [ebp - 4], 7
push eax
call fcn.1002992d
cmp word [ebp - 0x218], 0
mov edi, dword [ebp - 0x11cc]
jne 0x1002bbc1
xor eax, eax
jmp 0x1002bbce
lea eax, [ebp - 0x218]
push eax
call fcn.100802ff
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [edi + 0x28]
call fcn.100026f0
push 0
push ebx
lea ecx, [ebp - 0x116c]
mov byte [ebp - 4], 6
call fcn.10002630
mov ecx, esi
call fcn.1005a470
mov esi, eax
test esi, esi
jne 0x1002bb16
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.100802ff
pop ecx
push eax
push str.OurSelf
lea ecx, [ebp - 0x116c]
call fcn.100026f0
mov ecx, dword [ebp - 0x11b4]
lea eax, [ebp - 0x116c]
push eax
lea eax, [ebp - 0x11d4]
mov byte [ebp - 4], 8
push eax
call fcn.1002999c
mov ecx, dword [ebp - 0x11d4]
lea eax, [ebp - 0x118c]
push eax
add ecx, 0x28
call fcn.10029ccc
push esi
push ebx
lea ecx, [ebp - 0x116c]
mov byte [ebp - 4], 6
call fcn.10002630
xor eax, eax
mov dword [ebp - 0x1158], 7
push str.OurSelf
mov dword [ebp - 0x115c], esi
mov word [ebp - 0x116c], ax
call fcn.100802ff
pop ecx
push eax
push str.OurSelf
lea ecx, [ebp - 0x116c]
call fcn.100026f0
mov ecx, dword [ebp - 0x1180]
lea eax, [ebp - 0x116c]
push eax
lea eax, [ebp - 0x11dc]
mov byte [ebp - 4], 9
push eax
call fcn.1002999c
mov ecx, dword [ebp - 0x11dc]
lea eax, [ebp - 0x11b4]
push eax
add ecx, 0x28
call fcn.10029ccc
push esi
push ebx
lea ecx, [ebp - 0x116c]
mov byte [ebp - 4], 6
call fcn.10002630
lea eax, [ebp - 0xf4c]
push str.SkinConfigure
push eax
call fcn.10086563
pop ecx
pop ecx
mov ecx, edi
test eax, eax
jne 0x1002c009
call fcn.1005a140
mov edi, eax
jmp 0x1002bffc
mov ecx, dword [edi + 0x20]
lea eax, [ebp - 0x628]
add ecx, 8
push eax
push ecx
call fcn.10073459
push 8
call fcn.1005d503
mov esi, eax
add esp, 0xc
mov dword [ebp - 0x120c], esi
mov byte [ebp - 4], 0xa
test esi, esi
je 0x1002bd61
and dword [esi], 0
mov ecx, esi
and dword [esi + 4], 0
call fcn.1002c450
mov dword [esi], eax
jmp 0x1002bd63
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.1002970a
push 8
mov byte [ebp - 4], 0xb
call fcn.1005d503
mov esi, eax
pop ecx
mov dword [ebp - 0x1208], esi
mov byte [ebp - 4], 0xc
test esi, esi
je 0x1002bdaf
and dword [esi], 0
mov ecx, esi
and dword [esi + 4], 0
call fcn.1002c423
mov dword [esi], eax
jmp 0x1002bdb1
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.1002969d
mov ecx, edi
mov byte [ebp - 4], 0xd
call fcn.1005a140
jmp 0x1002becb
mov ecx, dword [esi + 0x20]
lea eax, [ebp - 0x830]
add ecx, 8
push eax
push ecx
call fcn.10073459
pop ecx
pop ecx
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x1002bec4
mov eax, dword [ecx]
call dword [eax + 0x30]
test eax, eax
je 0x1002bec4
mov eax, dword [eax + 0x20]
lea ecx, [ebp - 0xd44]
add eax, 8
push ecx
push eax
call fcn.10073459
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 0x1002be51
lea eax, [ebp - 0x830]
push eax
call fcn.100802ff
pop ecx
push eax
lea eax, [ebp - 0x830]
push eax
lea ecx, [ebp - 0x116c]
call fcn.100026f0
mov ecx, dword [ebp - 0x11ac]
lea eax, [ebp - 0x116c]
push eax
lea eax, [ebp - 0x11e4]
mov byte [ebp - 4], 0xe
push eax
call fcn.1002992d
cmp word [ebp - 0xd44], 0
jne 0x1002be8f
xor eax, eax
jmp 0x1002be9c
lea eax, [ebp - 0xd44]
push eax
call fcn.100802ff
pop ecx
mov ecx, dword [ebp - 0x11e4]
push eax
lea eax, [ebp - 0xd44]
push eax
lea ecx, [ecx + 0x28]
call fcn.100026f0
push 0
push ebx
lea ecx, [ebp - 0x116c]
mov byte [ebp - 4], 0xd
call fcn.10002630
mov ecx, esi
call fcn.1005a570
mov esi, eax
test esi, esi
jne 0x1002bddf
and dword [ebp - 0x115c], eax
mov esi, str.OurSelf
push esi
mov dword [ebp - 0x1158], 7
mov word [ebp - 0x116c], ax
call fcn.100802ff
pop ecx
push eax
push esi
lea ecx, [ebp - 0x116c]
call fcn.100026f0
mov ecx, dword [ebp - 0x11a4]
lea eax, [ebp - 0x116c]
push eax
lea eax, [ebp - 0x11ec]
mov byte [ebp - 4], 0xf
push eax
call fcn.1002999c
mov ecx, dword [ebp - 0x11ec]
lea eax, [ebp - 0x11ac]
push eax
add ecx, 0x28
call fcn.10029ccc
push 0
push ebx
lea ecx, [ebp - 0x116c]
mov byte [ebp - 4], 0xd
call fcn.10002630
and dword [ebp - 0x115c], 0
xor eax, eax
mov dword [ebp - 0x1158], 7
mov word [ebp - 0x116c], ax
cmp word [ebp - 0x628], ax
je 0x1002bf79
lea eax, [ebp - 0x628]
push eax
call fcn.100802ff
pop ecx
push eax
lea eax, [ebp - 0x628]
push eax
lea ecx, [ebp - 0x116c]
call fcn.100026f0
mov ecx, dword [ebp - 0x1180]
lea eax, [ebp - 0x116c]
push eax
lea eax, [ebp - 0x11f4]
mov byte [ebp - 4], 0x10
push eax
call fcn.1002999c
mov ecx, dword [ebp - 0x11f4]
lea eax, [ebp - 0x11a4]
push eax
add ecx, 0x28
call fcn.10029ccc
xor esi, esi
mov byte [ebp - 4], 0xd
push esi
push ebx
lea ecx, [ebp - 0x116c]
call fcn.10002630
mov ecx, edi
call fcn.1005a570
mov ecx, dword [ebp - 0x11a8]
mov edi, eax
test ecx, ecx
je 0x1002bfe9
call fcn.10021e34
mov ecx, dword [ebp - 0x11a0]
mov byte [ebp - 4], 6
test ecx, ecx
je 0x1002bffc
call fcn.10021e34
test edi, edi
jne 0x1002bd22
jmp 0x1002c314
call fcn.1005a140
mov edi, eax
mov dword [ebp - 0x1184], edi
jmp 0x1002c30c
push 8
call fcn.1005d503
mov esi, eax
pop ecx
mov dword [ebp - 0x1204], esi
mov byte [ebp - 4], 0x11
test esi, esi
je 0x1002c045
and dword [esi], 0
mov ecx, esi
and dword [esi + 4], 0
call fcn.1002c450
mov dword [esi], eax
jmp 0x1002c047
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.1002970a
mov eax, dword [edi + 0x20]
lea ecx, [ebp - 0x628]
add eax, 8
mov byte [ebp - 4], 0x12
push ecx
push eax
call fcn.10073459
pop ecx
pop ecx
mov ecx, edi
call fcn.1005a140
mov dword [ebp - 0x1178], eax
test eax, eax
je 0x1002c2a1
push 8
call fcn.1005d503
mov esi, eax
pop ecx
mov dword [ebp - 0x1200], esi
mov byte [ebp - 4], 0x13
test esi, esi
je 0x1002c0bd
and dword [esi], 0
mov ecx, esi
and dword [esi + 4], 0
call fcn.1002c423
mov dword [esi], eax
jmp 0x1002c0bf
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.1002969d
mov eax, dword [ebp - 0x1178]
add eax, 0x2c
mov byte [ebp - 4], 0x14
mov edi, dword [eax + 0x20]
cmp edi, eax
je 0x1002c207
jmp 0x1002c1ff
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.10073459
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.10073459
lea eax, [ebp - 0x420]
push 0x101e1b68
push eax
call fcn.10086563
add esp, 0x18
test eax, eax
jne 0x1002c153
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x1154]
push 0x1026de28
push eax
call fcn.10021c56
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 0x1002c183
lea eax, [ebp - 0x420]
push eax
call fcn.100802ff
pop ecx
push eax
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x116c]
call fcn.100026f0
mov ecx, dword [ebp - 0x119c]
lea eax, [ebp - 0x116c]
push eax
lea eax, [ebp - 0x11fc]
mov byte [ebp - 4], 0x15
push eax
call fcn.1002992d
cmp word [ebp - 0x218], 0
mov esi, dword [ebp - 0x11fc]
jne 0x1002c1c7
xor eax, eax
jmp 0x1002c1d4
lea eax, [ebp - 0x218]
push eax
call fcn.100802ff
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [esi + 0x28]
call fcn.100026f0
push 0
push ebx
lea ecx, [ebp - 0x116c]
mov byte [ebp - 4], 0x14
call fcn.10002630
mov ecx, edi
call fcn.1005a470
mov edi, eax
test edi, edi
jne 0x1002c0fa
and dword [ebp - 0x115c], 0
lea ecx, [ebp - 0x116c]
push 0
mov dword [ebp - 0x1158], 7
call fcn.100028d0
lea eax, [ebp - 0x1154]
push eax
lea ecx, [ebp - 0x116c]
call fcn.100026a0
mov ecx, dword [ebp - 0x1194]
lea eax, [ebp - 0x119c]
push eax
lea eax, [ebp - 0x116c]
mov byte [ebp - 4], 0x16
push eax
call fcn.1002a3c1
mov ecx, eax
call fcn.10029ccc
push 0
push ebx
lea ecx, [ebp - 0x116c]
mov byte [ebp - 4], 0x14
call fcn.10002630
mov ecx, dword [ebp - 0x1178]
call fcn.1005a570
mov ecx, dword [ebp - 0x1198]
mov esi, eax
mov dword [ebp - 0x1178], esi
mov byte [ebp - 4], 0x12
test ecx, ecx
je 0x1002c293
call fcn.10021e34
test esi, esi
jne 0x1002c093
mov edi, dword [ebp - 0x1184]
lea eax, [ebp - 0x628]
push eax
lea ecx, [ebp - 0x116c]
call fcn.10002590
mov ecx, dword [ebp - 0x1180]
lea eax, [ebp - 0x1194]
push eax
lea eax, [ebp - 0x116c]
mov byte [ebp - 4], 0x17
push eax
call fcn.1002a3c1
mov ecx, eax
call fcn.10029ccc
xor esi, esi
mov byte [ebp - 4], 0x12
push esi
push ebx
lea ecx, [ebp - 0x116c]
call fcn.10002630
mov ecx, edi
call fcn.1005a570
mov ecx, dword [ebp - 0x1190]
mov edi, eax
mov dword [ebp - 0x1184], edi
mov byte [ebp - 4], 6
test ecx, ecx
je 0x1002c30c
call fcn.10021e34
test edi, edi
jne 0x1002c01b
lea eax, [ebp - 0xf4c]
push eax
lea ecx, [ebp - 0x116c]
call fcn.10002590
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.1002a3c1
mov ecx, eax
call fcn.10029ccc
push esi
push ebx
lea ecx, [ebp - 0x116c]
mov byte [ebp - 4], 6
call fcn.10002630
mov ecx, dword [ebp - 0x1170]
call fcn.1005a570
mov ecx, dword [ebp - 0x1188]
mov edi, eax
mov dword [ebp - 0x1170], edi
test ecx, ecx
je 0x1002c383
call fcn.10021e34
mov ecx, dword [ebp - 0x11b0]
test ecx, ecx
je 0x1002c392
call fcn.10021e34
mov ecx, dword [ebp - 0x117c]
mov byte [ebp - 4], 0
test ecx, ecx
je 0x1002c3a5
call fcn.10021e34
test edi, edi
jne 0x1002ba02
mov eax, dword [ebp - 0x1174]
test eax, eax
je 0x1002c3c2
push eax
call fcn.1001f39e
pop ecx
jmp 0x1002c3c2
xor ebx, ebx
lea ecx, [ebp - 0x1254]
call fcn.10029ca9
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.1005d874
mov esp, ebp
pop ebp
ret 4