Function at 0x101977de
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]
mov edx, 0xffffffff
cmp ecx, 0
sete bl
mov esi, dword [0x101b12d4]
cmp eax, 0
sete bh
add esi, 0xffffe12b
mov dword [0x101b12d8], esi
and bl, bh
test bl, 1
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
jne 0x10197a40
jmp 0x101978c8
mov eax, dword [ebp - 0x1c]
add eax, 0x130
mov dword [0x101b12d4], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
jmp 0x10197a40
mov eax, dword [ebp - 0x24]
mov dword [0x101b12d4], 0x247b
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx]
mov esi, dword [ebp - 0x2c]
cmp edx, esi
mov edi, eax
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x38], eax
je 0x10197a2e
jmp 0x1019794f
mov eax, dword [ebp - 0x3c]
mov dword [0x101b12d4], 0x1dce
mov dword [0x101b12d8], eax
mov cl, byte [ebp - 0x3d]
test cl, 1
mov edx, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], edx
jne 0x1019782e
jmp 0x10197846
mov eax, 0x1825
mov ecx, dword [ebp - 0x44]
add ecx, 1
mov edx, dword [ebp - 0x48]
cmp ecx, edx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], ecx
jb 0x101979bd
jmp 0x10197873
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff8
mov dword [ebp - 0x18], eax
jmp 0x10197a40
mov dword [0x101b12d8], 0x1957
mov dword [0x101b12d4], 0x25c8
mov ecx, dword fs:[0x18]
mov eax, 0xecb
mov dword [0x101b12d4], 2
mov dword [0x101b12d8], 0x18e9
mov ecx, dword [ecx + 0x30]
mov dword [0x101b12d4], 0x2d67
mov ecx, dword [ecx + 0xc]
mov edx, ecx
add edx, 0x14
mov dword [0x101b12d8], 0xecb
mov ecx, dword [ecx + 0x14]
cmp ecx, edx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x38], eax
je 0x10197a2e
mov eax, 0xecb
mov ecx, dword [ebp - 0x10]
cmp ecx, 0
setne dl
mov esi, dword [ebp - 0x50]
mov dword [ebp - 0x34], esi
mov byte [ebp - 0x51], dl
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
mov dx, word [ecx + 0x24]
mov esi, dword [ecx + 0x28]
mov dword [0x101b12d4], 0x21e
mov edi, dword [ecx + 0x10]
mov ebx, dword [ebp - 0x10]
cmp edi, ebx
sete bl
mov bh, byte [ebp - 0x51]
and bh, bl
test bh, 1
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x28], ecx
mov word [ebp - 0x5a], dx
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x20], edi
jne 0x101978b8
xor eax, eax
mov dword [0x101b12d4], 0x2728
mov cx, word [ebp - 0x5a]
shr cx, 1
movzx edx, cx
cmp cx, 0
mov esi, dword [ebp - 0x58]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x4c], eax
je 0x10197846
mov eax, dword [ebp - 0x4c]
mov ecx, 0x1eba
mov edx, dword [ebp - 0x60]
mov si, word [edx + eax*2]
mov di, si
add di, 0xffbf
mov bx, si
add bx, 0x20
cmp di, 0x1a
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x64], ecx
mov word [ebp - 0x66], si
mov word [ebp - 0x68], bx
jb 0x101979f9
mov ax, word [ebp - 0x66]
mov word [ebp - 0x68], ax
mov ax, word [ebp - 0x68]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x44]
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 - 0x64]
mov byte [ebp - 0x3d], bl
mov dword [ebp - 0x3c], esi
jne 0x10197873
jmp 0x10197897
mov eax, dword [ebp - 0x38]
xor ecx, ecx
add eax, 0x2214
mov dword [0x101b12d4], eax
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
add esp, 0x5c
pop esi
pop edi
pop ebx
pop ebp
ret