Function at 0x1010142e
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x54
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, 0xffffffff
cmp ecx, 0
sete bl
cmp eax, 0
sete bh
and bl, bh
test bl, 1
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
jne 0x10101641
jmp 0x1010149c
mov eax, dword [ebp - 0x1c]
add eax, 0xffffd8fa
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0x24], eax
jmp 0x1010159e
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx]
mov esi, dword [ebp - 0x30]
cmp edx, esi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], edx
je 0x10101632
jmp 0x1010151f
mov dword [0x10166df4], 0xfffff235
mov dword [0x10166df8], 0x191f
mov ecx, dword fs:[0x18]
xor eax, eax
mov edx, dword [0x10166df4]
add edx, 0xffffe4cd
mov dword [0x10166df4], edx
mov ecx, dword [ecx + 0x30]
mov ecx, dword [ecx + 0xc]
mov edx, ecx
add edx, 0x14
mov dword [0x10166df8], 0x702
mov ecx, dword [ecx + 0x14]
mov dword [0x10166df4], 0x1c32
cmp ecx, edx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x18], eax
je 0x10101641
mov eax, dword [ebp - 0x10]
cmp eax, 0
setne cl
mov byte [ebp - 0x3d], cl
mov eax, 0x1c32
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ecx
jmp 0x1010151f
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
mov edx, eax
add edx, 0x24
mov esi, dword [eax + 0x28]
mov edi, ecx
add edi, 0xfffff2d7
mov ebx, dword [eax + 0x10]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x10]
cmp ebx, eax
sete al
mov ah, byte [ebp - 0x3d]
and ah, al
test ah, 1
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x50], edi
jne 0x10101585
mov eax, dword [ebp - 0x48]
mov cx, word [eax]
shr cx, 1
movzx edx, cx
cmp cx, 0
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x28], esi
je 0x1010147e
jmp 0x10101469
mov eax, dword [ebp - 0x50]
mov dword [0x10166df8], eax
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff8
mov dword [ebp - 0x18], ecx
jmp 0x10101641
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x4c]
mov dx, word [ecx + eax*2]
mov si, dx
add si, 0xffbf
mov di, dx
add di, 0x20
cmp si, 0x1a
mov dword [ebp - 0x58], eax
mov word [ebp - 0x5a], dx
mov word [ebp - 0x5c], di
jb 0x101015d2
mov ax, word [ebp - 0x5a]
mov word [ebp - 0x5c], ax
mov ax, word [ebp - 0x5c]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x58]
cmp word [ecx + edx*2], ax
sete bl
add edx, 1
cmp ax, 0
setne bh
mov al, bl
and al, bh
mov esi, dword [ebp - 0x54]
cmp edx, esi
setb bh
and al, bh
test al, 1
mov byte [ebp - 0x5d], bl
mov dword [ebp - 0x24], edx
jne 0x1010159e
mov eax, dword [ebp - 0x20]
mov dword [0x10166df4], eax
mov al, byte [ebp - 0x5d]
test al, 1
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x28], ecx
jne 0x10101622
jmp 0x1010147e
mov eax, dword [ebp - 0x50]
mov dword [0x10166df8], eax
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x18], ecx
jmp 0x10101641
mov eax, dword [ebp - 0x50]
mov dword [0x10166df8], eax
xor eax, eax
mov dword [ebp - 0x18], eax
jmp 0x10101641
mov eax, dword [ebp - 0x18]
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret