Function at 0xbfae60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0xd80f0b
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0xde16ec]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0xde16ec]
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 0xbfaedd
push 5
push ebp
mov ecx, edi
mov dword [esp + 0x2c], ebx
call fcn.00bfbdc0
jmp 0xbfb120
or eax, 0x40
mov dword [esi + 0x28], eax
cmp dword [esi + 0x20], ebx
jne 0xbfaf13
push 0x130
call fcn.00d08a50
add esp, 4
mov dword [esp + 0x1c], eax
mov byte [esp + 0x64], 1
cmp eax, ebx
je 0xbfaf0a
push eax
call fcn.00bf3050
jmp 0xbfaf0c
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 0xbfaf38
mov edx, dword [esp + 0x30]
push 5
push edx
mov ecx, edi
mov dword [esp + 0x2c], ebx
call fcn.00bfbdc0
jmp 0xbfb120
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.00bfcda0
xor esi, esi
mov dword [esp + 0x48], esi
mov byte [esp + 0x64], 2
mov dword [esp + 0x20], esi
cmp dword [esp + 0x28], esi
jle 0xbfafe8
jmp 0xbfaf76
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.00bfb150
xor ecx, ecx
mov byte [esp + 0x1c], al
mov eax, dword [esp + 0x38]
test esi, esi
je 0xbfafc5
jns 0xbfafb8
mov ecx, esi
neg ecx
je 0xbfafb8
or edx, 0xffffffff
sub edx, esi
shr edx, 5
lea ecx, [edx*4 + 4]
sub eax, ecx
jmp 0xbfafc0
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.00bd5170
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x20], eax
cmp eax, dword [esp + 0x28]
jl 0xbfaf72
cmp byte [esp + 0x1b], 0
je 0xbfb0ee
mov edi, dword [esp + 0x2c]
cmp dword [edi + 0xc], 1
jne 0xbfb014
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 0xbfb0db
test esi, esi
jns 0xbfb04b
mov ecx, esi
neg ecx
je 0xbfb04b
mov eax, dword [esp + 0x38]
or edx, 0xffffffff
sub edx, esi
shr edx, 5
lea ecx, [edx*4 + 4]
sub eax, ecx
jmp 0xbfb057
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 0xbfb0c4
mov ecx, dword [ebp + 0x20]
inc eax
mov dword [esp + 0x1c], eax
cmp ecx, eax
jge 0xbfb0c4
mov edi, dword [ebp + 0x18]
add ecx, ecx
cmp ecx, eax
mov dword [esp + 0x34], ecx
lea eax, [esp + 0x1c]
jl 0xbfb091
lea eax, [esp + 0x34]
mov eax, dword [eax]
push eax
mov dword [ebp + 0x20], eax
call fcn.00d07a7c
mov ecx, dword [ebp + 0x1c]
add esp, 4
push ecx
push edi
push eax
mov dword [ebp + 0x18], eax
call fcn.00d0c600
lea eax, [ebp + 0x24]
add esp, 0xc
cmp edi, eax
je 0xbfb0c0
push edi
call fcn.00d09081
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 0xbfb02a
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 0xbfb0f2
mov esi, dword [esp + 0x24]
mov byte [esp + 0x64], 0
mov eax, dword [esp + 0x38]
test eax, eax
je 0xbfb108
push eax
call fcn.00d08a36
add esp, 4
mov dword [esp + 0x64], 0xffffffff
test esi, esi
je 0xbfb11e
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.00d08a41
add esp, 0x54
ret 4