Function at 0x1000eaec
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 edx, 0xffffffff
mov dword [0x10031444], 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 0x1000ed0c
jmp 0x1000eb4e
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov dword [0x10031444], ecx
mov dword [0x10031448], 0x671
mov dword [ebp - 0x18], eax
jmp 0x1000ed0c
mov dword [0x10031444], 0xc01
mov ecx, dword fs:[0x18]
mov dword [0x10031444], 0x1973
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0xc]
add eax, 0x14
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [0x10031448], 0x177a
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
mov dword [0x10031444], 0x1eb7
cmp edx, ecx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x18], eax
je 0x1000ed0c
mov eax, dword [ebp - 0x10]
cmp eax, 0
setne cl
mov edx, dword [ebp - 0x24]
mov byte [ebp - 0x25], cl
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
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 - 0x25]
and bh, bl
test bh, 1
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x3c], esi
jne 0x1000ebe5
jmp 0x1000ec09
mov dword [0x10031444], 0xdfa
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff8
mov dword [0x10031448], 0xa7
mov dword [ebp - 0x18], eax
jmp 0x1000ed0c
mov eax, dword [ebp - 0x34]
mov cx, word [eax]
shr cx, 1
movzx edx, cx
mov word [ebp - 0x3e], cx
mov dword [ebp - 0x44], edx
mov eax, 0xdfa
xor ecx, ecx
mov dx, word [ebp - 0x3e]
cmp dx, 0
mov esi, eax
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x50], eax
je 0x1000ecee
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x4c]
add eax, 0x264a
mov edx, ecx
add edx, 1
mov esi, dword [ebp - 0x38]
mov di, word [esi + ecx*2]
mov bx, di
add bx, 0xffbf
mov si, di
add si, 0x20
cmp bx, 0x1a
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x5c], edx
mov word [ebp - 0x5e], di
mov word [ebp - 0x60], si
jb 0x1000ec88
mov ax, word [ebp - 0x5e]
mov word [ebp - 0x60], ax
mov ax, word [ebp - 0x60]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x54]
cmp word [ecx + edx*2], ax
sete bl
cmp ax, 0
setne bh
mov al, bl
and al, bh
mov esi, dword [ebp - 0x5c]
mov edi, dword [ebp - 0x44]
cmp esi, edi
setb bh
and al, bh
test al, 1
mov eax, dword [ebp - 0x58]
mov byte [ebp - 0x61], bl
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], eax
jne 0x1000ec3e
mov al, byte [ebp - 0x61]
test al, 1
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x50], ecx
jne 0x1000ecd4
jmp 0x1000ecee
mov eax, dword [ebp - 0x58]
mov dword [0x10031444], eax
mov dword [0x10031448], 0x671
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x18], ecx
jmp 0x1000ed0c
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx]
mov esi, dword [ebp - 0x20]
cmp edx, esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], edx
je 0x1000eb31
jmp 0x1000ebb4
mov eax, dword [ebp - 0x18]
add esp, 0x58
pop esi
pop edi
pop ebx
pop ebp
ret