Function at 0x10012413
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
mov esi, dword [0x10028154]
cmp eax, 0
sete bh
add esi, 0xffffdf1a
mov dword [0x10028150], esi
and bl, bh
test bl, 1
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
jne 0x10012673
jmp 0x1001251c
mov eax, 0x15ad
xor ecx, ecx
mov edx, dword [ebp - 0x1c]
mov si, word [edx]
shr si, 1
movzx edi, si
cmp si, 0
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
je 0x100124f7
jmp 0x100125d6
mov eax, dword [ebp - 0x2c]
add eax, 0xffffe24a
mov ecx, dword [ebp - 0x2c]
mov dword [0x10028150], ecx
mov dword [0x10028154], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x18], eax
jmp 0x10012673
xor eax, eax
mov dword [0x10028150], 0x1bc8
mov dword [ebp - 0x18], eax
jmp 0x10012673
mov eax, dword [ebp - 0x10]
cmp eax, 0
setne cl
mov edx, dword [ebp - 0x34]
mov byte [ebp - 0x35], cl
mov dword [ebp - 0x3c], edx
jmp 0x10012588
mov eax, dword [ebp - 0x40]
mov dword [0x10028154], 0xdaf
mov cl, byte [ebp - 0x41]
test cl, 1
mov edx, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], edx
jne 0x1001248c
mov eax, dword [ebp - 0x24]
mov dword [0x10028154], 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 - 0x3c], edx
je 0x10012666
jmp 0x10012588
mov dword [0x10028150], 0x2004
mov dword [0x10028154], 0x1aec
mov ecx, dword fs:[0x18]
mov eax, dword [0x10028154]
add eax, 0xfffff28d
mov dword [0x10028150], eax
mov dword [0x10028154], 0xe5f
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0xc]
mov ecx, eax
add ecx, 0x14
mov dword [0x10028154], 0x242f
mov eax, dword [eax + 0x14]
mov dword [0x10028150], 0xe91
cmp eax, ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x34], eax
je 0x100124ad
jmp 0x100124c1
mov eax, dword [ebp - 0x3c]
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 - 0x35]
and bh, bl
test bh, 1
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x30], esi
jne 0x100125bc
jmp 0x10012463
mov dword [0x10028150], 0x15ad
mov eax, dword [ebp - 0x48]
add eax, 0xfffffff8
mov dword [ebp - 0x18], eax
jmp 0x10012673
mov eax, dword [ebp - 0x28]
mov ecx, 0x178f
mov edx, dword [ebp - 0x54]
mov si, word [edx + eax*2]
mov di, si
add di, 0xffbf
mov bx, si
add bx, 0x20
cmp di, 0x1a
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x5c], ecx
mov word [ebp - 0x5e], si
mov word [ebp - 0x60], bx
jb 0x10012612
mov ax, word [ebp - 0x5e]
mov word [ebp - 0x60], ax
mov ax, word [ebp - 0x60]
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 esi, dword [ebp - 0x5c]
mov byte [ebp - 0x41], bl
mov dword [ebp - 0x40], esi
jne 0x100124da
mov eax, 0x1639
mov ecx, dword [ebp - 0x58]
add ecx, 1
mov edx, dword [ebp - 0x20]
cmp ecx, edx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x28], ecx
jb 0x100125d6
jmp 0x100124da
mov eax, dword [ebp - 0x50]
mov dword [0x10028150], eax
jmp 0x100124ad
mov eax, dword [ebp - 0x18]
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret