Function at 0x59ed40
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x607c47
mov eax, dword fs:[0]
push eax
sub esp, 0x2b4
mov eax, dword [0x6687b8]
xor eax, esp
mov dword [esp + 0x2b0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6687b8]
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.00578a50
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.005da970
add esp, 0xc
cmp edi, ebx
mov dword [esp + 0x2d0], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x20], ebx
je 0x59ede7
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x59edd6
sub eax, edx
sar eax, 1
jne 0x59ee44
push 0x10
xor esi, esi
call fcn.005d2776
add esp, 4
cmp eax, ebx
je 0x59ee08
mov dword [eax], vtable.CDefaultSkinXml.0
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 4], ebx
jmp 0x59ee0a
xor eax, eax
cmp eax, ebx
mov dword [esp + 0x28], eax
je 0x59f0d3
mov dword [eax + 4], ebx
lea eax, [esp + 0x4c]
push eax
mov ebx, str.10000000_0000_0000_0000_000000000001
call fcn.00585640
lea ecx, [esp + 0x50]
push ecx
mov ebx, 0x628c3c
call fcn.00585640
mov dword [esp + 0x2c], 1
jmp 0x59f067
lea edx, [esp + 0x74]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x59f0d3
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x30
call fcn.005d2776
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, ebx
mov byte [esp + 0x2d0], 1
je 0x59ee84
push eax
call fcn.0059b7a0
mov ebp, eax
jmp 0x59ee86
xor ebp, ebp
push 0x28
mov byte [esp + 0x2d4], 0
call fcn.005d2776
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, ebx
mov byte [esp + 0x2d0], 2
je 0x59eeb0
push eax
call fcn.0059a410
mov ebx, eax
test ebx, ebx
mov byte [esp + 0x2d0], 0
mov dword [esp + 0x24], ebx
je 0x59eec8
push 0
push ebx
call fcn.0059a6b0
xor eax, eax
cmp ebp, eax
je 0x59f0b1
cmp ebx, eax
je 0x59f04c
push edi
push ebp
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], eax
call fcn.0059bbd0
test eax, eax
je 0x59f04c
push 4
call fcn.005d2776
mov edi, eax
add esp, 4
test edi, edi
mov dword [esp + 0x18], edi
je 0x59f04c
push ebp
lea eax, [esp + 0x44]
push eax
mov dword [edi], vtable.CSkinFileInfoXml.0
call fcn.00599060
xor eax, eax
cmp dword [esp + 0x40], 2
jne 0x59ef28
mov eax, 1
test eax, eax
mov dword [esp + 0x2c], eax
je 0x59f037
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
push ebp
mov edx, 0x63d784
xor ecx, ecx
call fcn.0059c2e0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x59ef60
push eax
mov edi, ebx
call fcn.0059a980
jmp 0x59eff9
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.0059c2e0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x59ef87
push eax
mov edi, ebx
call fcn.0059a980
lea edx, [esp + 0x14]
push edx
mov esi, ebp
call fcn.0059c3f0
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.0059c2e0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x59efba
push eax
mov edi, ebx
call fcn.0059a980
lea edx, [esp + 0x14]
push edx
mov esi, ebp
call fcn.0059c3f0
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.0059c2e0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x59efed
push eax
mov edi, ebx
call fcn.0059a980
lea edx, [esp + 0x14]
push edx
mov esi, ebp
call fcn.0059c3f0
push 0x63d858
call fcn.0059aa50
test eax, eax
je 0x59f02b
push 0x63d868
call fcn.0059aa50
test eax, eax
je 0x59f02b
push 0x63d878
call fcn.0059aa50
test eax, eax
mov dword [esp + 0x20], 1
jne 0x59f033
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 0x59f0b1
cmp esi, 2
je 0x59f0b1
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.0059f110
test eax, eax
mov dword [esp + 0x30], eax
je 0x59f0b5
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x59f09e
mov ecx, dword [esp + 0x2c]
mov dword [eax], ecx
mov esi, dword [esp + 0x34]
test esi, esi
je 0x59f0b5
lea edi, [esp + 0x40]
call fcn.005855b0
jmp 0x59f0b5
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x59f0c3
mov edx, dword [ebx]
mov eax, dword [edx]
push 1
mov ecx, ebx
call eax
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x59f0d3
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
lea esi, [esp + 0x40]
call fcn.004404f0
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.005d28b3
add esp, 0x2c0
ret 8