Function at 0x10012169
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, 0xffffffff
cmp ecx, 0
sete bl
mov dword [0x100282b0], 0xb44
cmp eax, 0
sete bh
mov esi, dword [0x100282ac]
add esi, 0x24bc
mov dword [0x100282ac], esi
and bl, bh
test bl, 1
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
jne 0x100123d0
jmp 0x100121f8
xor eax, eax
mov dword [0x100282ac], 0x2069
mov dword [ebp - 0x18], eax
jmp 0x100123d0
mov dword [0x100282ac], 0x1b37
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff8
mov dword [0x100282b0], 0x17eb
mov dword [ebp - 0x18], eax
jmp 0x100123d0
mov dword [0x100282b0], 0x2606
mov dword [0x100282ac], 0xffffec05
mov ecx, dword fs:[0x18]
mov dword [0x100282ac], 0x1d33
mov dword [0x100282b0], 0x181d
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0xc]
mov ecx, eax
add ecx, 0x14
mov dword [0x100282b0], 0x3950
mov eax, dword [eax + 0x14]
mov dword [0x100282ac], 0x1392
cmp eax, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], eax
je 0x100121c0
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 - 0x1c], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x38], esi
jne 0x100121d4
mov eax, 0xfffff279
mov ecx, 0x17eb
xor edx, edx
mov esi, dword [ebp - 0x30]
mov di, word [esi]
shr di, 1
movzx ebx, di
cmp di, 0
mov esi, ecx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x4c], ecx
je 0x1001239b
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x3c]
mov edx, eax
add edx, 0x25ee
mov esi, dword [ebp - 0x34]
mov di, word [esi + ecx*2]
mov bx, di
add bx, 0xffbf
mov si, di
add si, 0x20
cmp bx, 0x1a
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x58], edx
mov word [ebp - 0x5a], di
mov word [ebp - 0x5c], si
jb 0x1001231b
mov ax, word [ebp - 0x5a]
mov word [ebp - 0x5c], ax
mov ax, word [ebp - 0x5c]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x54]
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 - 0x50]
mov byte [ebp - 0x5d], bl
mov dword [ebp - 0x64], esi
jne 0x1001236b
mov eax, 0x12f9
mov ecx, dword [ebp - 0x54]
add ecx, 1
mov edx, dword [ebp - 0x44]
cmp ecx, edx
mov esi, eax
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x64], eax
jb 0x100122d6
mov eax, dword [ebp - 0x64]
mov cl, byte [ebp - 0x5d]
test cl, 1
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x4c], eax
jne 0x10012381
jmp 0x1001239b
mov eax, dword [ebp - 0x58]
mov dword [0x100282ac], eax
mov dword [0x100282b0], 0x399
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x18], ecx
jmp 0x100123d0
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x1c]
mov esi, dword [edx]
mov edi, dword [ebp - 0x20]
cmp esi, edi
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x2c], esi
jne 0x1001226e
mov eax, dword [ebp - 0x6c]
mov dword [0x100282ac], eax
mov ecx, dword [ebp - 0x68]
mov dword [0x100282b0], ecx
jmp 0x100121c0
mov eax, dword [ebp - 0x18]
add esp, 0x60
pop esi
pop edi
pop ebx
pop ebp
ret