Function at 0x100122a3
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 eax, 0
sete bl
cmp ecx, 0
sete bh
mov esi, dword [0x10028398]
add esi, 0xffffdf1a
mov dword [0x10028394], esi
and bh, bl
test bh, 1
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
jne 0x10012500
jmp 0x10012362
xor eax, eax
mov dword [0x10028394], 0x1bc8
mov dword [ebp - 0x18], eax
jmp 0x10012500
mov eax, dword [ebp - 0x10]
cmp eax, 0
setne cl
mov edx, dword [ebp - 0x1c]
mov byte [ebp - 0x1d], cl
mov dword [ebp - 0x24], edx
jmp 0x100123ce
mov eax, 0x1639
mov ecx, dword [ebp - 0x28]
add ecx, 1
mov edx, dword [ebp - 0x2c]
cmp ecx, edx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], ecx
jb 0x10012441
mov eax, dword [ebp - 0x30]
mov dword [0x10028398], 0xdaf
mov cl, byte [ebp - 0x35]
test cl, 1
mov edx, eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], edx
jne 0x100124b2
jmp 0x100124d0
mov dword [0x10028394], 0x2004
mov dword [0x10028398], 0x1aec
mov ecx, dword fs:[0x18]
mov eax, dword [0x10028398]
add eax, 0xfffff28d
mov dword [0x10028394], eax
mov dword [0x10028398], 0xe5f
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0xc]
mov ecx, eax
add ecx, 0x14
mov dword [0x10028398], 0x242f
mov eax, dword [eax + 0x14]
mov dword [0x10028394], 0xe91
cmp eax, ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x1c], eax
je 0x100122f0
jmp 0x10012304
mov eax, dword [ebp - 0x24]
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 - 0x1d]
and bh, bl
test bh, 1
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x54], esi
jne 0x10012427
mov eax, 0x15ad
xor ecx, ecx
mov edx, dword [ebp - 0x4c]
mov si, word [edx]
shr si, 1
movzx edi, si
cmp si, 0
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x40], eax
je 0x100124d0
jmp 0x10012441
mov dword [0x10028394], 0x15ad
mov eax, dword [ebp - 0x48]
add eax, 0xfffffff8
mov dword [ebp - 0x18], eax
jmp 0x10012500
mov eax, dword [ebp - 0x34]
mov ecx, 0x178f
mov edx, dword [ebp - 0x50]
mov si, word [edx + eax*2]
mov di, si
add di, 0xffbf
mov bx, si
add bx, 0x20
cmp di, 0x1a
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x58], ecx
mov word [ebp - 0x5a], si
mov word [ebp - 0x5c], bx
jb 0x1001247d
mov ax, word [ebp - 0x5a]
mov word [ebp - 0x5c], ax
mov ax, word [ebp - 0x5c]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
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 - 0x58]
mov byte [ebp - 0x35], bl
mov dword [ebp - 0x30], esi
jne 0x1001233c
jmp 0x1001231d
mov eax, dword [ebp - 0x3c]
add eax, 0xffffe24a
mov ecx, dword [ebp - 0x3c]
mov dword [0x10028394], ecx
mov dword [0x10028398], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x18], eax
jmp 0x10012500
mov eax, dword [ebp - 0x40]
mov dword [0x10028398], 0x1e05
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx]
mov esi, dword [ebp - 0x44]
cmp edx, esi
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x24], edx
jne 0x100123ce
mov eax, dword [ebp - 0x60]
mov dword [0x10028394], eax
jmp 0x100122f0
mov eax, dword [ebp - 0x18]
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret