Function at 0x10185bb7
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, dword [0x101a680c]
add edx, 0xffffe9dc
mov dword [0x101a6810], edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov eax, 0xffffffff
mov ecx, dword [ebp - 0x10]
cmp ecx, 0
sete dl
mov esi, dword [ebp - 0x14]
cmp esi, 0
sete dh
and dh, dl
test dh, 1
mov dword [ebp - 0x18], eax
jne 0x10185e25
jmp 0x10185cc2
mov eax, 0x4d
mov ecx, dword [ebp - 0x10]
cmp ecx, 0
setne dl
mov esi, dword [ebp - 0x1c]
mov byte [ebp - 0x1d], dl
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], esi
jmp 0x10185d1a
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x34]
mov si, word [edx + eax*2]
mov di, si
add di, 0xffbf
mov bx, si
add bx, 0x20
cmp di, 0x1a
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], ecx
mov word [ebp - 0x3e], si
mov word [ebp - 0x40], bx
jb 0x10185c6a
mov ax, word [ebp - 0x3e]
mov word [ebp - 0x40], ax
mov ax, word [ebp - 0x40]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x38]
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 - 0x3c]
mov byte [ebp - 0x41], bl
mov dword [ebp - 0x48], esi
jne 0x10185dd0
jmp 0x10185da9
mov eax, dword [ebp - 0x4c]
mov ecx, 0xffffe506
mov edx, dword [ebp - 0x50]
mov esi, dword [edx]
mov edi, dword [ebp - 0x54]
cmp esi, edi
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], esi
je 0x10185e02
jmp 0x10185d1a
mov dword [0x101a6810], 0x1f15
mov dword [0x101a680c], 0x1e97
mov ecx, dword fs:[0x18]
mov eax, dword [0x101a680c]
add eax, 0xffffe5dc
mov dword [0x101a680c], eax
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0xc]
mov ecx, eax
add ecx, 0x14
mov eax, dword [eax + 0x14]
mov dword [0x101a680c], 0x2441
cmp eax, ecx
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x1c], eax
je 0x10185e14
jmp 0x10185c0e
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
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 - 0x1d]
and bh, bl
test bh, 1
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x64], edi
jne 0x10185d51
jmp 0x10185d74
mov eax, dword [ebp - 0x5c]
mov dword [0x101a680c], eax
mov ecx, dword [ebp - 0x50]
add ecx, 0xfffffff8
mov dword [0x101a6810], 0x7b4
mov dword [ebp - 0x18], ecx
jmp 0x10185e25
mov eax, 0x7b4
mov ecx, 0xffffff6d
xor edx, edx
mov esi, dword [ebp - 0x60]
mov di, word [esi]
shr di, 1
movzx ebx, di
cmp di, 0
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x4c], eax
je 0x10185c9f
jmp 0x10185c30
mov eax, 0x1bf
mov ecx, 0x9b9
mov edx, dword [ebp - 0x38]
add edx, 1
mov esi, dword [ebp - 0x68]
cmp edx, esi
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x48], ecx
jb 0x10185c30
mov eax, dword [ebp - 0x48]
mov cl, byte [ebp - 0x41]
test cl, 1
mov edx, eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x4c], edx
jne 0x10185de8
jmp 0x10185c9f
mov eax, dword [ebp - 0x6c]
mov dword [0x101a6810], eax
mov dword [0x101a680c], 0x1f45
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x18], ecx
jmp 0x10185e25
mov dword [0x101a680c], 0x8fa
mov eax, dword [ebp - 0x58]
mov dword [0x101a6810], eax
mov dword [0x101a680c], 0x926
xor eax, eax
mov dword [ebp - 0x18], eax
jmp 0x10185e25
mov eax, dword [ebp - 0x18]
add esp, 0x60
pop esi
pop edi
pop ebx
pop ebp
ret