Function at 0x1000dc83
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x50
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, 0xffffffff
mov esi, dword [0x10014cc0]
add esi, 0xffffe66c
mov dword [0x10014cc4], esi
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 0x1000dd8f
mov dword [0x10014cc0], 0x1c04
mov ecx, dword fs:[0x18]
xor eax, eax
mov edx, dword [0x10014cc0]
add edx, 0xfffffea8
mov dword [0x10014cc4], edx
mov ecx, dword [ecx + 0x30]
mov dword [0x10014cc0], 0x4d7
mov ecx, dword [ecx + 0xc]
mov edx, ecx
add edx, 0x14
mov dword [0x10014cc4], 0xffffe9ae
mov ecx, dword [ecx + 0x14]
cmp ecx, edx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x18], eax
je 0x1000dd8f
jmp 0x1000ddcc
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
mov dx, word [eax + 0x24]
mov esi, dword [eax + 0x28]
mov dword [0x10014cc0], 0x5d2
mov edi, dword [eax + 0x10]
mov ebx, dword [ebp - 0x10]
cmp edi, ebx
sete bl
mov bh, byte [ebp - 0x29]
and bh, bl
test bh, 1
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], ecx
mov word [ebp - 0x36], dx
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x40], edi
jne 0x1000ddee
jmp 0x1000dd9a
mov eax, 0x3fa0
mov dword [0x10014cc0], 0x3fa0
mov cl, byte [ebp - 0x41]
test cl, 1
mov dword [ebp - 0x48], eax
jne 0x1000de80
jmp 0x1000de95
mov eax, dword [ebp - 0x18]
add esp, 0x50
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0x34]
add ecx, 0x257d
mov dword [0x10014cc0], ecx
mov dx, word [ebp - 0x36]
shr dx, 1
movzx esi, dx
cmp dx, 0
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x48], ecx
je 0x1000de95
jmp 0x1000de01
mov eax, 0xffffe9ae
mov ecx, dword [ebp - 0x10]
cmp ecx, 0
setne dl
mov esi, dword [ebp - 0x1c]
mov byte [ebp - 0x29], dl
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], esi
jmp 0x1000dd2a
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff8
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x18], eax
jmp 0x1000dd8f
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x3c]
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 0x1000de35
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
cmp ax, 0
sete bh
mov al, bl
xor al, 1
or bh, al
test bh, 1
mov byte [ebp - 0x41], bl
jne 0x1000dd6c
mov dword [0x10014cc4], 0x15b2
mov eax, dword [ebp - 0x58]
add eax, 1
mov ecx, dword [ebp - 0x4c]
cmp eax, ecx
mov dword [ebp - 0x50], eax
jb 0x1000de01
jmp 0x1000dd6c
mov dword [0x10014cc4], 0xa83
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x18], eax
jmp 0x1000dd8f
mov eax, dword [ebp - 0x48]
xor ecx, ecx
add eax, 0xfffff932
mov dword [0x10014cc4], eax
mov edx, dword [ebp - 0x30]
mov esi, dword [edx]
mov edi, dword [ebp - 0x20]
cmp esi, edi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], ecx
je 0x1000dd8f
jmp 0x1000dd2a