Function at 0x101864cc
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x60
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, 0xffffffff
mov esi, dword [0x101a69ec]
add esi, 0xffffe9dc
mov dword [0x101a69f0], esi
cmp ecx, 0
sete bl
cmp eax, 0
sete bh
and bl, bh
test bl, 1
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
jne 0x1018672e
jmp 0x10186593
mov eax, dword [ebp - 0x1c]
mov cl, byte [ebp - 0x1d]
test cl, 1
mov edx, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], edx
jne 0x101866d0
jmp 0x101866ea
mov eax, 0x1bf
mov ecx, 0x9b9
mov edx, dword [ebp - 0x2c]
add edx, 1
mov esi, dword [ebp - 0x30]
cmp edx, esi
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], edx
jb 0x10186661
jmp 0x10186519
mov eax, 0x7b4
mov ecx, 0xffffff6d
xor edx, edx
mov esi, dword [ebp - 0x3c]
mov di, word [esi]
shr di, 1
movzx ebx, di
cmp di, 0
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x28], eax
je 0x101866ea
jmp 0x10186661
mov dword [0x101a69f0], 0x1f15
mov dword [0x101a69ec], 0x1e97
mov ecx, dword fs:[0x18]
mov eax, dword [0x101a69ec]
add eax, 0xffffe5dc
mov dword [0x101a69ec], eax
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0xc]
mov ecx, eax
add ecx, 0x14
mov eax, dword [eax + 0x14]
mov dword [0x101a69ec], 0x2441
cmp eax, ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], eax
je 0x1018671d
mov eax, dword [ebp - 0x10]
cmp eax, 0
setne cl
mov byte [ebp - 0x45], cl
mov eax, 0x4d
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], ecx
jmp 0x10186604
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x4c]
mov edx, eax
add edx, 0x24
mov esi, dword [eax + 0x28]
mov edi, dword [eax + 0x10]
mov ebx, dword [ebp - 0x10]
cmp edi, ebx
sete bl
mov bh, byte [ebp - 0x45]
and bh, bl
test bh, 1
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x60], edi
jne 0x1018663e
jmp 0x1018655e
mov eax, dword [ebp - 0x54]
add eax, 0xfffffff8
mov ecx, dword [ebp - 0x58]
mov dword [0x101a69ec], ecx
mov dword [0x101a69f0], 0x7b4
mov dword [ebp - 0x18], eax
jmp 0x1018672e
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x5c]
mov si, word [edx + eax*2]
mov di, si
add di, 0xffbf
mov bx, si
add bx, 0x20
cmp di, 0x1a
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x64], ecx
mov word [ebp - 0x66], si
mov word [ebp - 0x68], bx
jb 0x1018669b
mov ax, word [ebp - 0x66]
mov word [ebp - 0x68], ax
mov ax, word [ebp - 0x68]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x2c]
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 - 0x1d], bl
mov dword [ebp - 0x1c], esi
jne 0x10186519
jmp 0x10186535
mov eax, dword [ebp - 0x24]
mov dword [0x101a69f0], eax
mov dword [0x101a69ec], 0x1f45
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x18], ecx
jmp 0x1018672e
mov eax, dword [ebp - 0x28]
mov ecx, 0xffffe506
mov edx, dword [ebp - 0x54]
mov esi, dword [edx]
mov edi, dword [ebp - 0x40]
cmp esi, edi
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x50], esi
jne 0x10186604
mov dword [0x101a69ec], 0x8fa
mov eax, dword [ebp - 0x6c]
mov dword [0x101a69f0], eax
mov dword [0x101a69ec], 0x926
xor eax, eax
mov dword [ebp - 0x18], eax
jmp 0x1018672e
mov eax, dword [ebp - 0x18]
add esp, 0x60
pop esi
pop edi
pop ebx
pop ebp
ret