Function at 0x10118510
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10167677
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, 0x38d
push ebx
cdq
idiv dword [0x1018cdc0]
mov eax, dword [0x1018cdbc]
push esi
xor ebx, ebx
push edi
push ebx
push 0xffffffffffffffd3
push 0x33
push 0xffffffffffffffd5
mov dword [esp + 0x2c], ebx
mov cl, byte [edx + eax]
add cl, 0x18
push ecx
call fcn.1004a750
mov ecx, dword [esp + 0x48]
add esp, 0x14
cmp ecx, ebx
mov byte [0x1018cdc4], al
jne 0x10118592
mov eax, dword [esp + 0x30]
mov dl, byte [esp + 0x30]
mov dword [esp + 0x1c], 1
mov byte [eax], dl
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
mov eax, dword [ecx]
push ebp
call dword [eax + 0x14]
mov edi, dword [0x1018cdc0]
mov esi, eax
mov eax, 0x25d
mov cl, byte [0x1018cdc4]
cdq
idiv edi
mov ebp, dword [0x1018cdbc]
add cl, 0xfe
mov byte [0x1018cdc4], cl
mov al, cl
mov dl, byte [edx + ebp]
push edx
push eax
mov eax, 0x3bc
push ebx
cdq
idiv edi
push ecx
mov cl, byte [edx + ebp]
push ecx
call fcn.10118e60
add esp, 0x14
cmp esi, ebx
mov byte [esp + 0x38], al
pop ebp
jne 0x10118610
mov eax, dword [esp + 0x30]
mov dl, byte [esp + 0x30]
pop edi
pop esi
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov byte [eax], dl
mov dword [esp + 0x14], 1
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0xc]
push eax
push ecx
call fcn.10021700
add esp, 8
mov eax, dword [eax + 4]
mov edi, 1
cmp eax, ebx
mov dword [esp + 0x28], edi
jne 0x10118637
mov eax, 0x1016a1dc
push eax
mov ecx, esi
call fcn.1011f2d0
mov esi, eax
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov byte [esp + 0x28], bl
je 0x1011866a
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x10118661
cmp al, 0xff
je 0x10118661
dec al
mov byte [ecx], al
jmp 0x1011866a
push ecx
call fcn.101307a0
add esp, 4
mov cl, byte [0x1018cdc4]
or al, 0xff
sub al, cl
mov dl, cl
imul cl
push 0xffffffffffffffda
push edx
mov dl, 0xf
mov dword [esp + 0x18], ebx
imul dl
push eax
mov al, byte [esp + 0x40]
sub al, 0x14
mov dword [esp + 0x20], ebx
push eax
mov al, cl
mov cl, 0x2c
mov dword [esp + 0x28], ebx
imul cl
push eax
call fcn.10118e60
add esp, 0x14
cmp esi, ebx
mov byte [0x1018cdc4], al
jne 0x101186d4
mov eax, dword [esp + 0x30]
mov dl, byte [esp + 0x30]
mov dword [esp + 0x1c], edi
pop edi
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
pop esi
mov byte [eax], dl
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
cmp eax, ebx
jne 0x10118708
mov eax, dword [esp + 0x30]
mov cl, byte [esp + 0x30]
mov dword [esp + 0x1c], edi
pop edi
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
pop esi
mov byte [eax], cl
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
lea edx, [esp + 0xc]
mov ecx, eax
push edx
call fcn.10120b90
mov esi, dword [esp + 0x30]
push eax
push esi
mov dword [esp + 0x30], 2
call fcn.100218a0
mov eax, dword [esp + 0x18]
add esp, 8
cmp eax, ebx
mov dword [esp + 0x1c], edi
mov byte [esp + 0x28], bl
je 0x10118769
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x10118760
cmp al, 0xff
je 0x10118760
dec al
pop edi
mov byte [ecx], al
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
push ecx
call fcn.101307a0
add esp, 4
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret