Function at 0x13bae60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1540f0b
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x15a16ec]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x15a16ec]
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 0x13baedd
push 5
push ebp
mov ecx, edi
mov dword [esp + 0x2c], ebx
call fcn.013bbdc0
jmp 0x13bb120
or eax, 0x40
mov dword [esi + 0x28], eax
cmp dword [esi + 0x20], ebx
jne 0x13baf13
push 0x130
call fcn.014c8a50
add esp, 4
mov dword [esp + 0x1c], eax
mov byte [esp + 0x64], 1
cmp eax, ebx
je 0x13baf0a
push eax
call fcn.013b3050
jmp 0x13baf0c
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 0x13baf38
mov edx, dword [esp + 0x30]
push 5
push edx
mov ecx, edi
mov dword [esp + 0x2c], ebx
call fcn.013bbdc0
jmp 0x13bb120
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.013bcda0
xor esi, esi
mov dword [esp + 0x48], esi
mov byte [esp + 0x64], 2
mov dword [esp + 0x20], esi
cmp dword [esp + 0x28], esi
jle 0x13bafe8
jmp 0x13baf76
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.013bb150
xor ecx, ecx
mov byte [esp + 0x1c], al
mov eax, dword [esp + 0x38]
test esi, esi
je 0x13bafc5
jns 0x13bafb8
mov ecx, esi
neg ecx
je 0x13bafb8
or edx, 0xffffffff
sub edx, esi
shr edx, 5
lea ecx, [edx*4 + 4]
sub eax, ecx
jmp 0x13bafc0
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.01395170
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x20], eax
cmp eax, dword [esp + 0x28]
jl 0x13baf72
cmp byte [esp + 0x1b], 0
je 0x13bb0ee
mov edi, dword [esp + 0x2c]
cmp dword [edi + 0xc], 1
jne 0x13bb014
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 0x13bb0db
test esi, esi
jns 0x13bb04b
mov ecx, esi
neg ecx
je 0x13bb04b
mov eax, dword [esp + 0x38]
or edx, 0xffffffff
sub edx, esi
shr edx, 5
lea ecx, [edx*4 + 4]
sub eax, ecx
jmp 0x13bb057
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 0x13bb0c4
mov ecx, dword [ebp + 0x20]
inc eax
mov dword [esp + 0x1c], eax
cmp ecx, eax
jge 0x13bb0c4
mov edi, dword [ebp + 0x18]
add ecx, ecx
cmp ecx, eax
mov dword [esp + 0x34], ecx
lea eax, [esp + 0x1c]
jl 0x13bb091
lea eax, [esp + 0x34]
mov eax, dword [eax]
push eax
mov dword [ebp + 0x20], eax
call fcn.014c7a7c
mov ecx, dword [ebp + 0x1c]
add esp, 4
push ecx
push edi
push eax
mov dword [ebp + 0x18], eax
call fcn.014cc600
lea eax, [ebp + 0x24]
add esp, 0xc
cmp edi, eax
je 0x13bb0c0
push edi
call fcn.014c9081
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 0x13bb02a
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 0x13bb0f2
mov esi, dword [esp + 0x24]
mov byte [esp + 0x64], 0
mov eax, dword [esp + 0x38]
test eax, eax
je 0x13bb108
push eax
call fcn.014c8a36
add esp, 4
mov dword [esp + 0x64], 0xffffffff
test esi, esi
je 0x13bb11e
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.014c8a41
add esp, 0x54
ret 4