Function at 0x1022e5e4
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 dword [0x10261c14], 0x122e
and bl, bh
test bl, 1
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
jne 0x1022e80d
jmp 0x1022e728
mov eax, 0xdfa
xor ecx, ecx
mov edx, dword [ebp - 0x1c]
mov si, word [edx]
shr si, 1
movzx edi, si
cmp si, 0
mov ebx, eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], eax
je 0x1022e7f2
jmp 0x1022e69c
mov dword [0x10261c14], 0xdfa
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff8
mov dword [0x10261c18], 0xa7
mov dword [ebp - 0x18], eax
jmp 0x1022e80d
xor eax, eax
mov ecx, dword [ebp - 0x34]
mov dword [0x10261c14], ecx
mov dword [0x10261c18], 0x671
mov dword [ebp - 0x18], eax
jmp 0x1022e80d
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x28]
mov edx, ecx
add edx, 1
add eax, 0x264a
mov esi, dword [ebp - 0x38]
mov di, word [esi + ecx*2]
mov bx, di
add bx, 0xffbf
mov si, di
add si, 0x20
cmp bx, 0x1a
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], eax
mov word [ebp - 0x46], di
mov word [ebp - 0x48], si
jb 0x1022e6e6
mov ax, word [ebp - 0x46]
mov word [ebp - 0x48], ax
mov ax, word [ebp - 0x48]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x40]
cmp word [ecx + edx*2], ax
sete bl
cmp ax, 0
setne bh
mov al, bl
and al, bh
mov esi, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x24]
cmp esi, edi
setb bh
and al, bh
test al, 1
mov eax, dword [ebp - 0x44]
mov byte [ebp - 0x49], bl
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], eax
jne 0x1022e69c
jmp 0x1022e7c9
mov dword [0x10261c14], 0xc01
mov ecx, dword fs:[0x18]
xor eax, eax
mov dword [0x10261c14], 0x1973
mov ecx, dword [ecx + 0x30]
mov ecx, dword [ecx + 0xc]
mov edx, ecx
add edx, 0x14
mov dword [0x10261c18], 0x177a
mov ecx, dword [ecx + 0x14]
mov dword [0x10261c14], 0x1eb7
cmp ecx, edx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x18], eax
je 0x1022e80d
mov eax, dword [ebp - 0x10]
cmp eax, 0
setne cl
mov byte [ebp - 0x55], cl
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x5c], eax
jmp 0x1022e791
mov eax, dword [ebp - 0x5c]
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 - 0x55]
and bh, bl
test bh, 1
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x60], esi
jne 0x1022e65b
jmp 0x1022e62c
mov al, byte [ebp - 0x49]
test al, 1
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x2c], ecx
jne 0x1022e7d8
jmp 0x1022e7f2
mov eax, dword [ebp - 0x44]
mov dword [0x10261c14], eax
mov dword [0x10261c18], 0x671
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x18], ecx
jmp 0x1022e80d
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx]
mov esi, dword [ebp - 0x54]
cmp edx, esi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x5c], edx
je 0x1022e67f
jmp 0x1022e791
mov eax, dword [ebp - 0x18]
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret