Function at 0x101d5e46
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 eax, 0
sete bl
cmp ecx, 0
sete bh
and bh, bl
test bh, 1
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
jne 0x101d604d
jmp 0x101d5ea0
mov eax, 0x1c32
mov ecx, dword [ebp - 0x10]
cmp ecx, 0
setne dl
mov esi, dword [ebp - 0x1c]
mov byte [ebp - 0x1d], dl
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], esi
jmp 0x101d5f0a
mov dword [0x10284d44], 0xfffff235
mov dword [0x10284d48], 0x191f
mov ecx, dword fs:[0x18]
xor eax, eax
mov edx, dword [0x10284d44]
add edx, 0xffffe4cd
mov dword [0x10284d44], edx
mov ecx, dword [ecx + 0x30]
mov ecx, dword [ecx + 0xc]
mov edx, ecx
add edx, 0x14
mov dword [0x10284d48], 0x702
mov ecx, dword [ecx + 0x14]
mov dword [0x10284d44], 0x1c32
cmp ecx, edx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x18], eax
je 0x101d604d
jmp 0x101d5e81
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
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 - 0x30], eax
mov eax, dword [ebp - 0x10]
cmp ebx, eax
sete al
mov ah, byte [ebp - 0x1d]
and ah, al
test ah, 1
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x44], edi
jne 0x101d5f7d
mov eax, dword [ebp - 0x3c]
mov cx, word [eax]
shr cx, 1
movzx edx, cx
cmp cx, 0
mov esi, dword [ebp - 0x38]
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x4c], esi
je 0x101d6025
mov eax, dword [ebp - 0x38]
add eax, 0xffffd8fa
mov dword [ebp - 0x50], eax
xor eax, eax
mov dword [ebp - 0x54], eax
jmp 0x101d5f96
mov eax, dword [ebp - 0x44]
mov dword [0x10284d48], eax
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff8
mov dword [ebp - 0x18], ecx
jmp 0x101d604d
mov eax, dword [ebp - 0x54]
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 - 0x58], eax
mov word [ebp - 0x5a], dx
mov word [ebp - 0x5c], di
jb 0x101d5fca
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 - 0x48]
cmp edx, esi
setb bh
and al, bh
test al, 1
mov byte [ebp - 0x5d], bl
mov dword [ebp - 0x54], edx
jne 0x101d5f96
mov eax, dword [ebp - 0x50]
mov dword [0x10284d44], eax
mov cl, byte [ebp - 0x5d]
test cl, 1
mov dword [ebp - 0x4c], eax
jne 0x101d6015
jmp 0x101d6025
mov eax, dword [ebp - 0x44]
mov dword [0x10284d48], eax
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x18], ecx
jmp 0x101d604d
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx]
mov esi, dword [ebp - 0x2c]
cmp edx, esi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], edx
jne 0x101d5f0a
mov eax, dword [ebp - 0x44]
mov dword [0x10284d48], eax
xor eax, eax
mov dword [ebp - 0x18], eax
jmp 0x101d604d
mov eax, dword [ebp - 0x18]
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret