Function at 0x101bd90a
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
mov dword [0x101db514], 0x122e
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 0x101bdb36
jmp 0x101bda42
mov al, byte [ebp - 0x19]
test al, 1
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x24], ecx
jne 0x101bdafe
jmp 0x101bdb18
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
mov edx, ecx
add edx, 1
add eax, 0x264a
mov esi, dword [ebp - 0x30]
mov di, word [esi + ecx*2]
mov bx, di
add bx, 0xffbf
mov si, di
add si, 0x20
cmp bx, 0x1a
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x20], eax
mov word [ebp - 0x3a], di
mov word [ebp - 0x3c], si
jb 0x101bd9b2
mov ax, word [ebp - 0x3a]
mov word [ebp - 0x3c], ax
mov ax, word [ebp - 0x3c]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x38]
cmp word [ecx + edx*2], ax
sete bl
cmp ax, 0
setne bh
mov al, bl
and al, bh
mov esi, dword [ebp - 0x34]
mov edi, dword [ebp - 0x40]
cmp esi, edi
setb bh
and al, bh
test al, 1
mov eax, dword [ebp - 0x20]
mov byte [ebp - 0x19], bl
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], eax
jne 0x101bd968
jmp 0x101bd952
mov eax, 0xdfa
xor ecx, ecx
mov edx, dword [ebp - 0x44]
mov si, word [edx]
shr si, 1
movzx edi, si
cmp si, 0
mov ebx, eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x24], eax
je 0x101bdb18
jmp 0x101bd968
mov eax, dword [ebp - 0x48]
mov dword [0x101db514], eax
mov dword [0x101db518], 0x671
xor eax, eax
mov dword [ebp - 0x18], eax
jmp 0x101bdb36
mov dword [0x101db514], 0xc01
mov ecx, dword fs:[0x18]
xor eax, eax
mov dword [0x101db514], 0x1973
mov ecx, dword [ecx + 0x30]
mov ecx, dword [ecx + 0xc]
mov edx, ecx
add edx, 0x14
mov dword [0x101db518], 0x177a
mov ecx, dword [ecx + 0x14]
mov dword [0x101db514], 0x1eb7
cmp ecx, edx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x18], eax
je 0x101bdb36
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 dword [ebp - 0x5c], eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x60], esi
jne 0x101bdadd
jmp 0x101bd9f4
mov eax, dword [ebp - 0x5c]
add eax, 0xfffffff8
mov dword [0x101db514], 0xdfa
mov dword [0x101db518], 0xa7
mov dword [ebp - 0x18], eax
jmp 0x101bdb36
mov eax, dword [ebp - 0x20]
mov dword [0x101db514], eax
mov dword [0x101db518], 0x671
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x18], ecx
jmp 0x101bdb36
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx]
mov esi, dword [ebp - 0x50]
cmp edx, esi
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x58], edx
je 0x101bda26
jmp 0x101bdaa9
mov eax, dword [ebp - 0x18]
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret