Function at 0x10012299
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 ecx, 0
sete bl
cmp eax, 0
sete bh
mov esi, dword [0x1002806c]
add esi, 0xffffdf1a
mov dword [0x10028068], esi
and bl, bh
test bl, 1
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
jne 0x100124f9
jmp 0x100123c9
mov eax, dword [ebp - 0x1c]
mov ecx, 0x178f
mov edx, dword [ebp - 0x20]
mov si, word [edx + eax*2]
mov di, si
add di, 0xffbf
mov bx, si
add bx, 0x20
cmp di, 0x1a
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov word [ebp - 0x2a], si
mov word [ebp - 0x2c], bx
jb 0x10012325
mov ax, word [ebp - 0x2a]
mov word [ebp - 0x2c], ax
mov ax, word [ebp - 0x2c]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
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 esi, dword [ebp - 0x28]
mov byte [ebp - 0x2d], bl
mov dword [ebp - 0x34], esi
jne 0x100124b0
jmp 0x10012491
mov eax, dword [ebp - 0x10]
cmp eax, 0
setne cl
mov edx, dword [ebp - 0x38]
mov byte [ebp - 0x39], cl
mov dword [ebp - 0x40], edx
jmp 0x10012431
mov eax, dword [ebp - 0x44]
mov dword [0x1002806c], 0x1e05
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx]
mov esi, dword [ebp - 0x4c]
cmp edx, esi
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x40], edx
je 0x100124ec
jmp 0x10012431
mov eax, dword [ebp - 0x48]
add eax, 0xfffffff8
mov dword [0x10028068], 0x15ad
mov dword [ebp - 0x18], eax
jmp 0x100124f9
xor eax, eax
mov dword [0x10028068], 0x1bc8
mov dword [ebp - 0x18], eax
jmp 0x100124f9
mov dword [0x10028068], 0x2004
mov dword [0x1002806c], 0x1aec
mov ecx, dword fs:[0x18]
mov eax, dword [0x1002806c]
add eax, 0xfffff28d
mov dword [0x10028068], eax
mov dword [0x1002806c], 0xe5f
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0xc]
mov ecx, eax
add ecx, 0x14
mov dword [0x1002806c], 0x242f
mov eax, dword [eax + 0x14]
mov dword [0x10028068], 0xe91
cmp eax, ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x38], eax
je 0x100123b5
jmp 0x1001235a
mov eax, dword [ebp - 0x40]
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 - 0x39]
and bh, bl
test bh, 1
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x58], esi
jne 0x1001239b
mov eax, 0x15ad
xor ecx, ecx
mov edx, dword [ebp - 0x54]
mov si, word [edx]
shr si, 1
movzx edi, si
cmp si, 0
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x44], eax
je 0x10012373
jmp 0x100122e9
mov eax, 0x1639
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov edx, dword [ebp - 0x5c]
cmp ecx, edx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x34], eax
jb 0x100122e9
mov eax, dword [ebp - 0x34]
mov dword [0x1002806c], 0xdaf
mov cl, byte [ebp - 0x2d]
test cl, 1
mov edx, eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x44], edx
jne 0x100124d2
jmp 0x10012373
mov eax, dword [ebp - 0x60]
mov dword [0x10028068], eax
add eax, 0xffffe24a
mov dword [0x1002806c], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x18], eax
jmp 0x100124f9
mov eax, dword [ebp - 0x50]
mov dword [0x10028068], eax
jmp 0x100123b5
mov eax, dword [ebp - 0x18]
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret