Function at 0x495cd0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x52ef47
mov eax, dword fs:[0]
push eax
sub esp, 0x2b4
mov eax, dword [0x56b1dc]
xor eax, esp
mov dword [esp + 0x2b0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x56b1dc]
xor eax, esp
push eax
lea eax, [esp + 0x2c8]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x2d8]
mov eax, dword [esp + 0x2dc]
push ebp
mov edi, edx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], eax
mov dword [esp + 0x38], ecx
call fcn.0046cf50
xor ebx, ebx
push 0x34
lea edx, [esp + 0x44]
push ebx
push edx
mov dword [esp + 0x3c], ebx
lea esi, [ebx + 2]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call fcn.00508d80
add esp, 0xc
cmp edi, ebx
mov dword [esp + 0x2d0], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x20], ebx
je 0x495d77
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x495d66
sub eax, edx
sar eax, 1
jne 0x495dd4
push 0x10
xor esi, esi
call fcn.00500104
add esp, 4
cmp eax, ebx
je 0x495d98
mov dword [eax], vtable.CDefaultSkinXml.0
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 4], ebx
jmp 0x495d9a
xor eax, eax
cmp eax, ebx
mov dword [esp + 0x28], eax
je 0x49605f
mov dword [eax + 4], ebx
lea eax, [esp + 0x4c]
push eax
mov ebx, str.10000000_0000_0000_0000_000000000001
call fcn.004721c0
lea ecx, [esp + 0x50]
push ecx
mov ebx, 0x5437a8
call fcn.004721c0
mov dword [esp + 0x2c], 1
jmp 0x495ff3
lea edx, [esp + 0x74]
push edx
push edi
call dword [0x531338]
cmp eax, 0xffffffff
je 0x49605f
push eax
call dword [0x531354]
push 0x30
call fcn.00500104
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, ebx
mov byte [esp + 0x2d0], 1
je 0x495e14
push eax
call fcn.004914c0
mov ebp, eax
jmp 0x495e16
xor ebp, ebp
push 0x28
mov byte [esp + 0x2d4], 0
call fcn.00500104
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, ebx
mov byte [esp + 0x2d0], 2
je 0x495e40
push eax
call fcn.00484d40
mov ebx, eax
test ebx, ebx
mov byte [esp + 0x2d0], 0
mov dword [esp + 0x24], ebx
je 0x495e58
push 0
push ebx
call fcn.00484fe0
xor eax, eax
cmp ebp, eax
je 0x49603d
cmp ebx, eax
je 0x495fd8
push edi
push ebp
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], eax
call fcn.004918f0
test eax, eax
je 0x495fd8
push 4
call fcn.00500104
mov edi, eax
add esp, 4
test edi, edi
mov dword [esp + 0x18], edi
je 0x495fd8
push ebp
lea eax, [esp + 0x44]
push eax
mov dword [edi], vtable.CSkinFileInfoXml.0
call fcn.00486120
xor eax, eax
cmp dword [esp + 0x40], 2
jne 0x495eb8
mov eax, 1
test eax, eax
mov dword [esp + 0x2c], eax
je 0x495fc3
push 0x54cd44
lea ecx, [esp + 0x18]
push ecx
push ebp
xor ecx, ecx
lea edx, [esp + 0x28]
call fcn.00492000
mov eax, dword [esp + 0x14]
test eax, eax
je 0x495eef
push eax
mov edi, ebx
call fcn.004852b0
jmp 0x495f85
push str.skinConfig_status_ver2.0.xml
lea edx, [esp + 0x18]
push edx
push ebp
xor ecx, ecx
lea edx, [esp + 0x28]
call fcn.00492000
mov eax, dword [esp + 0x14]
test eax, eax
je 0x495f15
push eax
mov edi, ebx
call fcn.004852b0
lea eax, [esp + 0x14]
push eax
mov esi, ebp
call fcn.00492110
push str.skinConfig_unite_ver2.0.xml
lea ecx, [esp + 0x18]
push ecx
push ebp
xor ecx, ecx
lea edx, [esp + 0x28]
call fcn.00492000
mov eax, dword [esp + 0x14]
test eax, eax
je 0x495f47
push eax
mov edi, ebx
call fcn.004852b0
lea edx, [esp + 0x14]
push edx
mov esi, ebp
call fcn.00492110
push str.skinConfig_divide_ver2.0.xml
lea eax, [esp + 0x18]
push eax
push ebp
xor ecx, ecx
lea edx, [esp + 0x28]
call fcn.00492000
mov eax, dword [esp + 0x14]
test eax, eax
je 0x495f79
push eax
mov edi, ebx
call fcn.004852b0
lea ecx, [esp + 0x14]
push ecx
mov esi, ebp
call fcn.00492110
push 0x54ce18
call fcn.00485380
test eax, eax
je 0x495fb7
push 0x54ce28
call fcn.00485380
test eax, eax
je 0x495fb7
push 0x54ce38
call fcn.00485380
test eax, eax
mov dword [esp + 0x20], 1
jne 0x495fbf
mov dword [esp + 0x20], 0
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x20]
mov edx, dword [edi]
mov eax, dword [edx]
neg esi
sbb esi, esi
push 1
mov ecx, edi
add esi, 2
call eax
mov edx, dword [ebp]
mov eax, dword [edx]
push 1
mov ecx, ebp
call eax
cmp dword [esp + 0x20], 0
je 0x49603d
cmp esi, 2
je 0x49603d
mov ebp, dword [esp + 0x38]
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
mov edx, dword [esp + 0x4c]
xor eax, eax
push ecx
cmp esi, 1
sete al
push ebx
push edx
mov edi, ebp
push eax
push 0
call fcn.004960a0
test eax, eax
mov dword [esp + 0x30], eax
je 0x496041
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x49602a
mov ecx, dword [esp + 0x2c]
mov dword [eax], ecx
mov esi, dword [esp + 0x34]
test esi, esi
je 0x496041
lea edi, [esp + 0x40]
call fcn.00472130
jmp 0x496041
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x49604f
mov edx, dword [ebx]
mov eax, dword [edx]
push 1
mov ecx, ebx
call eax
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x49605f
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
lea esi, [esp + 0x40]
call fcn.00430780
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2b0]
xor ecx, esp
call fcn.004ff939
add esp, 0x2c0
ret 8