Function at 0x1000a790
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]
cmp ecx, 0
sete dl
cmp eax, 0
sete dh
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov byte [ebp - 0x15], dl
mov byte [ebp - 0x16], dh
mov eax, 0xffffffff
mov cl, byte [ebp - 0x15]
mov dl, byte [ebp - 0x16]
and cl, dl
test cl, 1
mov dword [ebp - 0x1c], eax
jne 0x1000a9cd
jmp 0x1000a81a
mov eax, dword [ebp - 0x20]
mov dword [0x101f8958], 0x649
add eax, 0xfffffff8
mov dword [0x101f8954], 0x27a
mov dword [ebp - 0x1c], eax
jmp 0x1000a9cd
mov eax, dword [ebp - 0x24]
mov dword [0x101f8954], 0xffffdcc5
mov dword [0x101f8958], 0x2352
mov dword [ebp - 0x1c], eax
jmp 0x1000a9cd
mov dword [0x101f8958], 0xfffff984
mov dword [0x101f8954], 0x1d9e
mov ecx, dword fs:[0x18]
mov dword [0x101f8958], 0xa4f
mov dword [0x101f8954], 0x1886
mov eax, dword [ecx + 0x30]
mov dword [0x101f8954], 0x446
mov eax, dword [eax + 0xc]
mov ecx, eax
add ecx, 0x14
mov eax, dword [eax + 0x14]
mov dword [0x101f8958], 0x1fce
cmp eax, ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], eax
je 0x1000a9bc
jmp 0x1000a897
mov dword [0x101f8958], 0xffffea71
mov dword [0x101f8954], 0xffffdcc5
jmp 0x1000a9bc
mov eax, dword [ebp - 0x10]
cmp eax, 0
setne cl
mov edx, dword [ebp - 0x2c]
mov byte [ebp - 0x2d], cl
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
mov ecx, eax
add ecx, 0x24
mov edx, dword [eax + 0x28]
mov esi, dword [eax + 0x10]
mov edi, dword [ebp - 0x10]
cmp esi, edi
sete bl
mov bh, byte [ebp - 0x2d]
and bh, bl
test bh, 1
mov edi, eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x20], edi
jne 0x1000a7d7
mov eax, dword [ebp - 0x3c]
mov cx, word [eax]
shr cx, 1
movzx edx, cx
cmp cx, 0
mov dword [ebp - 0x48], edx
je 0x1000a9a4
xor eax, eax
mov dword [ebp - 0x4c], eax
jmp 0x1000a905
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x40]
mov dx, word [ecx + eax*2]
mov si, dx
add si, 0xffbf
mov di, dx
add di, 0x20
cmp si, 0x1a
mov dword [ebp - 0x50], eax
mov word [ebp - 0x52], dx
mov word [ebp - 0x54], di
jb 0x1000a939
mov ax, word [ebp - 0x52]
mov word [ebp - 0x54], ax
mov ax, word [ebp - 0x54]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x50]
cmp word [ecx + edx*2], ax
sete bl
cmp ax, 0
sete bh
mov al, bl
xor al, 1
or bh, al
test bh, 1
mov al, bl
mov byte [ebp - 0x55], bl
mov byte [ebp - 0x56], al
jne 0x1000a993
mov eax, dword [ebp - 0x50]
add eax, 1
mov ecx, dword [ebp - 0x48]
cmp eax, ecx
setb dl
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x5d], dl
mov al, byte [ebp - 0x5d]
test al, 1
mov ecx, dword [ebp - 0x5c]
mov dl, byte [ebp - 0x55]
mov dword [ebp - 0x4c], ecx
mov byte [ebp - 0x56], dl
jne 0x1000a905
jmp 0x1000a993
mov al, byte [ebp - 0x56]
test al, 1
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x24], ecx
jne 0x1000a7fb
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x28]
cmp ecx, edx
mov dword [ebp - 0x34], ecx
je 0x1000a87e
jmp 0x1000a8ab
mov dword [0x101f8958], 0x1c27
xor eax, eax
mov dword [ebp - 0x1c], eax
jmp 0x1000a9cd
mov eax, dword [ebp - 0x1c]
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret