Function at 0x54e910
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x5aa817
mov eax, dword fs:[0]
push eax
sub esp, 0x2b4
mov eax, dword [0x5f13cc]
xor eax, esp
mov dword [esp + 0x2b0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f13cc]
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.0052d960
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.00580260
add esp, 0xc
cmp edi, ebx
mov dword [esp + 0x2d0], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x20], ebx
je 0x54e9b7
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x54e9a6
sub eax, edx
sar eax, 1
jne 0x54ea14
push 0x10
xor esi, esi
call fcn.00578e5f
add esp, 4
cmp eax, ebx
je 0x54e9d8
mov dword [eax], vtable.CDefaultSkinXml.0
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 4], ebx
jmp 0x54e9da
xor eax, eax
cmp eax, ebx
mov dword [esp + 0x28], eax
je 0x54eca3
mov dword [eax + 4], ebx
lea eax, [esp + 0x4c]
push eax
mov ebx, str.10000000_0000_0000_0000_000000000001
call fcn.00535760
lea ecx, [esp + 0x50]
push ecx
mov ebx, 0x5c06a8
call fcn.00535760
mov dword [esp + 0x2c], 1
jmp 0x54ec37
lea edx, [esp + 0x74]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x54eca3
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x30
call fcn.00578e5f
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, ebx
mov byte [esp + 0x2d0], 1
je 0x54ea54
push eax
call fcn.0054fb40
mov ebp, eax
jmp 0x54ea56
xor ebp, ebp
push 0x28
mov byte [esp + 0x2d4], 0
call fcn.00578e5f
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, ebx
mov byte [esp + 0x2d0], 2
je 0x54ea80
push eax
call fcn.00545790
mov ebx, eax
test ebx, ebx
mov byte [esp + 0x2d0], 0
mov dword [esp + 0x24], ebx
je 0x54ea98
push 0
push ebx
call fcn.00545a30
xor eax, eax
cmp ebp, eax
je 0x54ec81
cmp ebx, eax
je 0x54ec1c
push edi
push ebp
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], eax
call fcn.0054ff70
test eax, eax
je 0x54ec1c
push 4
call fcn.00578e5f
mov edi, eax
add esp, 4
test edi, edi
mov dword [esp + 0x18], edi
je 0x54ec1c
push ebp
lea eax, [esp + 0x44]
push eax
mov dword [edi], vtable.CSkinFileInfoXml.0
call fcn.00544930
xor eax, eax
cmp dword [esp + 0x40], 2
jne 0x54eaf8
mov eax, 1
test eax, eax
mov dword [esp + 0x2c], eax
je 0x54ec07
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
push ebp
mov edx, 0x5ce4f4
xor ecx, ecx
call fcn.00550680
mov eax, dword [esp + 0x14]
test eax, eax
je 0x54eb30
push eax
mov edi, ebx
call fcn.00545d00
jmp 0x54ebc9
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
push ebp
mov edx, str.skinConfig_status_ver2.0.xml
xor ecx, ecx
call fcn.00550680
mov eax, dword [esp + 0x14]
test eax, eax
je 0x54eb57
push eax
mov edi, ebx
call fcn.00545d00
lea edx, [esp + 0x14]
push edx
mov esi, ebp
call fcn.00550790
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
push ebp
mov edx, str.skinConfig_unite_ver2.0.xml
xor ecx, ecx
call fcn.00550680
mov eax, dword [esp + 0x14]
test eax, eax
je 0x54eb8a
push eax
mov edi, ebx
call fcn.00545d00
lea edx, [esp + 0x14]
push edx
mov esi, ebp
call fcn.00550790
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
push ebp
mov edx, str.skinConfig_divide_ver2.0.xml
xor ecx, ecx
call fcn.00550680
mov eax, dword [esp + 0x14]
test eax, eax
je 0x54ebbd
push eax
mov edi, ebx
call fcn.00545d00
lea edx, [esp + 0x14]
push edx
mov esi, ebp
call fcn.00550790
push 0x5ce5c8
call fcn.00545dd0
test eax, eax
je 0x54ebfb
push 0x5ce5d8
call fcn.00545dd0
test eax, eax
je 0x54ebfb
push 0x5ce5e8
call fcn.00545dd0
test eax, eax
mov dword [esp + 0x20], 1
jne 0x54ec03
mov dword [esp + 0x20], 0
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x20]
mov eax, dword [edi]
mov edx, dword [eax]
neg esi
sbb esi, esi
push 1
mov ecx, edi
add esi, 2
call edx
mov eax, dword [ebp]
mov edx, dword [eax]
push 1
mov ecx, ebp
call edx
cmp dword [esp + 0x20], 0
je 0x54ec81
cmp esi, 2
je 0x54ec81
mov ebp, dword [esp + 0x38]
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x4c]
xor edx, edx
push eax
cmp esi, 1
sete dl
push ebx
push ecx
mov edi, ebp
push edx
push 0
call fcn.0054ece0
test eax, eax
mov dword [esp + 0x30], eax
je 0x54ec85
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x54ec6e
mov ecx, dword [esp + 0x2c]
mov dword [eax], ecx
mov esi, dword [esp + 0x34]
test esi, esi
je 0x54ec85
lea edi, [esp + 0x40]
call fcn.005356d0
jmp 0x54ec85
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x54ec93
mov edx, dword [ebx]
mov eax, dword [edx]
push 1
mov ecx, ebx
call eax
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x54eca3
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
lea esi, [esp + 0x40]
call fcn.004405a0
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.005787fd
add esp, 0x2c0
ret 8