Function at 0xbcae60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0xd50f0b
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [str._Sk]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [str._Sk]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x6c]
mov esi, edx
xor ebx, ebx
mov edi, ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x64], ebx
cmp dword [esi + 0xc], 1
mov eax, dword [esi + 0x28]
sete byte [esp + 0x1b]
mov ecx, eax
shr ecx, 6
test cl, 1
jne 0xbcaedd
push 5
push ebp
mov ecx, edi
mov dword [esp + 0x2c], ebx
call fcn.00bcbdc0
jmp 0xbcb120
or eax, 0x40
mov dword [esi + 0x28], eax
cmp dword [esi + 0x20], ebx
jne 0xbcaf13
push 0x130
call fcn.00cd8a50
add esp, 4
mov dword [esp + 0x1c], eax
mov byte [esp + 0x64], 1
cmp eax, ebx
je 0xbcaf0a
push eax
call fcn.00bc3050
jmp 0xbcaf0c
xor eax, eax
mov byte [esp + 0x64], bl
mov dword [esi + 0x20], eax
mov ebp, dword [esi + 0x20]
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x28], eax
cmp eax, ebx
jne 0xbcaf38
mov edx, dword [esp + 0x30]
push 5
push edx
mov ecx, edi
mov dword [esp + 0x2c], ebx
call fcn.00bcbdc0
jmp 0xbcb120
mov dword [esp + 0x20], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
lea ebx, [esp + 0x20]
xor edi, edi
lea esi, [esp + 0x38]
call fcn.00bccda0
xor esi, esi
mov dword [esp + 0x48], esi
mov byte [esp + 0x64], 2
mov dword [esp + 0x20], esi
cmp dword [esp + 0x28], esi
jle 0xbcafe8
jmp 0xbcaf76
mov esi, dword [esp + 0x48]
mov eax, dword [ebp + 0x28]
mov ecx, dword [esp + 0x20]
mov eax, dword [eax + ecx*4]
mov edx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x38]
push edx
call fcn.00bcb150
xor ecx, ecx
mov byte [esp + 0x1c], al
mov eax, dword [esp + 0x38]
test esi, esi
je 0xbcafc5
jns 0xbcafb8
mov ecx, esi
neg ecx
je 0xbcafb8
or edx, 0xffffffff
sub edx, esi
shr edx, 5
lea ecx, [edx*4 + 4]
sub eax, ecx
jmp 0xbcafc0
mov edx, esi
shr edx, 5
lea eax, [eax + edx*4]
and esi, 0x1f
mov ecx, esi
push ecx
push eax
mov eax, dword [esp + 0x24]
push eax
lea ebx, [esp + 0x58]
lea edi, [esp + 0x44]
call fcn.00ba5170
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x20], eax
cmp eax, dword [esp + 0x28]
jl 0xbcaf72
cmp byte [esp + 0x1b], 0
je 0xbcb0ee
mov edi, dword [esp + 0x2c]
cmp dword [edi + 0xc], 1
jne 0xbcb014
mov eax, dword [edi + 0x14]
mov ecx, dword [edi + 0x10]
or dword [edi + 0x28], 0xe
mov dword [edi + 0xc], 2
mov dword [edi + 0x14], ecx
mov dword [edi + 0x10], eax
mov edx, dword [ebp]
mov eax, dword [edx + 0xc]
mov ecx, ebp
call eax
xor esi, esi
cmp dword [esp + 0x28], esi
jle 0xbcb0db
test esi, esi
jns 0xbcb04b
mov ecx, esi
neg ecx
je 0xbcb04b
mov eax, dword [esp + 0x38]
or edx, 0xffffffff
sub edx, esi
shr edx, 5
lea ecx, [edx*4 + 4]
sub eax, ecx
jmp 0xbcb057
mov eax, dword [esp + 0x38]
mov edx, esi
shr edx, 5
lea eax, [eax + edx*4]
mov ecx, esi
and ecx, 0x1f
mov edx, 1
shl edx, cl
test dword [eax], edx
mov eax, dword [ebp + 0x20]
setne bl
cmp dword [ebp + 0x1c], eax
jne 0xbcb0c4
mov ecx, dword [ebp + 0x20]
inc eax
mov dword [esp + 0x1c], eax
cmp ecx, eax
jge 0xbcb0c4
mov edi, dword [ebp + 0x18]
add ecx, ecx
cmp ecx, eax
mov dword [esp + 0x34], ecx
lea eax, [esp + 0x1c]
jl 0xbcb091
lea eax, [esp + 0x34]
mov eax, dword [eax]
push eax
mov dword [ebp + 0x20], eax
call fcn.00cd7a7c
mov ecx, dword [ebp + 0x1c]
add esp, 4
push ecx
push edi
push eax
mov dword [ebp + 0x18], eax
call fcn.00cdc600
lea eax, [ebp + 0x24]
add esp, 0xc
cmp edi, eax
je 0xbcb0c0
push edi
call fcn.00cd9081
add esp, 4
mov edi, dword [esp + 0x2c]
mov edx, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
mov byte [ecx + edx], bl
inc dword [ebp + 0x1c]
inc esi
cmp esi, dword [esp + 0x28]
jl 0xbcb02a
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx]
mov edx, dword [eax]
xor esi, esi
push edi
mov dword [esp + 0x28], esi
call edx
jmp 0xbcb0f2
mov esi, dword [esp + 0x24]
mov byte [esp + 0x64], 0
mov eax, dword [esp + 0x38]
test eax, eax
je 0xbcb108
push eax
call fcn.00cd8a36
add esp, 4
mov dword [esp + 0x64], 0xffffffff
test esi, esi
je 0xbcb11e
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
mov al, 1
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.00cd8a41
add esp, 0x54
ret 4