Function at 0x10009990
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x58
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [0x10195218], 0x1562
mov dword [0x10195214], 0x208a
cmp ecx, 0
sete dl
cmp eax, 0
sete dh
and dl, dh
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov byte [ebp - 0x15], dl
mov eax, 0xffffffff
mov cl, byte [ebp - 0x15]
test cl, 1
mov dword [ebp - 0x1c], eax
jne 0x10009bc0
jmp 0x10009ac6
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov dx, word [ecx + eax*2]
mov si, dx
add si, 0xffbf
mov di, dx
add di, 0x20
cmp si, 0x1a
mov dword [ebp - 0x28], eax
mov word [ebp - 0x2a], dx
mov word [ebp - 0x2c], di
jb 0x10009a1c
mov ax, word [ebp - 0x2a]
mov word [ebp - 0x2c], ax
mov ax, word [ebp - 0x2c]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
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 - 0x2d], bl
mov byte [ebp - 0x2e], al
jne 0x10009a89
jmp 0x10009a5d
mov dword [0x10195214], 0x1701
xor eax, eax
mov dword [ebp - 0x1c], eax
jmp 0x10009bc0
mov dword [0x10195218], 0x1d78
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
cmp eax, ecx
mov dl, byte [ebp - 0x2d]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x2e], dl
jb 0x100099e8
mov al, byte [ebp - 0x2e]
test al, 1
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x40], ecx
jne 0x10009b93
jmp 0x10009ba5
xor eax, eax
mov dword [ebp - 0x20], eax
jmp 0x100099e8
mov eax, dword [ebp - 0x44]
mov cx, word [eax]
shr cx, 1
movzx edx, cx
cmp cx, 0
mov dword [ebp - 0x38], edx
je 0x10009ba5
jmp 0x10009a9f
mov dword [0x10195214], 0x26b3
mov dword [0x10195218], 0x16b1
mov ecx, dword fs:[0x18]
mov eax, dword [0x10195214]
add eax, 0x1382
mov dword [0x10195218], eax
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x48], eax
xor eax, eax
mov ecx, dword [ebp - 0x48]
add ecx, 0x14
mov dword [0x10195218], 0x1b54
mov edx, dword [ebp - 0x48]
mov esi, dword [edx + 0x14]
mov dword [0x10195214], 0x1d45
cmp esi, ecx
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x1c], eax
je 0x10009bc0
mov eax, dword [ebp - 0x10]
cmp eax, 0
setne cl
mov edx, dword [ebp - 0x4c]
mov byte [ebp - 0x51], cl
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x58]
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 - 0x51]
and bh, bl
test bh, 1
mov edi, eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x60], edi
jne 0x10009b7c
jmp 0x10009aa9
mov eax, dword [ebp - 0x60]
mov dword [0x10195214], 0x25d1
add eax, 0xfffffff8
mov dword [ebp - 0x1c], eax
jmp 0x10009bc0
mov eax, dword [ebp - 0x40]
mov dword [0x10195214], 0x25bf
mov dword [ebp - 0x1c], eax
jmp 0x10009bc0
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax]
mov dword [ebp - 0x64], ecx
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x50]
cmp eax, ecx
mov dword [ebp - 0x58], eax
je 0x10009a49
jmp 0x10009b43
mov eax, dword [ebp - 0x1c]
add esp, 0x58
pop esi
pop edi
pop ebx
pop ebp
ret