Function at 0x10299f3a
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x5c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
cmp ecx, 0
sete dl
cmp eax, 0
sete dh
mov esi, dword [0x102bd418]
add esi, 0x975
mov dword [0x102bd414], esi
and dl, dh
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov byte [ebp - 0x15], dl
mov eax, 0xffffffff
mov cl, byte [ebp - 0x15]
test cl, 1
mov dword [ebp - 0x1c], eax
jne 0x1029a196
jmp 0x10299f8d
mov dword [0x102bd414], 0xab3
mov dword [0x102bd418], 0x104a
mov ecx, dword fs:[0x18]
mov dword [0x102bd414], 0x1cc0
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0xc]
mov ecx, eax
add ecx, 0x14
mov dword [0x102bd414], 0xffffffd2
mov eax, dword [eax + 0x14]
cmp eax, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], eax
je 0x1029a185
jmp 0x1029a060
mov dword [0x102bd414], 0x4e4
xor eax, eax
mov cx, word [ebp - 0x26]
shr cx, 1
movzx edx, cx
cmp cx, 0
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x30], eax
je 0x1029a14d
jmp 0x1029a0dc
mov eax, 0x1367
mov ecx, dword [ebp - 0x34]
add ecx, 1
mov edx, dword [ebp - 0x2c]
cmp ecx, edx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], ecx
jb 0x1029a0dc
mov eax, dword [ebp - 0x38]
mov dword [0x102bd414], eax
mov dword [0x102bd418], 0x1a43
mov cl, byte [ebp - 0x39]
test cl, 1
jne 0x1029a04b
jmp 0x1029a14d
mov dword [0x102bd414], 0xffffff5b
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x1c], eax
jmp 0x1029a196
mov eax, dword [0x102bd418]
mov ecx, dword [ebp - 0x10]
cmp ecx, 0
setne dl
add eax, 0xa85
mov esi, dword [ebp - 0x24]
mov byte [ebp - 0x41], dl
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], esi
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x48]
mov dword [0x102bd418], ecx
mov dx, word [eax + 0x24]
mov ecx, dword [eax + 0x28]
mov dword [0x102bd414], 0x128b
mov esi, dword [eax + 0x10]
mov edi, dword [ebp - 0x10]
cmp esi, edi
sete bl
mov bh, byte [ebp - 0x41]
and bh, bl
test bh, 1
mov dword [ebp - 0x50], eax
mov word [ebp - 0x26], dx
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x40], esi
jne 0x1029a0c6
jmp 0x10299fe0
mov eax, dword [ebp - 0x50]
add eax, 0xfffffff8
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x1c], eax
jmp 0x1029a196
mov eax, dword [ebp - 0x30]
mov ecx, 0xb88
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 - 0x34], eax
mov dword [ebp - 0x5c], ecx
mov word [ebp - 0x5e], si
mov word [ebp - 0x60], bx
jb 0x1029a118
mov ax, word [ebp - 0x5e]
mov word [ebp - 0x60], ax
mov ax, word [ebp - 0x60]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x34]
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 - 0x39], bl
mov dword [ebp - 0x38], esi
jne 0x1029a02c
jmp 0x1029a00d
mov dword [0x102bd418], 0x1c89
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x20]
cmp ecx, edx
sete bl
mov dword [ebp - 0x64], ecx
mov byte [ebp - 0x65], bl
mov eax, 0x270e
mov cl, byte [ebp - 0x65]
test cl, 1
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], edx
jne 0x1029a185
jmp 0x1029a082
mov dword [0x102bd414], 0x2307
xor eax, eax
mov dword [ebp - 0x1c], eax
jmp 0x1029a196
mov eax, dword [ebp - 0x1c]
add esp, 0x5c
pop esi
pop edi
pop ebx
pop ebp
ret