Function at 0x1000e101
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x60
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [0x10016d3c]
add edx, 0xffffe66c
mov dword [0x10016d40], edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov eax, 0xffffffff
mov ecx, dword [ebp - 0x14]
cmp ecx, 0
sete dl
mov esi, dword [ebp - 0x10]
cmp esi, 0
sete dh
and dl, dh
test dl, 1
mov dword [ebp - 0x18], eax
jne 0x1000e34e
jmp 0x1000e1b7
mov ax, word [ebp - 0x1a]
shr ax, 1
mov ecx, dword [ebp - 0x20]
add ecx, 0x257d
mov dword [0x10016d3c], ecx
mov word [ebp - 0x22], ax
mov dword [ebp - 0x28], ecx
xor eax, eax
mov cx, word [ebp - 0x22]
movzx edx, cx
cmp cx, 0
mov esi, dword [ebp - 0x28]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], esi
je 0x1000e326
jmp 0x1000e26b
mov eax, 0xffffe9ae
mov ecx, dword [ebp - 0x10]
cmp ecx, 0
setne dl
mov esi, dword [ebp - 0x38]
mov byte [ebp - 0x39], dl
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], esi
jmp 0x1000e214
mov dword [0x10016d3c], 0x1c04
mov ecx, dword fs:[0x18]
xor eax, eax
mov edx, dword [0x10016d3c]
add edx, 0xfffffea8
mov dword [0x10016d40], edx
mov ecx, dword [ecx + 0x30]
mov dword [0x10016d3c], 0x4d7
mov ecx, dword [ecx + 0xc]
mov edx, ecx
add edx, 0x14
mov dword [0x10016d40], 0xffffe9ae
mov ecx, dword [ecx + 0x14]
cmp ecx, edx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x18], eax
je 0x1000e34e
jmp 0x1000e198
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x40]
mov dx, word [eax + 0x24]
mov esi, dword [eax + 0x28]
mov dword [0x10016d3c], 0x5d2
mov edi, dword [eax + 0x10]
mov ebx, dword [ebp - 0x10]
cmp edi, ebx
sete bl
mov bh, byte [ebp - 0x39]
and bh, bl
test bh, 1
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x20], ecx
mov word [ebp - 0x1a], dx
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], edi
jne 0x1000e255
jmp 0x1000e155
mov eax, dword [ebp - 0x4c]
add eax, 0xfffffff8
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x18], eax
jmp 0x1000e34e
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x50]
mov dx, word [ecx + eax*2]
mov si, dx
add si, 0xffbf
mov di, dx
add di, 0x20
cmp si, 0x1a
mov dword [ebp - 0x5c], eax
mov word [ebp - 0x5e], dx
mov word [ebp - 0x60], di
jb 0x1000e29f
mov ax, word [ebp - 0x5e]
mov word [ebp - 0x60], ax
mov ax, word [ebp - 0x60]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x5c]
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 byte [ebp - 0x61], bl
jne 0x1000e2f8
mov dword [0x10016d40], 0x15b2
mov eax, dword [ebp - 0x5c]
add eax, 1
mov ecx, dword [ebp - 0x2c]
cmp eax, ecx
setb dl
mov dword [ebp - 0x68], eax
mov byte [ebp - 0x69], dl
mov al, byte [ebp - 0x69]
test al, 1
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0x30], ecx
jne 0x1000e26b
jmp 0x1000e2f8
mov eax, 0x3fa0
mov dword [0x10016d3c], 0x3fa0
mov cl, byte [ebp - 0x61]
test cl, 1
mov dword [ebp - 0x34], eax
jne 0x1000e314
jmp 0x1000e326
mov dword [0x10016d40], 0xa83
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x18], eax
jmp 0x1000e34e
mov eax, dword [ebp - 0x34]
xor ecx, ecx
add eax, 0xfffff932
mov dword [0x10016d40], eax
mov edx, dword [ebp - 0x4c]
mov esi, dword [edx]
mov edi, dword [ebp - 0x48]
cmp esi, edi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x18], ecx
jne 0x1000e214
mov eax, dword [ebp - 0x18]
add esp, 0x60
pop esi
pop edi
pop ebx
pop ebp
ret